docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021