Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.ISceneSerializable Interface Reference

Used on classes that need to be aware of when scenes are saved or loaded This is useful in the Unity Editor environment so Astra textures are not written to disk in the scene memory More...

Inheritance diagram for Astra.Asset.ISceneSerializable:

Public Member Functions

void OnBeforeSceneSerialize ()
 Fired before a scene is saved in the Unity Editor NOTE: this is never fired in runtime builds More...
 
void OnAfterSceneDeserialize ()
 Fired after a scene has loaded NOTE: this IS fired in both the Unity Editor and runtime builds More...
 
bool IsSceneSerialized ()
 Tells the system if the object has been serialized or not. This should report True if and only if OnBeforeSceneSerialize was triggered and serialized and it has not yet been deserialized More...
 

Detailed Description

Used on classes that need to be aware of when scenes are saved or loaded This is useful in the Unity Editor environment so Astra textures are not written to disk in the scene memory

Member Function Documentation

◆ IsSceneSerialized()

bool Astra.Asset.ISceneSerializable.IsSceneSerialized ( )

Tells the system if the object has been serialized or not. This should report True if and only if OnBeforeSceneSerialize was triggered and serialized and it has not yet been deserialized

Returns
True if we've manipulated the object for scene saving, false otherwise

Implemented in Astra.Asset.CompoundItem, Astra.Asset.DecalItem, and Astra.Asset.MaterialItem.

◆ OnAfterSceneDeserialize()

void Astra.Asset.ISceneSerializable.OnAfterSceneDeserialize ( )

Fired after a scene has loaded NOTE: this IS fired in both the Unity Editor and runtime builds

Implemented in Astra.Asset.CompoundItem, Astra.Asset.DecalItem, and Astra.Asset.MaterialItem.

◆ OnBeforeSceneSerialize()

void Astra.Asset.ISceneSerializable.OnBeforeSceneSerialize ( )

Fired before a scene is saved in the Unity Editor NOTE: this is never fired in runtime builds

Implemented in Astra.Asset.CompoundItem, Astra.Asset.DecalItem, and Astra.Asset.MaterialItem.


The documentation for this interface was generated from the following file: