Extended from BaseObject Scene¶
This class is useful to have a workspace and manage your project more easily
Properties¶
boolean OnlyTrackVisible¶
This property defines whether physics should be calculated only for visible objects
Camera Camera¶
The scene camera
LightingEnvironment LightingEnvironment¶
This is the LightingEnvironment of the scene
ParticleEnvironment ParticleEnvironment¶
This is the ParticleEnvironment of the scene
SoundEnvironment SoundEnvironment¶
This is the SoundEnvironment of the scene
ObjectEnvironment Objects¶
This environment stores all the objects in the scene
Methods¶
Scene Constructor(
)¶
void Enable(
)¶
Enables the scene, which will make it process physics, lights, sounds and sprites
void Disable(
)¶
Disables the scene
Array GetTaggedObjects(tag: string
)¶
Gets all the objects with the provided tags in the scene
Raycast2dResult Raycast(info: Raycast2dParams
)¶
Casts a ray using the Raycast2dParams. If it finds an elegible object a Raycast2dResult is returned containing the results of the operations
Events¶
Name |
Description |
---|---|