ハンドコントローラーでポイント&クリックを行うためのコンポーネントです。
Pointer は、IPointable を継承したコライダー付きのオブジェクトをクリック可能にします。 次のタイミングで処理を実行できます。
IPointable
using UnityEngine; public class PointingTester : MonoBehaviour, IPointable { public void Point() { Debug.Log("ポインターが当たった"); } public void UnPoint() { Debug.Log("ポインターが外れた"); } public void Click() { Debug.Log("クリックされた"); } }
There was an error while loading. Please reload this page.