docs.unity3d.com
    Show / Hide Table of Contents

    Interface IMaterialPathResolver

    Interface to implement when adding a material path resolver

    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    public interface IMaterialPathResolver

    Properties

    hasValidMaterialResourcesFolders

    Gets a value indicating whether this instance has valid material resources folders.

    Declaration
    bool hasValidMaterialResourcesFolders { get; }
    Property Value
    Type Description
    Boolean

    true if this instance has valid material resources folders; otherwise, false.

    IsMaterialRefreshRequired

    Gets or sets a value indicating whether this instance is material refresh required.

    Declaration
    bool IsMaterialRefreshRequired { get; set; }
    Property Value
    Type Description
    Boolean

    true if this instance is material refresh required; otherwise, false.

    Methods

    GetMaterialPathId(Material)

    Gets the material path identifier.

    Declaration
    string GetMaterialPathId(Material material)
    Parameters
    Type Name Description
    Material material

    The material.

    Returns
    Type Description
    String

    System.String.

    Init(IEnumerable<String>)

    Initializes the specified material resources folders.

    Declaration
    void Init(IEnumerable<string> materialResourcesFolders)
    Parameters
    Type Name Description
    IEnumerable<String> materialResourcesFolders

    The material resources folders.

    IsMaterialPathValid(String)

    Determines whether [is material path valid] [the specified material path identifier].

    Declaration
    bool IsMaterialPathValid(string materialPathId)
    Parameters
    Type Name Description
    String materialPathId

    The material path identifier.

    Returns
    Type Description
    Boolean

    true if [is material path valid] [the specified material path identifier]; otherwise, false.

    MatchRootPath(String)

    Matches the root path.

    Declaration
    bool MatchRootPath(string path)
    Parameters
    Type Name Description
    String path

    The path.

    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    ResolveMaterialPath(String)

    Resolves the material path.

    Declaration
    string ResolveMaterialPath(string materialPathId)
    Parameters
    Type Name Description
    String materialPathId

    The material path identifier.

    Returns
    Type Description
    String

    System.String.

    TrySwapMaterialPath(String, out String, String, Material)

    Tries the swap material path.

    Declaration
    bool TrySwapMaterialPath(string path, out string swapedPath, string materialPathId = null, Material material = null)
    Parameters
    Type Name Description
    String path

    The path.

    String swapedPath

    The swaped path.

    String materialPathId

    The material path identifier.

    Material material

    The material.

    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    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