What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-25 10:50:20
unity how to move an object to another object
// 3D transform.position = new Vector3(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y, GameObject.Find("Object").transform.position.z); // 2D transform.position = new Vector2(G... Add solution -
Other 2021-11-21 08:40:17
parallax background
using UnityEngine; public class Parallex : MonoBehaviour { private float length, startPos; public GameObject cam; public float parallexEffect; void Start () { startPos = transform.position.x; length = GetComponent<SpriteRenderer>().bounds... Add solution -
C# 2021-11-18 10:40:28
unity follow object
Add this to the zombie(s): //You may consider adding a rigid body to the zombie for accurate physics simulation private GameObject wayPoint; private Vector3 wayPointPos; //This will be the zombie's speed. Adjust as necessary. private float speed = 6... Add solution -
C# 2021-11-04 06:51:15
how to make an object follow the player in unity
Add this to the zombie(s): //You may consider adding a rigid body to the zombie for accurate physics simulation private GameObject wayPoint; private Vector3 wayPointPos; //This will be the zombie's speed. Adjust as necessary. private float speed = 6... Add solution
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5