2024-08-03 22:24:42 +02:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
using UnityEngine;
|
2023-01-22 16:38:23 +01:00
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Components
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("ChilloutVR/CVR Pointer")]
|
|
|
|
|
[HelpURL("https://developers.abinteractive.net/cck/components/pointer/")]
|
|
|
|
|
[DisallowMultipleComponent]
|
|
|
|
|
public class CVRPointer : MonoBehaviour, ICCK_Component
|
2023-01-22 16:38:23 +01:00
|
|
|
|
{
|
|
|
|
|
public string type;
|
|
|
|
|
|
|
|
|
|
private void OnDrawGizmos()
|
|
|
|
|
{
|
|
|
|
|
if (isActiveAndEnabled)
|
|
|
|
|
{
|
|
|
|
|
Gizmos.color = Color.blue;
|
|
|
|
|
Matrix4x4 rotationMatrix = Matrix4x4.TRS(transform.position, transform.rotation, Vector3.one);
|
|
|
|
|
Gizmos.matrix = rotationMatrix;
|
|
|
|
|
Gizmos.DrawSphere(Vector3.zero, 0.015f);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|