Skip to content

Commit 703c4d8

Browse files
committed
Fix some warnings
1 parent db93983 commit 703c4d8

File tree

7 files changed

+12
-25
lines changed

7 files changed

+12
-25
lines changed

RuntimeUnityEditor.Bepin6.IL2CPP/LogViewer/LogViewerEntry.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Diagnostics;
3-
using System.Linq;
1+
using System.Diagnostics;
42
using System.Reflection;
53
using System.Text;
64
using BepInEx.Logging;

RuntimeUnityEditor.Bepin6.IL2CPP/RuntimeUnityEditor.Bepin6.IL2CPP.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
6+
<Nullable>disable</Nullable>
77
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
88

99
<OutputPath>..\bin\IL2CPP\</OutputPath>

RuntimeUnityEditor.Core/Features/Gizmos/lib/Gizmos.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public static Vector3 Offset
218218
{
219219
get
220220
{
221-
const string Delim = ",";
221+
//const string Delim = ",";
222222
if (_offset == null)
223223
{
224224
//todo use config
@@ -241,8 +241,8 @@ public static Vector3 Offset
241241
}
242242
set
243243
{
244-
const string Delim = ",";
245-
if (_offset != value)
244+
//const string Delim = ",";
245+
//if (_offset != value)
246246
{
247247
_offset = value;
248248
//todo use config

RuntimeUnityEditor.Core/Features/Gizmos/lib/GizmosInstance.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ internal static GizmosInstance GetOrCreate()
7979
{
8080
if (hotReloaded || !instance)
8181
{
82-
bool markDirty = false;
8382
GizmosInstance[] gizmosInstances = FindObjectsOfType<GizmosInstance>();
8483
for (int i = 0; i < gizmosInstances.Length; i++)
8584
{
@@ -95,7 +94,6 @@ internal static GizmosInstance GetOrCreate()
9594
else
9695
{
9796
DestroyImmediate(gizmosInstances[i]);
98-
markDirty = true;
9997
}
10098
}
10199
}
@@ -105,18 +103,7 @@ internal static GizmosInstance GetOrCreate()
105103
{
106104
instance = new GameObject(typeof(GizmosInstance).FullName).AddComponent<GizmosInstance>();
107105
instance.gameObject.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
108-
109-
markDirty = true;
110-
}
111-
112-
#if UNITY_EDITOR
113-
//mark scene as dirty
114-
if (markDirty && !Application.isPlaying)
115-
{
116-
Scene scene = SceneManager.GetActiveScene();
117-
EditorSceneManager.MarkSceneDirty(scene);
118106
}
119-
#endif
120107

121108
hotReloaded = false;
122109
}

RuntimeUnityEditor.Core/Utils/ThreadingExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace RuntimeUnityEditor.Core.Utils
99
{
1010
/// <summary>
11-
/// Convenience extensions for utilizing multiple threads and using the <see cref="ThreadingHelper"/>.
11+
/// Convenience extensions for utilizing multiple threads.
1212
/// </summary>
1313
public static class ThreadingExtensions
1414
{

RuntimeUnityEditor.Core/Windows/ChangeHistory/Change.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static IChange MemberAssignment<TObj, TVal>(TObj target, TVal newValue, M
7474
/// </summary>
7575
/// <typeparam name="TObj">Type of the object that has its member(s) modified</typeparam>
7676
/// <typeparam name="TVal">Type of the value to be changed</typeparam>
77-
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <see cref="TObj"/>, while {1} inserts <paramref name="newValue"/> (format string can be used, e.g. {1:00})</param>
77+
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <typeparamref name="TObj"/>, while {1} inserts <paramref name="newValue"/> (format string can be used, e.g. {1:00})</param>
7878
/// <param name="target">Object that has its member(s) modified</param>
7979
/// <param name="newValue">New value to be set</param>
8080
/// <param name="set">Action used to set the new value</param>
@@ -91,11 +91,11 @@ public static IChange WithoutUndo<TObj, TVal>(string actionNameFormat, TObj targ
9191
/// <summary>
9292
/// Assigns a new value by using the set delegate and tracks the change in the Change History window.
9393
/// Undo is possible by providing an undo value, by using a custom action, or by using the get delegate to automatically get the original value.
94-
/// If none of the undo options are provided, undoing the change will set it to the default value of <see cref="TVal"/>.
94+
/// If none of the undo options are provided, undoing the change will set it to the default value of <typeparamref name="TVal"/>.
9595
/// </summary>
9696
/// <typeparam name="TObj">Type of the object that has its member(s) modified</typeparam>
9797
/// <typeparam name="TVal">Type of the value to be changed</typeparam>
98-
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <see cref="TObj"/>, while {1} inserts <paramref name="newValue"/> (format strings can be used, e.g. {0:00.0})</param>
98+
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <typeparamref name="TObj"/>, while {1} inserts <paramref name="newValue"/> (format strings can be used, e.g. {0:00.0})</param>
9999
/// <param name="target">Object that has its member(s) modified</param>
100100
/// <param name="newValue">New value to be set</param>
101101
/// <param name="set">Action used to set the new value</param>
@@ -137,7 +137,7 @@ private static IChange Do<TObj, TVal>(string actionNameFormat, TObj target, TVal
137137
/// Do an action and track it in the Change History window. Optionally undoable.
138138
/// </summary>
139139
/// <typeparam name="TObj">Type of the object that the action uses</typeparam>
140-
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <see cref="TObj"/> (format strings can be used, e.g. {0:00.0})</param>
140+
/// <param name="actionNameFormat">String format of how this change is represented in the Change History window. {0} inserts type name of <typeparamref name="TObj"/> (format strings can be used, e.g. {0:00.0})</param>
141141
/// <param name="target">Object that has its member(s) modified</param>
142142
/// <param name="action">Action invoked on the target object</param>
143143
/// <param name="undoAction">Action invoked on the target object to undo the change</param>

RuntimeUnityEditor.Core/Windows/Inspector/Inspector.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ public string SearchString
6868
private bool _showProperties = true;
6969
private bool _showMethods = true;
7070
private bool _showEvents = true;
71+
#if IL2CPP
7172
private bool _showNative;
73+
#endif
7274
private bool _showDeclaredOnly;
7375
private bool _showTooltips = true;
7476

0 commit comments

Comments
 (0)