Skip to content

Commit de472f9

Browse files
committed
Renames
1 parent 276c28b commit de472f9

File tree

13 files changed

+34
-6
lines changed

13 files changed

+34
-6
lines changed

Examples/Scripts/Ui/Utils/ScreenCornersExample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Juce.CoreUnity.Guizmos;
1+
using Juce.CoreUnity.Guizmo.Utils;
22
using Juce.CoreUnity.Ui.Utils;
33
using UnityEngine;
44

@@ -65,6 +65,6 @@ private void OnDrawGizmos()
6565
{
6666
Rect bounds = UiUtils.GetRectTransformBoundsWorldPosition(rectTransform);
6767

68-
GizmosUtils.DrawWireCube(bounds.center, bounds.size, Color.red);
68+
GizmoUtils.DrawWireCube(bounds.center, bounds.size, Color.red);
6969
}
7070
}
File renamed without changes.

Runtime/Gizmo/Utils.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
using UnityEngine;
22

3-
namespace Juce.CoreUnity.Guizmos
3+
namespace Juce.CoreUnity.Guizmo.Utils
44
{
5-
public static class GizmosUtils
5+
public static class GizmoUtils
66
{
77
public static void DrawLine(Vector3 from, Vector3 to, Color color)
88
{
9+
#if UNITY_EDITOR
910
Color lastColor = Gizmos.color;
1011
Gizmos.color = color;
1112
Gizmos.DrawLine(from, to);
1213
Gizmos.color = lastColor;
14+
#endif
1315
}
1416

15-
public static void DrawCircle(Vector3 center, Vector3 normal, float radius, Color color)
17+
public static void DrawWireDisc(Vector3 center, Vector3 normal, float radius, Color color)
1618
{
1719
#if UNITY_EDITOR
1820
Color lastColor = UnityEditor.Handles.color;
@@ -29,6 +31,16 @@ public static void DrawWireCube(Vector3 center, Vector3 size, Color color)
2931
UnityEditor.Handles.color = color;
3032
UnityEditor.Handles.DrawWireCube(center, size);
3133
UnityEditor.Handles.color = lastColor;
34+
#endif
35+
}
36+
37+
public static void Label(Vector3 center, string text, Color color)
38+
{
39+
#if UNITY_EDITOR
40+
Color lastColor = UnityEditor.Handles.color;
41+
UnityEditor.Handles.color = color;
42+
UnityEditor.Handles.Label(center, text);
43+
UnityEditor.Handles.color = lastColor;
3244
#endif
3345
}
3446
}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Persistence.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Persistense/Serialization/ISerializableData.cs renamed to Runtime/Persistence/Serialization/ISerializableData.cs

File renamed without changes.

Runtime/Persistense/Serialization/ISerializableData.cs.meta renamed to Runtime/Persistence/Serialization/ISerializableData.cs.meta

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)