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)
Initializes a new instance of the PrefabInstanceModel class.
Declaration
public PrefabInstanceModel(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity source. |
Fields
Source
The prefab source of the instance.
Declaration
public Prefab Source
Field Value
Type | Description |
---|---|
Prefab |
Properties
EntityLinks
Gets the entity links of the prefab isntance. An entity link represents an entity of the prefab that has some new or removed components or child entities.
Declaration
public IEnumerable<PrefabEntityLink> EntityLinks { get; }
Property Value
Type | Description |
---|---|
IEnumerable<PrefabEntityLink> |
Modifications
Gets the prefab modifications.
Declaration
public IEnumerable<PrefabModification> Modifications { get; }
Property Value
Type | Description |
---|---|
IEnumerable<PrefabModification> |
RemovedComponents
Gets the removed components.
Declaration
public IEnumerable<Guid> RemovedComponents { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Guid> |
Methods
Clean()
Clean this entity model.
Declaration
public override void Clean()
Overrides
RandomizeId()
Changes the ids for a random one.
Declaration
public override void RandomizeId()
Overrides
RecreateEntity()
Construct the underlying entity.
Declaration
public override void RecreateEntity()