fix: OctoEditor
This commit is contained in:
@@ -53,6 +53,7 @@ namespace OctoCore.Components
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.Handles.color = Color.cyan;
|
||||
|
||||
const float size = .3f;
|
||||
@@ -69,6 +70,7 @@ namespace OctoCore.Components
|
||||
UnityEditor.Handles.matrix = _references.LookAt.localToWorldMatrix;
|
||||
UnityEditor.Handles.DrawWireCube(Vector3.zero, Vector3.one * size * .75f);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
||||
@@ -25,11 +25,13 @@ namespace OctoCore
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
UnityEditor.Handles.color = Color.cyan;
|
||||
UnityEditor.Handles.matrix = transform.localToWorldMatrix;
|
||||
|
||||
UnityEditor.Handles.DrawWireDisc(Vector3.zero, Vector3.up, _settings.MinRadius);
|
||||
UnityEditor.Handles.DrawWireDisc(Vector3.zero, Vector3.up, _settings.MaxRadius);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
||||
Reference in New Issue
Block a user