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.DefaultValues()
    SceneItemModel.GetSceneItem(Entity)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    SceneItemModel.Clean()

    RandomizeId()

    Changes the ids for a random one.

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

    RecreateEntity()

    Construct 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