GetFloat
Use this method to get the value of a named float property from the VFXEventAttribute.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetFloat(int)
Use this method to get the value of a named float property from the VFXEventAttribute.
public float GetFloat(int nameID)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| float | The value for the float you specify. Returns /0.0f/ if VFXEventAttribute.HasFloat returns |
GetFloat(string)
Use this method to get the value of a named float property from the VFXEventAttribute.
public float GetFloat(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| float | The value for the float you specify. Returns /0.0f/ if VFXEventAttribute.HasFloat returns |