Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# return statement 
Csharp :: how to assign 2d physics material through script 
Csharp :: save and query mongodb collection as dynamic ExpandoObject 
Csharp :: c# how to disable a event 
Csharp :: how to get angular on visual studio mac 
Csharp :: "using" c# 
Csharp :: save string to file c# 
Csharp :: How to change color of a column in RDLC report 
Csharp :: [Package Manager Window] Error while fetching labels: User is not logged in or user status invalid. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) 
Csharp :: blazor wasm roles not working 
Csharp :: angular === vs == 
Csharp :: F# tuple get item 
Csharp :: enumerate dictionary c# 
Csharp :: Unity android plugin callback 
Csharp :: remove multiple element on list from index a to b C# 
Csharp :: C# calling method name 
Csharp :: unity soundclip mix 
Csharp :: SendFileAsync discord 
Csharp :: switch rows and columns in a datagridview 
Csharp :: 1180 - Lowest Number and Position C# 
Csharp :: duplicate global system runtime versioning targetframeworkattribute 
Csharp :: how to detect when a gameobject has exited a trigger c# 
Csharp :: sqlite dapper bulkcopy 
Csharp :: how to make character respawn if touches sprite c# 
Csharp :: how to collect input from a user in discord bot c# 
Csharp :: isselected uicollectionview reused 
Csharp :: how to integrate a c# and angular 9 
Csharp :: wpf string to byte array 
Csharp :: add new page itext 7 
Csharp :: C# Move Camera Over Terrain Using Touch Input In Unity 3D - Append To Camera 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =