Synced
SceneElementSerialization.CaptureState
Section titled “SceneElementSerialization.CaptureState”
- Captures one element’s logical type, neutral properties, asset dependencies and scene-reference aliases.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public static byte[] Inno.Scene.SceneElementSerialization.CaptureState(Inno.Scene.EngineObject target, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets)Parameters
Section titled “Parameters”Parameter target: The live component or system, including a missing placeholder.
Parameter serialization: The owner’s current serializer generation.
Parameter assets: The owner’s complete asset resolver used during capture.
Returns
Section titled “Returns”Neutral element bytes suitable for History and restoration without retaining the current managed type.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The target is not a component or system.
Exception T:System.InvalidOperationException: The element is not live in a loaded scene.