Search Results for

    Show / Hide Table of Contents

    Class MaterialComponent

    A material used to render meshes.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    MaterialComponent
    Implements
    IDependencyObject
    Inherited Members
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.Start()
    Component.OnDeactivated()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Graphics3D
    Assembly: Evergine.Framework.dll
    Syntax
    public class MaterialComponent : Component, IDependencyObject

    Constructors

    MaterialComponent()

    Initializes a new instance of the MaterialComponent class.

    Declaration
    public MaterialComponent()

    Properties

    AsignedTo

    Gets or sets the specified material included in the FBX file.

    Declaration
    public string AsignedTo { get; set; }
    Property Value
    Type Description
    string

    Material

    Gets or sets the material.

    Declaration
    public Material Material { get; set; }
    Property Value
    Type Description
    Material

    UseCopy

    Gets or sets a value indicating whether the component will use an individual copy of the material file instead of sharing the material instance.

    Declaration
    [RenderProperty(Tooltip = "The component will use an individual copy of the material asset, instead of sharing the material instance.")]
    public bool UseCopy { get; set; }
    Property Value
    Type Description
    bool

    Methods

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    Component.OnAttached()

    OnDestroy()

    Invoked when the object is about to be disposed.

    Declaration
    protected override void OnDestroy()
    Overrides
    Component.OnDestroy()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    Component.OnDetach()

    Events

    ChangedMaterial

    Event is fired when the material is changed.

    Declaration
    public event EventHandler<Material> ChangedMaterial
    Event Type
    Type Description
    EventHandler<Material>

    Implements

    IDependencyObject

    Extension Methods

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