Class MaterialRemapperModel | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialRemapperModel

    Inheritance
    System.Object
    MaterialRemapperModel
    Namespace: UnityEditor.FilmTV.Toolbox
    Syntax
    [Serializable]
    public class MaterialRemapperModel : ScriptableObject

    Fields

    materialList

    Declaration
    public List<Material> materialList
    Field Value
    Type Description
    System.Collections.Generic.List<Material>

    objectsToRemap

    Declaration
    public List<Transform> objectsToRemap
    Field Value
    Type Description
    System.Collections.Generic.List<Transform>

    remapList

    Declaration
    public List<MaterialRemapperModel.RemapList> remapList
    Field Value
    Type Description
    System.Collections.Generic.List<MaterialRemapperModel.RemapList>

    Methods

    ApplyMaterialChanges()

    Do the remapping!

    Declaration
    public void ApplyMaterialChanges()

    FindMeshesAndMaterials(List<Transform>)

    Declaration
    public void FindMeshesAndMaterials(List<Transform> objectList)
    Parameters
    Type Name Description
    System.Collections.Generic.List<Transform> objectList

    GetDefaultMaterial()

    Declaration
    public static Material GetDefaultMaterial()
    Returns
    Type Description
    Material

    GetMeshCount()

    get count of mesh in our selection

    Declaration
    public int GetMeshCount()
    Returns
    Type Description
    System.Int32

    GetUniqueMeshList()

    figure out the count of unique mesh in our list

    Declaration
    public List<MeshRenderer> GetUniqueMeshList()
    Returns
    Type Description
    System.Collections.Generic.List<MeshRenderer>

    ResetData()

    reset everything

    Declaration
    public void ResetData()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023