(Unity)オブジェクトをキーボードの左右キーで回転させる。 投稿者: monopro2025年4月26日ブログ (スクリプト) using System.Collections; using System.Collections.Generic; using UnityEngine; public class KeyRotate : MonoBehaviour { void Update() { transform.Rotate(new Vector3(0, Input.GetAxis("Horizontal"), 0)); } }