Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# unity camera follow player horizontal axis

public Transform Target;
Vector3 tempVec3 = new Vector3();

void LateUpdate()
{
    tempVec3.x = Target.position.x;
    tempVec3.y = this.transform.position.y;
    tempVec3.z = this.transform.position.z;
    this.transform.position = tempVec3;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity game sleep on hit 
Csharp :: mailkit send attachment 
Csharp :: unity empty action 
Csharp :: difference between namespace and assembly in c# 
Csharp :: sort a dictionary by value in c# 
Csharp :: console.writeline 
Csharp :: .net create ienumerable of strings 
Csharp :: phone number regex in c# 
Csharp :: how to spawn coins randomly around the screen unity 2d 
Csharp :: unity gameobject.findobjectswith tag set active 
Csharp :: base64decode C# 
Csharp :: Unity Scene Load by Name 
Csharp :: c# create datatable 
Csharp :: when do i need to end a sentence with ; in c# 
Csharp :: vuln.c nc mercury.picoctf.net 59616 
Csharp :: Unity C# make object face away 
Csharp :: there are any objects when open project unity 
Csharp :: index in foreach c# 
Csharp :: remove backcolor c# 
Csharp :: materials pink in unity 
Csharp :: c# random string 
Csharp :: c# serviceCollection AddLogging 
Csharp :: unity iterate all child objects 
Csharp :: solve fizzbuz c# 
Csharp :: dictionary c# 
Csharp :: c# 2-dimensional array sort 
Csharp :: unity copy list 
Csharp :: c# solution path 
Csharp :: how to generate random numbers in c# 
Csharp :: unity change tmp text from script 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =