What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-14 07:21:12
how to make a button turn on and off and object unity
public GameObject Obj; bool YesNo = false; void start() { Obj.SetActive(false); } public void Button() { if(YesNo == true) { Obj.SetActive(false); YesNo = false; } else if(YesNo == false) { Obj.SetActive(true); YesNo = true; } } Add solution -
C# 2021-10-08 20:45:09
randomly generate objects in unity
/* How to randomly generate unity objects in the scene. Watch this video by Blackthornprod on YouTube: 'RANDOM MAP GENERATOR - EASY UNITY TUTORIAL' https://www.youtube.com/watch?v=D4EOgZyNk-k&list=PLVAEGKvcbdfRiaRqY03T-oUMGr-Z-5Cyl&index=12&t... Add solution -
C# 2021-10-02 19:13:02
how to clone an object in unity at a certain position
public GameObject Bullet; public GameObject Bomber; void Start() { Bullet.transform.position = Bomber.transform.position; // you might have to attach this line to the object you want cloned (Bullet) = GameObject.Find("Bullet&q... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5