Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVector2

Use this method to get the value of a named Vector2 property from the VFXEventAttribute.
Read time 1 minuteLast updated 8 days ago

Definition

GetVector2(int)

Use this method to get the value of a named Vector2 property from the VFXEventAttribute.
public Vector2 GetVector2(int nameID)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

Vector2The value for the Vector2 you specify. Returns /Vector2.zero/ if VFXEventAttribute.HasVector2 returns false.

GetVector2(string)

Use this method to get the value of a named Vector2 property from the VFXEventAttribute.
public Vector2 GetVector2(string name)

Parameters

name

The name of the property.

Returns

Type

Description

Vector2The value for the Vector2 you specify. Returns /Vector2.zero/ if VFXEventAttribute.HasVector2 returns false.