You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a component which is a wrapper around an Entity. I have serialized it in a DynamicScene. After deserializing, the value does not match that of a real entity anymore. I've noticed that ChildOf (also a wrapper around an Entity) works as expected though but I can't figure out why. At first I thought this was because of the hooks of ChildOf but these are there for syncing with the Children component. How can I have my component in the deserialized scene hold the id of the deserialized entity ? Do I have to write a manual implementation of Reflect ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component which is a wrapper around an
Entity
. I have serialized it in aDynamicScene
. After deserializing, the value does not match that of a real entity anymore. I've noticed thatChildOf
(also a wrapper around an Entity) works as expected though but I can't figure out why. At first I thought this was because of the hooks ofChildOf
but these are there for syncing with theChildren
component. How can I have my component in the deserialized scene hold the id of the deserialized entity ? Do I have to write a manual implementation ofReflect
?Beta Was this translation helpful? Give feedback.
All reactions