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