Class MaterialSwitchClip
A Timeline clip for changing and blending between material parameters.
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
public class MaterialSwitchClip : PlayableAsset, IPlayableAsset
Methods
CreatePlayable(PlayableGraph, GameObject)
Declaration
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayableGraph | graph | |
| GameObject | owner |
Returns
| Type | Description |
|---|---|
| Playable |
Overrides
GetMaterialProperties()
Enumerate all material properties set in the clip
Declaration
public IEnumerable<MaterialProperties> GetMaterialProperties()
Returns
| Type | Description |
|---|---|
| IEnumerable<MaterialProperties> |
OverrideProperty<T>(Material, String, T)
Override a property in a certain material.
Declaration
public bool OverrideProperty<T>(Material mat, string propertyName, T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | mat | The material which has the property. |
| String | propertyName | The name of the property to be overridden |
| T | obj | The object for overriding. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the applicable property is found and overridable, false otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T |