Class PrefabInstanceModel
Class that represents a prefab instance model.
Inherited Members
Namespace: Evergine.Framework.Assets.AssetSources.Entities
Assembly: Evergine.Framework.dll
Syntax
public class PrefabInstanceModel : SceneItemModel
Constructors
PrefabInstanceModel()
Initializes a new instance of the PrefabInstanceModel class.
Declaration
public PrefabInstanceModel()
PrefabInstanceModel(Entity, PrefabInstanceModel)
Initializes a new instance of the PrefabInstanceModel class.
Declaration
public PrefabInstanceModel(Entity entity, PrefabInstanceModel root = null)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The source entity. |
PrefabInstanceModel | root | The root of the prefab instance model. |
Properties
EntityLinks
Gets or sets the dictionary of entity links, referenced by their Id.
Declaration
public Dictionary<Guid, PrefabEntityLink> EntityLinks { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Guid, PrefabEntityLink> |
IdDictionary
Gets or sets the dictionary that translates source prefab IDs with the instance prefab IDs.
Declaration
public Dictionary<Guid, Guid> IdDictionary { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Guid, Guid> |
Modifications
Gets or sets the prefab modification list.
Declaration
public List<PrefabModification> Modifications { get; set; }
Property Value
Type | Description |
---|---|
List<PrefabModification> |
RemovedComponents
Gets or sets the list of removed components.
Declaration
public List<Guid> RemovedComponents { get; set; }
Property Value
Type | Description |
---|---|
List<Guid> |
Source
Gets or sets the instance's prefab source.
Declaration
public Prefab Source { get; set; }
Property Value
Type | Description |
---|---|
Prefab |
Methods
Clean()
Cleans this entity model.
Declaration
public override void Clean()
Overrides
RandomizeId()
Changes the IDs to random ones.
Declaration
public override void RandomizeId()
Overrides
RecreateEntity()
Constructs the underlying entity.
Declaration
public override void RecreateEntity()