0.7.0: Renamed entire namespace from Game.* to Module.*

This commit is contained in:
Anders Ejlersen 2021-09-12 21:52:00 +02:00
parent 63f2101917
commit 80f775e279
35 changed files with 47 additions and 41 deletions

View file

@ -6,7 +6,7 @@ using UnityEditorInternal;
using UnityEngine;
using UTools = UnityEditor.Tools;
namespace Game.NavigationTool.Editor.Tools
namespace Module.NavigationTool.Editor.Tools
{
[UsedImplicitly]
internal sealed class ToolUICanvasPicker : AbstractToolbarDrawer
@ -57,7 +57,13 @@ namespace Game.NavigationTool.Editor.Tools
protected override void Draw(Rect rect)
{
Initialize();
// Note: To fix an issue, where instantiated canvases wouldn't be detected, due to no events for canvas additions/removals exist in Unity API (at the moment)
if (Event.current.type == EventType.MouseDown)
{
IS_DIRTY = true;
Initialize();
}
int temp = EditorGUI.Popup(rect, 0, OPTIONS, styles.popup);
if (temp != 0 && OPTIONS.Length != 1)