diff --git a/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUI.cs b/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUI.cs index 70d4bbc9..1021c6a2 100644 --- a/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUI.cs +++ b/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUI.cs @@ -39,7 +39,7 @@ public static int DoButtonGrid(Rect position, int selected, Il2CppReferenceArray return selected; if (itemsPerRow <= 0) { - Debug.LogWarning("You are trying to create a SelectionGrid with zero or less elements to be displayed in the horizontal direction. Set itemsPerRow to a positive value."); + UnityEngine.Debug.LogWarning("You are trying to create a SelectionGrid with zero or less elements to be displayed in the horizontal direction. Set itemsPerRow to a positive value."); return selected; } if (contentsEnabled != null && contentsEnabled.Length != contentsLength) diff --git a/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUILayoutGroup.cs b/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUILayoutGroup.cs index edfa40bc..9e879014 100644 --- a/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUILayoutGroup.cs +++ b/src/IMGUIModule.Il2Cpp.CoreCLR.Patcher/Replacements/GUILayoutGroup.cs @@ -32,16 +32,16 @@ public GUILayoutGroup(IntPtr pointer) : base(pointer) { } int count = entries.Count; if (cursor <= count) return entries[cursor - 1].rect; - Debug.LogError(string.Concat( - "Getting control ", - cursor, - "'s position in a group with only ", - count, - " controls when doing ", - Event.current.type)); + UnityEngine.Debug.LogError(string.Concat( + "Getting control ", + cursor, + "'s position in a group with only ", + count, + " controls when doing ", + Event.current.type)); } else - Debug.LogError("You cannot call GetLast immediately after beginning a group."); + UnityEngine.Debug.LogError("You cannot call GetLast immediately after beginning a group."); return kDummyRect; } }