Class MaterialPropertyNameMap
Inherited Members
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
Namespace: Unity.MaterialSwitch
Syntax
[CreateAssetMenu]
public class MaterialPropertyNameMap : ScriptableObject, ISerializationCallbackReceiver
Fields
nameMap
Declaration
public List<MaterialPropertyNameMap.PropertyDisplayName> nameMap
Field Value
| Type | Description |
|---|---|
| List<MaterialPropertyNameMap.PropertyDisplayName> |
shader
Declaration
public Shader shader
Field Value
| Type | Description |
|---|---|
| Shader |
Properties
Item[String]
Declaration
public MaterialPropertyNameMap.PropertyDisplayName this[string key] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| String | key |
Property Value
| Type | Description |
|---|---|
| MaterialPropertyNameMap.PropertyDisplayName |
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Implements
TryGetValue(String, out MaterialPropertyNameMap.PropertyDisplayName)
Declaration
public bool TryGetValue(string propertyName, out MaterialPropertyNameMap.PropertyDisplayName displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | |
| MaterialPropertyNameMap.PropertyDisplayName | displayName |
Returns
| Type | Description |
|---|---|
| Boolean |