GetVector3
Gets the value of a named Vector3 property.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetVector3(int)
Gets the value of a named Vector3 property.
public Vector3 GetVector3(int nameID)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| Vector3 | The value for the Vector3 you specify. Returns /Vector3.zero/ if VisualEffect.HasVector3 returns |
GetVector3(string)
Gets the value of a named Vector3 property.
public Vector3 GetVector3(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| Vector3 | The value for the Vector3 you specify. Returns /Vector3.zero/ if VisualEffect.HasVector3 returns |