前提・実現したいこと
unity 初心者です。オブジェクトをタッチするとそのオブジェクトが回転するようにしたいのですが、
オブジェクトにスクリプトをアタッチしてそのアタッチしたオブジェクトをEventTriggerに登録してもEventTriggerが反応しません。
発生している問題・エラーメッセージ
なし
該当のソースコード
using System.Collections; using System.Collections.Generic; using UnityEngine; public class WallRotate : MonoBehaviour { // Start is called before the first frame update void Start() { } public void rotate() { this.transform.Rotate(new Vector3(0, 45, 0)); } // Update is called once per frame void Update() { } }
補足情報(FW/ツールのバージョンなど)
unity 2019.13f1です。
シーン内にEventsystemはいってます。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。