Search Results for

    Show / Hide Table of Contents

    Class MaterialInstance

    Instance of the Material with custom set of material parameter values.

    Inheritance
    System.Object
    Object
    Asset
    BinaryAsset
    MaterialBase
    MaterialInstance
    Inherited Members
    MaterialBase.GetParameter(String)
    MaterialBase.GetParameterValue(String)
    MaterialBase.SetParameterValue(String, Object, Boolean)
    MaterialBase.CreateVirtualInstance()
    MaterialBase.Parameters
    MaterialBase.Info
    MaterialBase.IsSurface
    MaterialBase.IsPostFx
    MaterialBase.IsDecal
    MaterialBase.IsGUI
    MaterialBase.IsTerrain
    MaterialBase.IsParticle
    BinaryAsset.Reimport()
    BinaryAsset.ImportPath
    Asset.Reload()
    Asset.WaitForLoaded(Double)
    Asset.GetReferences()
    Asset.Save(String)
    Asset.ToString()
    Asset.ReferencesCount
    Asset.Path
    Asset.IsLoaded
    Asset.LastLoadFailed
    Asset.IsVirtual
    Asset.ShouldDeleteFileOnUnload
    Asset.MemoryUsage
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class MaterialInstance : MaterialBase

    Constructors

    MaterialInstance()

    Initializes a new instance of the MaterialInstance.

    Declaration
    public MaterialInstance()

    Properties

    BaseMaterial

    Gets or sets the base material. If value gets changed parameters collection is restored to the default values of the new material.

    Declaration
    [Unmanaged]
    public MaterialBase BaseMaterial { get; set; }
    Property Value
    MaterialBase

    Methods

    ResetParameters()

    Resets all parameters back to the base material (including disabling parameter overrides).

    Declaration
    [Unmanaged]
    public void ResetParameters()

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat