entity.remove() behavior

31 views
Skip to first unread message

John Nyquist

unread,
Mar 12, 2015, 12:08:20 PM3/12/15
to ash-fr...@googlegroups.com
I'm seeing different behavior in entity.remove(Component) when I iterate a NodeList. If I remove several components from an entity as I iterate the NodeList--where the action occurs or originates from an update call--it works fine. If I attempt the same thing with a call initiated from an event (not initiated from update), after the first component is removed, the the next one bombs because everything in the Node and NodeList has been set to null. Is this expected behavior? I understand the value of making changes during update as opposed to events, but I wanted to confirm whether or not this is normal behavior.
Reply all
Reply to author
Forward
0 new messages