Horje
c# unity camera follow player horizontal axis Code Example
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;
}




Csharp

Related
aabb collision with direction Code Example aabb collision with direction Code Example
godot c# export variables Code Example godot c# export variables Code Example
taking input in single line c# Code Example taking input in single line c# Code Example
how to usefor loop in c# Code Example how to usefor loop in c# Code Example
bubble sort in c# Code Example bubble sort in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12