Answers for "Unity 2D Locking z axis movement"

C#
0

Unity 2D Locking z axis movement

//C#
//using UnityEngine... public class...

void Update () {   

	Vector3 pos = transform.position;     
	pos.z = 0;     
	transform.position = pos;

	}
Posted by: Guest on July-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language