Synced
PrefabAsset.Capture
Section titled “PrefabAsset.Capture”
- Captures a game object subtree into a new unsaved prefab asset.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public static Inno.Scene.PrefabAsset Inno.Scene.PrefabAsset.Capture(Inno.Scene.GameObject root, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets)Parameters
Section titled “Parameters”Parameter root: Prefab source root.
Parameter serialization: The serialization registry that owns the active prefab converter generation.
Parameter assets: The runtime asset generation used to resolve persistent references in the prefab graph.
Returns
Section titled “Returns”A prefab asset ready to save.