Class PrefabInstanceObject
Abstract class that represents an object that can be instantiated through a prefab. Contains the links to the original prefab.
Inheritance
PrefabInstanceObject
Implements
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public abstract class PrefabInstanceObject : AttachableObject, IDependencyObject
Constructors
PrefabInstanceObject()
Initializes a new instance of the PrefabInstanceObject class.
Declaration
public PrefabInstanceObject()
Properties
IsMissingPrefabSource
Gets a value indicating whether the object is missing its prefab source.
Declaration
public bool IsMissingPrefabSource { get; }
Property Value
Type | Description |
---|---|
bool |
IsPrefabInstance
Gets a value indicating whether the object is a prefab instance.
Declaration
public bool IsPrefabInstance { get; }
Property Value
Type | Description |
---|---|
bool |
PrefabElementId
Gets or sets the source element of the prefab instance.
Declaration
public Guid PrefabElementId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
PrefabSource
Gets or sets the source prefab.
Declaration
public virtual Prefab PrefabSource { get; set; }
Property Value
Type | Description |
---|---|
Prefab |
Methods
RefreshPrefab(Prefab)
Handles the prefab source update.
Declaration
protected virtual void RefreshPrefab(Prefab prefab)
Parameters
Type | Name | Description |
---|---|---|
Prefab | prefab | The new prefab. |