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

20 lines
716 B
C#
Raw Permalink Normal View History

2023-01-22 16:38:23 +01:00
using UnityEngine;
namespace ABI.CCK.Components
{
[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);
}
}
}