Answers for "how to make a 3d object do something when clicked on"

C#
0

how to make a 3d object do something when clicked on

using UnityEngine;
 using System.Collections;
 
 public class OnMouseDownExample : MonoBehaviour 
 {
     void OnMouseDown()
     {
         print (name);    
     }
 }
Posted by: Guest on November-16-2020

Code answers related to "how to make a 3d object do something when clicked on"

C# Answers by Framework

Browse Popular Code Answers by Language