Skip to content

Component with data in a EcsWith pair ? #1146

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

You must be logged in to vote

EcsWith is a registered as a tag, meaning a pair with it being the relationship type can't have a value associated with it.

As a feature request, maybe there could be an alternative EcsWithDefault that does accept a value.

Alternatively, I believe you could use a component hook to initialize Responsability with the default value you'd like.

I can't speak on whether the error is intentional in this case. Sounds like the job for an assert?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sigzegv
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