Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created January 7, 2019 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/72557df8ba6b2f16d97e474f95288d97 to your computer and use it in GitHub Desktop.
Save tsubaki/72557df8ba6b2f16d97e474f95288d97 to your computer and use it in GitHub Desktop.
New Input Systemの簡単な例
using UnityEngine;
using UnityEngine.Experimental.Input;
public class InputTest : MonoBehaviour
{
private void Update()
{
Debug.LogFormat("Mouse Position : {0}", Mouse.current.position.ReadValue());
Debug.LogFormat("Press Space Key: {0}" , Keyboard.current.spaceKey.isPressed);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment