What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-30 03:46:04
enemy code unity
/*if you want the code to work you need to do this steps step 1 : you need to have on your enemy a collider. step 2 : you will need to add the target (what the enemy goind to follow); step 3 : you will need to add how match health he will have and how fa... Add solution -
C# 2021-09-27 11:33:06
unity c# variable types
//Formatting [Access Modifier] [type] [name]; public GameObject someObject; public Transform someTransform; public Vector3 someVector = new Vector3(); public float someFloat = 1f; public int someInt = 1; public string someString = ""; public bo... Add solution -
Other 2021-09-27 10:10:03
player controls for top down game script
using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Security.Cryptography; using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 20.0f; public float hori... Add solution -
C# 2021-09-26 22:14:02
c# unity gameObject.script
//define "myObject" //(asign in in inspector) public GameObject myObject; //runs when you hit the play button void Start() { //change the name to "myObjectsNewName" myObject.name = "myObjectsNewName"; } //Note for Unity a... Add solution -
C# 2021-09-22 06:42:02
unity object pooling
using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class ObjectPoolItem { public GameObject objectToPool; public int amountToPool; public bool shouldExpand = true; public ObjectPoolItem(Game... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5