Skip to content

Trait is empty after spawning entity? #81

Answered by krispya
maurice asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Maurice. Yes, a schema is required for the trait. I'll check to see why it doesn't give an error if you explicitly type the trait but don't pass in a matching schema. This should be fixable.

By the way, if no schema is passed in then the trait is considered a tag and holds no data. This is why you are seeing undefined.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@krispya
Comment options

Answer selected by maurice
@maurice
Comment options

@krispya
Comment options

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