Skip to content

Commit

Permalink
Merge ed62787 into c8d54a9
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Jun 14, 2023
2 parents c8d54a9 + ed62787 commit 220a2db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Runtime/Wrappers/UnityEditor/GameViewWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class GameViewWrapper
private static readonly Type s_gameView = s_editorAssembly.GetType("UnityEditor.GameView");

private static readonly PropertyInfo s_selectedSizeIndex = s_gameView
.GetProperty("selectedSizeIndex", BindingFlags.Instance | BindingFlags.NonPublic);
.GetProperty("selectedSizeIndex", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

private readonly EditorWindow _instance;

Expand Down
2 changes: 0 additions & 2 deletions Tests/Runtime/Wrappers/UnityEditor/GameViewWrapperTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace TestHelper.Wrappers.UnityEditor
[TestFixture]
public class GameViewWrapperTest
{
#if !UNITY_2022_2_OR_NEWER
private readonly GameViewWrapper _sut = GameViewWrapper.GetWindow();

[Test]
Expand All @@ -28,7 +27,6 @@ public void SelectedSizeIndex()

_sut.SelectedSizeIndex(beforeSelectedIndex);
}
#endif
}
}
#endif

0 comments on commit 220a2db

Please sign in to comment.