Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

actual vector3 object unity

//A gameObject's Vector3 is its transform.position. So if you have a reference to it you can just use:
Vector3 lastPosition = gameObject.transform.position;


//Or if the save script is on the gameObject its self, you can just reference the transform directly:
Vector3 lastPosition = transform.position;

//More info in the Unity Docs.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #actual #object #unity
ADD COMMENT
Topic
Name
5+6 =