Synced
PrefabAsset.CreateImported
Section titled “PrefabAsset.CreateImported”
- Creates an imported prefab asset from validated runtime content produced by the prefab asset pipeline.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Scene
Scope: Runtime
Declaration
Section titled “Declaration”public static InnoEngine.Scene.PrefabAsset InnoEngine.Scene.PrefabAsset.CreateImported(System.ReadOnlySpan<byte> payload, System.Collections.Generic.IReadOnlyList<InnoEngine.Assets.AssetDependency> dependencies)Parameters
Section titled “Parameters”Parameter payload: The complete serialized runtime object subtree.
Parameter dependencies: The direct persistent asset dependencies captured with the subtree.
Returns
Section titled “Returns”A prefab asset ready for an asset import writer to commit.