docs.unity.cn
    Show / Hide Table of Contents

    Class DefaultMaterialPathResolver

    Class DefaultMaterialPathResolver.

    Inheritance
    Object
    DefaultMaterialPathResolver
    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    [MaterialPathResolver(-2147483648)]
    public class DefaultMaterialPathResolver : IMaterialPathResolver

    Properties

    hasValidMaterialResourcesFolders

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

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

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

    Implements
    IMaterialPathResolver.hasValidMaterialResourcesFolders

    IsMaterialRefreshRequired

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

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

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

    Implements
    IMaterialPathResolver.IsMaterialRefreshRequired

    Methods

    GetMaterialPathId(Material)

    Gets the material path identifier.

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

    The material.

    Returns
    Type Description
    String

    System.String.

    Implements
    IMaterialPathResolver.GetMaterialPathId(Material)

    Init(IEnumerable<String>)

    Initializes the specified material resources folders.

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

    The material resources folders.

    Implements
    IMaterialPathResolver.Init(IEnumerable<String>)

    IsMaterialPathValid(String)

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

    Declaration
    public bool IsMaterialPathValid(string materialPath)
    Parameters
    Type Name Description
    String materialPath

    The material path.

    Returns
    Type Description
    Boolean

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

    Implements
    IMaterialPathResolver.IsMaterialPathValid(String)

    MatchRootPath(String)

    Matches the root path.

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

    The path.

    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    Implements
    IMaterialPathResolver.MatchRootPath(String)

    ResolveMaterialPath(String)

    Resolves the material path.

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

    The material path identifier.

    Returns
    Type Description
    String

    System.String.

    Implements
    IMaterialPathResolver.ResolveMaterialPath(String)

    TrySwapMaterialPath(String, out String, String, Material)

    Tries the swap material path.

    Declaration
    public 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.

    Implements
    IMaterialPathResolver.TrySwapMaterialPath(String, out String, String, Material)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021