2023-01-22 16:38:23 +01:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace ABI.CCK.Components
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
[AddComponentMenu("ChilloutVR/CVR Portal Marker")]
|
|
|
|
[HelpURL("https://developers.abinteractive.net/cck/components/portal-marker/")]
|
|
|
|
public class CVRPortalMarker : MonoBehaviour, ICCK_Component
|
2023-01-22 16:38:23 +01:00
|
|
|
{
|
|
|
|
public string worldGUID;
|
|
|
|
|
|
|
|
private void OnDrawGizmos()
|
|
|
|
{
|
|
|
|
Gizmos.color = Color.magenta;
|
|
|
|
Matrix4x4 rotationMatrix = Matrix4x4.TRS(transform.position, transform.rotation, transform.lossyScale);
|
|
|
|
Gizmos.matrix = rotationMatrix;
|
|
|
|
Gizmos.DrawWireCube(new Vector3(0, 0.15f, 0), new Vector3(0.75f, 0.3f, 0.75f));
|
|
|
|
Gizmos.DrawWireSphere(new Vector3(0, 1f, 0), 0.5f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|