Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Captures one element’s logical type, neutral properties, asset dependencies and scene-reference aliases.

API: engine
Project: Inno.Scene

public static byte[] Inno.Scene.SceneElementSerialization.CaptureState(Inno.Scene.EngineObject target, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets)

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.

Neutral element bytes suitable for History and restoration without retaining the current managed type.

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.