Class MaterialSwitchClip
A Timeline clip for changing and blending between material parameters.
Inherited Members
Namespace: Unity.MaterialSwitch
Syntax
public class MaterialSwitchClip : PlayableAsset, IPlayableAssetMethods
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 |