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