Class MaterialUtility | LEGO Materials | 1.1.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialUtility

    Inheritance
    Object
    MaterialUtility
    Namespace: LEGOMaterials
    Syntax
    public static class MaterialUtility

    Fields

    biDir

    Declaration
    public static string biDir
    Field Value
    Type Description
    String

    legacyDir

    Declaration
    public static string legacyDir
    Field Value
    Type Description
    String

    materialsPath

    Declaration
    public static string materialsPath
    Field Value
    Type Description
    String

    Methods

    CheckIfMaterialExists(MouldingColour.Id)

    Declaration
    public static MaterialUtility.MaterialExistence CheckIfMaterialExists(MouldingColour.Id id)
    Parameters
    Type Name Description
    MouldingColour.Id id
    Returns
    Type Description
    MaterialUtility.MaterialExistence

    CheckIfMaterialExists(Int32)

    Declaration
    public static MaterialUtility.MaterialExistence CheckIfMaterialExists(int id)
    Parameters
    Type Name Description
    Int32 id
    Returns
    Type Description
    MaterialUtility.MaterialExistence

    CheckIfMaterialExists(String)

    Declaration
    public static MaterialUtility.MaterialExistence CheckIfMaterialExists(string id)
    Parameters
    Type Name Description
    String id
    Returns
    Type Description
    MaterialUtility.MaterialExistence

    LoadMaterial(MouldingColour.Id, Boolean)

    Declaration
    public static Material LoadMaterial(MouldingColour.Id id, bool legacy)
    Parameters
    Type Name Description
    MouldingColour.Id id
    Boolean legacy
    Returns
    Type Description
    Material

    LoadMaterial(Int32, Boolean)

    Declaration
    public static Material LoadMaterial(int id, bool legacy)
    Parameters
    Type Name Description
    Int32 id
    Boolean legacy
    Returns
    Type Description
    Material

    LoadMaterial(String, Boolean)

    Declaration
    public static Material LoadMaterial(string id, bool legacy)
    Parameters
    Type Name Description
    String id
    Boolean legacy
    Returns
    Type Description
    Material
    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