SetFloat
Set a float property.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
SetFloat(string, float)
Set a float property.
public void SetFloat(string name, float value)
Parameters
Remarks
Adds a property to the block. If a float property with the given name already exists, the old value is replaced.
Additional Resources: MaterialPropertyBlock.SetColor, MaterialPropertyBlock.SetVector, MaterialPropertyBlock.SetMatrix, MaterialPropertyBlock.SetTexture.
SetFloat(int, float)
Set a float property.
public void SetFloat(int nameID, float value)
Parameters
Remarks
Adds a property to the block. If a float property with the given name already exists, the old value is replaced.