Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to change the position of a gameobject in c# unity

Vector3 pos = transform.position;
pos.x = 12;
transform.position = pos;
Comment

PREVIOUS NEXT
Code Example
:: .NET Microsoft.dotnet-httprepl 
::  
Csharp :: unity cinemachine lock camera axis 
Csharp ::  
::  
Csharp :: asp.net throw unauthorized exception 
:: unity deadzone 
::  
::  
Csharp ::  
Csharp ::  
::  
::  
::  
::  
::  
::  
Csharp ::  
Csharp :: c# string to enum conversion 
::  
::  
Csharp ::  
::  
Csharp ::  
Csharp ::  
::  
::  
::  
:: placeholder syntax c# 
Csharp ::  
ADD CONTENT
Topic
Content
Source link
Name
8+2 =