Skip to content

Commit

Permalink
force behaviour inspector expand
Browse files Browse the repository at this point in the history
  • Loading branch information
Xytabich committed Nov 1, 2021
1 parent ce18fa2 commit 64b3ba3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Katsudon/Editor Scripts/Udon/BehavioursTracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Katsudon.Utility;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.SceneManagement;
using VRC.Udon;
Expand Down Expand Up @@ -87,6 +88,10 @@ internal static void IgnoreNextProxyDirtiness(MonoBehaviour proxy)

private static void RegisterPair(UdonBehaviour behaviour, MonoBehaviour proxy, bool beginTrack)
{
if(!InternalEditorUtility.GetIsInspectorExpanded(behaviour))
{
InternalEditorUtility.SetIsInspectorExpanded(behaviour, true);
}
var group = Undo.GetCurrentGroup();
var obj = behaviour.gameObject;
var container = GetContainer(obj);
Expand Down

0 comments on commit 64b3ba3

Please sign in to comment.