Synced
ScenePropertySerialization.CaptureProperty
Section titled “ScenePropertySerialization.CaptureProperty”
- Captures one persistent property without serializing the complete scene.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public static byte[] Inno.Scene.ScenePropertySerialization.CaptureProperty(Inno.Scene.EngineObject target, string propertyName, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets)Parameters
Section titled “Parameters”Parameter target: The live scene object containing the property.
Parameter propertyName: The exact serialized member key.
Parameter serialization: The serialization registry that owns the active converter generation.
Parameter assets: The resolver used to preserve canonical asset references in captured values.
Returns
Section titled “Returns”Neutral bytes that can be restored into the same logical object identity.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when target is null.
Exception T:System.ArgumentException: Thrown when propertyName is empty or unknown.
Exception T:System.InvalidOperationException: Thrown when the target is destroyed or not owned by a loaded scene.