Search Results for

    Show / Hide Table of Contents

    Class PrefabInstanceModel

    Class that represents a prefab instance model.

    Inheritance
    object
    SceneItemModel
    PrefabInstanceModel
    Inherited Members
    SceneItemModel.PropertySeparator
    SceneItemModel.id
    SceneItemModel.entity
    SceneItemModel.Recreated
    SceneItemModel.Id
    SceneItemModel.Entity
    SceneItemModel.EntityPath
    SceneItemModel.State
    SceneItemModel.IsEntityRecreated
    SceneItemModel.DefaultValues()
    SceneItemModel.GetSceneItem(Entity)
    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
    SceneItemModel.Clean()

    RandomizeId()

    Changes the IDs to random ones.

    Declaration
    public override void RandomizeId()
    Overrides
    SceneItemModel.RandomizeId()

    RecreateEntity()

    Constructs the underlying entity.

    Declaration
    public override void RecreateEntity()
    Overrides
    SceneItemModel.RecreateEntity()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX