csharp
public static class PrefabPlacing a prefab in a scene, and finding the template an instance came from.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (1)
public const string ExtensionWhat a prefab is written as.
Methods (2)
public static Entity Instantiate(SceneDocument scene, PrefabInstances instances, AssetId asset, SceneFile file, Entity parent = default(Entity))Puts a prefab's entities into a scene and records where each one came from.
public static bool TryFind(SceneFile file, EntityId id, out SceneEntityData data)Finds one entity inside a prefab file, by the id the file gave it.
Used by (2)
- PrefabEditorFactoryVixen.Editor.AssetEditors
- PrefabInstanceTestsVixen.Editor.AssetEditors.Tests