cvr-props/Assets/ABI.CCK/Components/CVRPointer.cs

24 lines
No EOL
744 B
C#
Executable file

using UnityEditor;
using UnityEngine;
namespace ABI.CCK.Components
{
[AddComponentMenu("ChilloutVR/CVR Pointer")]
[HelpURL("https://developers.abinteractive.net/cck/components/pointer/")]
[DisallowMultipleComponent]
public class CVRPointer : MonoBehaviour, ICCK_Component
{
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);
}
}
}
}