UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Rotate the game object by pressing Key at runtime"
pulbic Class RotateObject : MonoBehaviour { public GameObject object; public void RotateObjectByPressingKey() { if (Input.GetKeyDown(KeyCode.R)) transform.Rotate(1, 1, 1); } }