Class DefaultMaterialPathResolver
Class 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 |
|
Implements
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 |
|
Implements
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
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
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 |
|
Implements
MatchRootPath(String)
Matches the root path.
Declaration
public bool MatchRootPath(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path. |
Returns
Type | Description |
---|---|
Boolean |
|
Implements
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
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 |
|