What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-24 02:06:11
unity how to make a moving platform with multiple stops
using UnityEngine; public class Example : MonoBehaviour { public Vector3[] points; public int pointNumber = 0; private Vector3 currentTarget; public float tolerance; public float speed; // how fast the platform moves public float... Add solution -
C# 2021-10-21 12:01:10
camera pinch zoom unity
//I SUGGEST YOU WATCH THE VIDEO ON HOW IT WORKS //https://www.youtube.com/watch?v=0G4vcH9N0gc&t=127s using System.Collections; using System.Collections.Generic; using UnityEngine; public class PanZoom : MonoBehaviour { Vector3 touchStart; pu... Add solution -
C# 2021-10-06 20:35:03
unity movetowards 2d
/// <summary> /// Move 2D sprite towards target /// </summary> /// <param name="target"></param> /// <param name="movementSpeed"></param> private void Move(Vector3 target, float movementSpeed) { ... Add solution -
C# 2021-09-28 13:58:02
how to make a door open in unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DoorTrigger : MonoBehaviour { [SerializeField] GameObject door; bool isOpened = false; void OnTriggerEnter(Collider col) { if (!isOpened) { isOpened = true... Add solution