Skip to content

Commit

Permalink
chore: fix compiler warnings (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore authored Sep 28, 2024
1 parent 787e8b0 commit f0a6980
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Editor/ChangeStream/ShadowGameObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ internal class ShadowHierarchy
internal Dictionary<int, ShadowObject> _otherObjects = new();
internal ListenerSet<HierarchyEvent> _rootSetListener = new();

int lastPruned = Int32.MinValue;

#if NDMF_DEBUG
[MenuItem("Tools/NDM Framework/Debug Tools/Dump shadow hierarchy")]
static void StaticDumpShadowHierarchy()
Expand Down
6 changes: 4 additions & 2 deletions Editor/MiscDebugTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public static void DumpScenes()
[MenuItem("Tools/NDM Framework/Debug Tools/Dump Scene Objects")]
public static void DumpSceneObjects()
{
foreach (var scene in SceneManager.GetAllScenes())
var sceneCount = SceneManager.sceneCount;
for (var i = 0; i < sceneCount; i++)
{
var scene = SceneManager.GetSceneAt(i);
Debug.Log($"Scene {scene.name}:");
foreach (var gameObject in scene.GetRootGameObjects())
{
Expand Down Expand Up @@ -70,7 +72,7 @@ public static void CreateGameObjectAtRoot()
public static void ReloadDomain()
{
Debug.Log("Reloading domain...");
UnityEditor.EditorUtility.RequestScriptReload();
EditorUtility.RequestScriptReload();
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion Editor/PreviewSystem/IRenderFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public override int GetHashCode()
return hashCode;
}

public string ToString()
public override string ToString()
{
return "RenderGroup(" + string.Join(", ", Renderers.Select(r => r.name)) + ")";
}
Expand Down

0 comments on commit f0a6980

Please sign in to comment.