bool SetVector2(string name, vector2 data)/ETHEntity

Sets a custom vector2 data to the entity. This method will overwrite both type and value if another data with the same name exists.

Sample:

bullet.SetVector2("direction", vector2(1, 0));
bullet.AddToPositionXY(bullet.GetVector2("direction"));