-
I am trying to create an EcsWith pair with a component with default data like this
Seems not possible as it fails at runtime with It is possible to do this in some way ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As a feature request, maybe there could be an alternative Alternatively, I believe you could use a component hook to initialize I can't speak on whether the error is intentional in this case. Sounds like the job for an assert? |
Beta Was this translation helpful? Give feedback.
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?