Replies: 1 comment
-
@Epsola could you share the code that reproduces this issue and the assert that is triggered? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have an Activity component which has a callback to perform when the activity is considered "finished".
e.g (code from within the activity system function)
However, if the callback calls a function that sets an entity's component values (e.g
entity.set<ActivityComponent>({..})
), it results in an assert error.Is something like this possible? Or how would I call a callback from within a system without this issue?
Using v2.4.7
Edit:
I've since found that as long as I pass the pointer to the current iter entity to the callback, the set functions will now work. However if I try to get the entity by id instead from within the callback function, it doesn't work.
I'll leave this here in case anyone wants to add anything new.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions