using UnityEngine; namespace UnityEditor.VFX.UI { class VFXVector2Field : VFXVectorNField { protected override int componentCount => 2; protected override void SetValueComponent(ref Vector2 value, int i, float componentValue) { switch (i) { case 0: value.x = componentValue; break; default: value.y = componentValue; break; } } protected override float GetValueComponent(ref Vector2 value, int i) { switch (i) { case 0: return value.x; default: return value.y; } } } }