You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only Vector3 constant that's missing compared to Unity is Vector3.ONE, which is shorthand for Vector3(1, 1, 1). It's something I didn't push for before #14704 was merged since I thought that PR was on pretty thin ice at the time, but now that it's in it would be nice to have it added once and for all.
The same could also be done for Vector2 (Vector2.ONE as a shorthand for Vector2(1, 1))
The text was updated successfully, but these errors were encountered:
ghost
changed the title
"ONE" constant for Vector3
"ONE" constant for Vector3/Vector2
Oct 6, 2018
I don't see much use case for NEGONE (beyond the fact that it's a weird name that I wouldn't understand as Vector3(-1, -1, -1) instinctively), since you can simply use -Vector3.ONE.
The only Vector3 constant that's missing compared to Unity is
Vector3.ONE
, which is shorthand forVector3(1, 1, 1)
. It's something I didn't push for before #14704 was merged since I thought that PR was on pretty thin ice at the time, but now that it's in it would be nice to have it added once and for all.The same could also be done for Vector2 (
Vector2.ONE
as a shorthand forVector2(1, 1)
)The text was updated successfully, but these errors were encountered: