Skip to content

How can I create global tag handles? #896

Answered by copygirl
hw762 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to forward-declare an entity that's not a component (created with ECS_COMPONENT) then you can use ECS_DECLARE.

As seen in the fwd_declare_component example:

// To forward declare entities created with ECS_ENTITY, ECS_TAG or ECS_PREFAB,
// use ECS_DECLARE.
ECS_DECLARE(Wizard);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hw762
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants