Created
January 22, 2022 19:17
-
-
Save AldeRoberge/c671fabb343e3d8c1fdc65b16c7656ef to your computer and use it in GitHub Desktop.
Allows to clone a Vector3 using an extension method.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace MV_Archetype_Utils | |
{ | |
public static class Vector3Ext | |
{ | |
// Clone a Vector3 | |
public static Vector3 Clone(this Vector3 v) | |
{ | |
return new Vector3(v.x, v.y, v.z); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment