Class Scene
The scene root object that contains a hierarchy of actors.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Level/Scene/Scene.h
Syntax
public class Scene : public Actor
Fields
CSGData
The CSG data container for this scene.
Declaration
public CSG::SceneCSGData CSGData
Field Value
CSG::SceneCSGData
|
Info
LightmapsData
The static light manager for this scene.
Declaration
public SceneLightmapsData LightmapsData
Field Value
SceneLightmapsData
|
Navigation
Rendering
Ticking
Methods
BeginPlay(SceneBeginData* data)
Called when adding object to the game.
Declaration
protected virtual void BeginPlay(SceneBeginData* data) override
Parameters
SceneBeginData
data
The initialization data (e.g. used to collect joints to link after begin). |
Overrides
BuildCSG(float timeoutMs=50)
Builds the CSG geometry for the given scene.
Requests are enqueued till the next game scripts update.
Declaration
public void BuildCSG(float timeoutMs=50)
Parameters
float
timeoutMs
The timeout to wait before building CSG (in milliseconds). |
ClearLightmaps()
Removes all baked lightmap textures from the scene.
Declaration
public void ClearLightmaps()
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
EndPlay()
Called when removing object from the game.
Declaration
public virtual void EndPlay() override
Overrides
GetAssetReferences()
Gets the asset references (scene asset). Supported only in Editor.
Declaration
public Array<Guid, HeapAllocation> GetAssetReferences() const
Returns
Array<Guid, HeapAllocation>
The collection of the asset ids referenced by this asset. |
See Also
GetDataFolderPath()
Gets path to the scene data folder
Declaration
public String GetDataFolderPath() const
Returns
String
|
GetFilename()
GetLightmapSettings()
Gets the lightmap settings (per scene).
Declaration
public LightmapSettings GetLightmapSettings() const
Returns
LightmapSettings
|
GetPath()
Initialize()
Called after object loading or spawning to initialize the object (eg. call OnAwake for scripts) but before BeginPlay. Initialization should be performed only within a single SceneObject (use BeginPlay to initialize with a scene).
Declaration
protected virtual void Initialize() override
Overrides
OnDeleteObject()
Deletes the object. Called by the ObjectsRemovalService. Can be overriden to provide custom logic per object (cleanup, etc.).
Declaration
public virtual void OnDeleteObject() override
Overrides
OnTransformChanged()
Called when actor transform gets changed.
Declaration
protected virtual void OnTransformChanged() override
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
SetLightmapSettings(const LightmapSettings& value)
Sets the lightmap settings (per scene).
Declaration
public void SetLightmapSettings(const LightmapSettings& value)
Parameters
LightmapSettings
value
|