LevelSector
The LevelSector class represents a Scene Selector “level” at the bottom of the screen in a 3D World. You can get the LevelSector that an Entity exists in with this.entity().level().
Function | Description |
---|---|
isRemoved() |
Returns true if the level has been removed, false if not. This can be used to make sure you’re not accessing a level that has been unloaded before you try using it (which would cause errors). |
name() |
Returns the name of the level. |
isRemoved()
Returns true if the level has been removed, false if not. This can be used to make sure you’re not accessing a level that has been unloaded before you try using it (which would cause errors).
Returns
boolean true if the level is removed, false if not
name()
Returns the name of the level.
Returns
string the name of the level