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
By using the entity object passed into the constructor, any code attempting to use entity.get('currentComponent') will always return undefined, because the constructor must complete in order for the entity to actually contain that component. This was the original reason for onCreate's existence, but was forgotten in 0.3.0. This will need to be added back and the use of the constructor should be avoided, similar to the initialize() method in systems.
The text was updated successfully, but these errors were encountered:
By using the entity object passed into the constructor, any code attempting to use
entity.get('currentComponent')
will always returnundefined
, because the constructor must complete in order for the entity to actually contain that component. This was the original reason foronCreate
's existence, but was forgotten in 0.3.0. This will need to be added back and the use of the constructor should be avoided, similar to theinitialize()
method in systems.The text was updated successfully, but these errors were encountered: