Search Results for

    Show / Hide Table of Contents

    Class PrefabInstanceObject

    Abstract class that represents an object that can be instantiated through a prefab. Contains the links of the original prefab.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    Entity
    Implements
    IDependencyObject
    Inherited Members
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.ShouldBeActivated
    AttachableObject.OnLoaded()
    AttachableObject.OnAttached()
    AttachableObject.OnActivated()
    AttachableObject.Start()
    AttachableObject.OnDeactivated()
    AttachableObject.OnDetach()
    AttachableObject.OnDestroy()
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    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 prefab instance source element.

    Declaration
    public Guid PrefabElementId { get; set; }
    Property Value
    Type Description
    Guid

    PrefabSource

    Gets or sets the surce 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.

    Implements

    IDependencyObject

    Extension Methods

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