Synced
SceneSubtreeSerialization.Capture
Section titled “SceneSubtreeSerialization.Capture”
- Captures one live GameObject and all descendants without serializing unrelated scene objects.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public static byte[] Inno.Scene.SceneSubtreeSerialization.Capture(Inno.Scene.GameObject root, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets)Parameters
Section titled “Parameters”Parameter root: The live subtree root.
Parameter serialization: The serialization registry that owns the active converter generation.
Parameter assets: The asset-reference resolver used to encode referenced asset identities.
Returns
Section titled “Returns”Neutral bytes containing the subtree structure, components, properties, and identity references.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when root is null.
Exception T:System.InvalidOperationException: Thrown when the root is destroyed or detached.