Answers for "unity how to get input"

C#
15

unity how to get input

using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
    public void Update()
    {
        if (Input.GetButtonDown("Fire1"))
        {
            Debug.Log(Input.mousePosition);
        }
    }
}
Posted by: Guest on March-29-2020

Code answers related to "unity how to get input"

C# Answers by Framework

Browse Popular Code Answers by Language