What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-28 13:59:13
how to make a dragable object in unity2D
using UnityEngine; using System.Collections; [RequireComponent(typeof(BoxCollider))] public class Drag : MonoBehaviour { private Vector3 screenPoint; private Vector3 offset; void OnMouseDown() { offset = gameObject.transform.position - C... Add solution