Component.Core#exists

exists : boolean

Controls if this Game Object is processed by the core game loop.
If this Game Object has a physics body it also controls if its physics body is updated or not.
When exists is set to false it will remove its physics body from the physics world if it has one.
It also toggles the visible property to false as well.

Setting exists to true will add its physics body back in to the physics world, if it has one.
It will also set the visible property to true.

Source code: gameobjects/components/Core.js (Line 284)
doc_phaser
2017-02-14 10:42:31
Comments
Leave a Comment

Please login to continue.