What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-18 23:50:14
detecting a right click unity
function Update() { if(Input.GetMouseButtonDown(0)) Debug.Log("Pressed left click."); if(Input.GetMouseButtonDown(1)) Debug.Log("Pressed right click."); if(Input.GetMouseButtonDown(2)) Debug.Log("Pressed middle click.&quo... Add solution -
C# 2021-11-06 02:59:12
how to fix on Input.GetMouseButtonDown(0) conting as ui
using UnityEngine.EventSystems; void Update() { if (Input.GetMouseButtonDown(0)) { // This line prevents the Code from activating UI if (EventSystem.current.IsPointerOverGameObject()) return; // Put your code ... 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
Best helpers
Ranking is empty