概要
var assembly = typeof( SceneTemplateAsset ).Assembly; var type = assembly.GetType( "UnityEditor.SceneTemplate.SceneTemplateAssetInspectorWindow" ); var rebuildDependenciesMethodInfo = type.GetMethod( "RebuildDependencies", BindingFlags.NonPublic | BindingFlags.Instance ); var rootPropertyInfo = type.GetProperty( "Root", BindingFlags.NonPublic | BindingFlags.Instance ); var root = rootPropertyInfo.GetValue( editor ); rebuildDependenciesMethodInfo.Invoke( editor, new[] { root } );
上記のコードで再描画できる