bugfixes
This commit is contained in:
@@ -56,6 +56,9 @@ namespace SplashEdit.RuntimeCode
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
var exporter = FindFirstObjectByType<PSXSceneExporter>();
|
||||
if (exporter != null && !exporter.PreviewRoomsPortals) return;
|
||||
|
||||
Gizmos.color = new Color(0.2f, 0.8f, 0.4f, 0.15f);
|
||||
Gizmos.matrix = transform.localToWorldMatrix;
|
||||
Gizmos.DrawCube(VolumeOffset, VolumeSize);
|
||||
@@ -66,7 +69,7 @@ namespace SplashEdit.RuntimeCode
|
||||
#if UNITY_EDITOR
|
||||
if (!string.IsNullOrEmpty(RoomName))
|
||||
{
|
||||
UnityEditor.Handles.Label(transform.TransformPoint(VolumeOffset),
|
||||
UnityEditor.Handles.Label(transform.TransformPoint(VolumeOffset),
|
||||
RoomName, new GUIStyle { normal = { textColor = Color.green } });
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user