TriLib
Search Results for

    Show / Hide Table of Contents

    Class AutodeskInteractiveStandardMaterialMapper

    A specialized StandardMaterialMapper that converts TriLib virtual materials into Autodesk Interactive materials. This mapper adjusts the material presets based on the currently active render pipeline (HDRP, URP, or Standard), and it forces the use of a Shader Variant Collection.

    Inheritance
    object
    Object
    ScriptableObject
    MaterialMapper
    StandardMaterialMapper
    AutodeskInteractiveStandardMaterialMapper
    Inherited Members
    StandardMaterialMapper.ForceShaderVariantCollection
    StandardMaterialMapper.UsesCoroutines
    StandardMaterialMapper.MapCoroutine(MaterialMapperContext)
    StandardMaterialMapper.GetDiffuseTextureName(MaterialMapperContext)
    StandardMaterialMapper.GetGlossinessOrRoughnessTextureName(MaterialMapperContext)
    StandardMaterialMapper.GetDiffuseColorName(MaterialMapperContext)
    StandardMaterialMapper.GetEmissionColorName(MaterialMapperContext)
    StandardMaterialMapper.GetGlossinessOrRoughnessName(MaterialMapperContext)
    StandardMaterialMapper.GetMetallicName(MaterialMapperContext)
    StandardMaterialMapper.GetMetallicTextureName(MaterialMapperContext)
    MaterialMapper.CheckingOrder
    MaterialMapper.DisableAlpha
    MaterialMapper.ApplyMaterialToRenderer(MaterialRendererContext)
    MaterialMapper.Cleanup(MaterialRendererContext)
    MaterialMapper.Map(MaterialMapperContext)
    MaterialMapper.CheckTextureOffsetAndScaling(TextureLoadingContext)
    MaterialMapper.CheckTextureOffsetAndScaling(MaterialMapperContext, ITexture, bool)
    MaterialMapper.CheckTextureOffsetAndScalingCoroutine(TextureLoadingContext)
    MaterialMapper.BuildMaterial(MaterialMapperContext)
    MaterialMapper.LoadTextureWithCallbacks(MaterialMapperContext, TextureType, ITexture, params Action<TextureLoadingContext>[])
    MaterialMapper.LoadTextureWithCoroutineCallbacks(MaterialMapperContext, TextureType, ITexture, params Func<TextureLoadingContext, IEnumerable>[])
    MaterialMapper.RegisteredMapperNamespaces
    MaterialMapper.RegisteredMappers
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: TriLibCore.Mappers
    Assembly: Assembly-CSharp.dll
    Syntax
    [Serializable]
    [CreateAssetMenu(menuName = "TriLib/Mappers/Material/Autodesk Interactive Standard Material Mapper", fileName = "AutodeskInteractiveStandardMaterialMapper")]
    public class AutodeskInteractiveStandardMaterialMapper : StandardMaterialMapper

    Properties

    CutoutMaterialPreset

    A cutout material preset for materials that use alpha testing (fully transparent vs. fully opaque).

    Declaration
    public override Material CutoutMaterialPreset { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.CutoutMaterialPreset

    CutoutMaterialPresetNoMetallicTexture

    A cutout material preset for materials with no metallic texture usage.

    Declaration
    public override Material CutoutMaterialPresetNoMetallicTexture { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.CutoutMaterialPresetNoMetallicTexture

    ExtractMetallicAndSmoothness

    Indicates whether TriLib automatically extracts metallic and smoothness data from the source material textures. Inheritors can override this to disable the extraction step.

    Declaration
    public override bool ExtractMetallicAndSmoothness { get; }
    Property Value
    Type Description
    bool
    Overrides
    StandardMaterialMapper.ExtractMetallicAndSmoothness

    LoadingMaterial

    An optional placeholder material used while a model’s final materials and textures are still loading.

    Declaration
    public override Material LoadingMaterial { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.LoadingMaterial

    MaterialPreset

    The default (opaque) material preset.

    Declaration
    public override Material MaterialPreset { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.MaterialPreset

    MaterialPresetNoMetallicTexture

    The default (opaque) material preset for materials with no metallic texture usage.

    Declaration
    public override Material MaterialPresetNoMetallicTexture { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.MaterialPresetNoMetallicTexture

    TransparentComposeMaterialPreset

    A “compose” material preset used in layered alpha workflows when AlphaMaterialMode is set to CutoutAndTransparent. This is applied as a secondary pass for partially transparent regions.

    Declaration
    public override Material TransparentComposeMaterialPreset { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.TransparentComposeMaterialPreset

    TransparentComposeMaterialPresetNoMetallicTexture

    The “compose” material preset for partially transparent materials that have no metallic texture usage.

    Declaration
    public override Material TransparentComposeMaterialPresetNoMetallicTexture { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.TransparentComposeMaterialPresetNoMetallicTexture

    TransparentMaterialPreset

    A fully transparent (alpha) material preset.

    Declaration
    public override Material TransparentMaterialPreset { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.TransparentMaterialPreset

    TransparentMaterialPresetNoMetallicTexture

    A fully transparent (alpha) material preset for materials without a metallic texture.

    Declaration
    public override Material TransparentMaterialPresetNoMetallicTexture { get; }
    Property Value
    Type Description
    Material
    Overrides
    StandardMaterialMapper.TransparentMaterialPresetNoMetallicTexture

    UseShaderVariantCollection

    If overridden to return true, indicates that this mapper uses a Shader Variant Collection instead of the usual material presets. By default, it returns false.

    Declaration
    public override bool UseShaderVariantCollection { get; }
    Property Value
    Type Description
    bool
    Overrides
    StandardMaterialMapper.UseShaderVariantCollection
    Remarks

    Implementers can override this to provide advanced material handling, especially when working with different pipelines or specialized shader setups.

    Methods

    ApplyGlossinessMapTexture(TextureLoadingContext)

    Declaration
    protected override IEnumerable ApplyGlossinessMapTexture(TextureLoadingContext textureLoadingContext)
    Parameters
    Type Name Description
    TextureLoadingContext textureLoadingContext
    Returns
    Type Description
    IEnumerable
    Overrides
    StandardMaterialMapper.ApplyGlossinessMapTexture(TextureLoadingContext)

    IsCompatible(MaterialMapperContext)

    Determines whether this mapper can handle the specified material (e.g., by checking shader keywords, pipeline features, or other criteria). Mappers with false returns are skipped in favor of others with higher compatibility.

    Declaration
    public override bool IsCompatible(MaterialMapperContext materialMapperContext)
    Parameters
    Type Name Description
    MaterialMapperContext materialMapperContext

    The context providing references to both the TriLib VirtualMaterial data and the underlying Unity UnityEngine.Material.

    Returns
    Type Description
    bool

    true if compatible; otherwise false.

    Overrides
    StandardMaterialMapper.IsCompatible(MaterialMapperContext)

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top Generated by DocFX