|
Arbor 3: FSM & BT Graph Editor
3.7.8
|
A wrapper class for the MaterialPropertyBlock assigned to the Renderer. More...
Public Member Functions | |
| void | Update () |
| Update MaterialPropertyBlock from Renderer. More... | |
| void | Apply () |
| Apply MaterialPropertyBlock to Renderer. More... | |
| void | Clear () |
| Clear material property values. More... | |
| bool | HasProperty (int nameID) |
| Returns whether the PropertyBlock has a property value. More... | |
| bool | HasProperty (string name) |
| Returns whether the PropertyBlock has a property value. More... | |
| float | GetFloat (int nameID) |
| Get the float value. More... | |
| float | GetFloat (string name) |
| Get the float value. More... | |
| void | SetFloat (int nameID, float value) |
| Set the float value. More... | |
| void | SetFloat (string name, float value) |
| Set the float value. More... | |
| Color | GetColor (int nameID) |
| Get the Color value. More... | |
| Color | GetColor (string name) |
| Get the Color value. More... | |
| void | SetColor (int nameID, Color value) |
| Set the Color value. More... | |
| void | SetColor (string name, Color value) |
| Set the Color value. More... | |
| Matrix4x4 | GetMatrix (int nameID) |
| Get the Matrix4x4 value. More... | |
| Matrix4x4 | GetMatrix (string name) |
| Get the Matrix4x4 value. More... | |
| void | SetMatrix (int nameID, Matrix4x4 value) |
| Set the Matrix4x4 value. More... | |
| void | SetMatrix (string name, Matrix4x4 value) |
| Set the Matrix4x4 value. More... | |
| Texture | GetTexture (int nameID) |
| Get the Texture value. More... | |
| Texture | GetTexture (string name) |
| Get the Texture value. More... | |
| void | SetTexture (int nameID, Texture value) |
| Set the Texture value. More... | |
| void | SetTexture (string name, Texture value) |
| Set the Texture value. More... | |
| Vector4 | GetVector (int nameID) |
| Get the Vector4 value. More... | |
| Vector4 | GetVector (string name) |
| Get the Vector4 value. More... | |
| void | SetVector (int nameID, Vector4 value) |
| Set the Vector4 value. More... | |
| void | SetVector (string name, Vector4 value) |
| Set the Vector4 value. More... | |
Static Public Member Functions | |
| static RendererPropertyBlock | Get (Renderer renderer) |
| Get the RendererPropertyBlock assigned to the Renderer. More... | |
A wrapper class for the MaterialPropertyBlock assigned to the Renderer.
| void Apply | ( | ) |
Apply MaterialPropertyBlock to Renderer.
| void Clear | ( | ) |
Clear material property values.
|
static |
Get the RendererPropertyBlock assigned to the Renderer.
| renderer | Renderer |
| Color GetColor | ( | int | nameID | ) |
Get the Color value.
| nameID | Property name ID |
| Color GetColor | ( | string | name | ) |
Get the Color value.
| name | Property name |
| float GetFloat | ( | int | nameID | ) |
Get the float value.
| nameID | Property name ID |
| float GetFloat | ( | string | name | ) |
Get the float value.
| name | Property name |
| Matrix4x4 GetMatrix | ( | int | nameID | ) |
Get the Matrix4x4 value.
| nameID | Property name ID |
| Matrix4x4 GetMatrix | ( | string | name | ) |
Get the Matrix4x4 value.
| name | Property name |
| Texture GetTexture | ( | int | nameID | ) |
Get the Texture value.
| nameID | Property name ID |
| Texture GetTexture | ( | string | name | ) |
Get the Texture value.
| name | Property name |
| Vector4 GetVector | ( | int | nameID | ) |
Get the Vector4 value.
| nameID | Property name ID |
| Vector4 GetVector | ( | string | name | ) |
Get the Vector4 value.
| name | Property name |
| bool HasProperty | ( | int | nameID | ) |
Returns whether the PropertyBlock has a property value.
| nameID | Property name ID |
If you change the MaterialPropertyBlock directly, it will not be reflected. Be sure to use the Set method of RendererPropertyBlock.
| bool HasProperty | ( | string | name | ) |
Returns whether the PropertyBlock has a property value.
| name | Property name |
If you change the MaterialPropertyBlock directly, it will not be reflected. Be sure to use the Set method of RendererPropertyBlock.
| void SetColor | ( | int | nameID, |
| Color | value | ||
| ) |
Set the Color value.
| nameID | Property name ID |
| value | Value |
| void SetColor | ( | string | name, |
| Color | value | ||
| ) |
Set the Color value.
| name | Property name |
| value | Value |
| void SetFloat | ( | int | nameID, |
| float | value | ||
| ) |
Set the float value.
| nameID | Property name ID |
| value | Value |
| void SetFloat | ( | string | name, |
| float | value | ||
| ) |
Set the float value.
| name | Property name |
| value | Value |
| void SetMatrix | ( | int | nameID, |
| Matrix4x4 | value | ||
| ) |
Set the Matrix4x4 value.
| nameID | Property name ID |
| value | Value |
| void SetMatrix | ( | string | name, |
| Matrix4x4 | value | ||
| ) |
Set the Matrix4x4 value.
| name | Property name |
| value | Value |
| void SetTexture | ( | int | nameID, |
| Texture | value | ||
| ) |
Set the Texture value.
| nameID | Property name ID |
| value | Value |
| void SetTexture | ( | string | name, |
| Texture | value | ||
| ) |
Set the Texture value.
| name | Property name |
| value | Value |
| void SetVector | ( | int | nameID, |
| Vector4 | value | ||
| ) |
Set the Vector4 value.
| nameID | Property name ID |
| value | Value |
| void SetVector | ( | string | name, |
| Vector4 | value | ||
| ) |
Set the Vector4 value.
| name | Property name |
| value | Value |
| void Update | ( | ) |
Update MaterialPropertyBlock from Renderer.