1313using SerializableJsonDictionary = UnityEditor . UIElements . SerializableJsonDictionary ;
1414using UnityEngine . UIElements ;
1515using UnityEditor . UIElements ;
16+ using UnityEngine . Bindings ;
1617
1718namespace UnityEditor
1819{
@@ -52,7 +53,11 @@ internal DataModeController GetDataModeController_Internal() // For HostView to
5253
5354 private VisualElement m_UIRootElement ;
5455
55- internal VisualElement baseRootVisualElement => m_UIRootElement ??= CreateRoot ( ) ;
56+ internal VisualElement baseRootVisualElement
57+ {
58+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
59+ get => m_UIRootElement ??= CreateRoot ( ) ;
60+ }
5661
5762 public VisualElement rootVisualElement
5863 {
@@ -140,6 +145,7 @@ internal void DisableViewDataPersistence()
140145 m_EnableViewDataPersistence = false ;
141146 }
142147
148+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
143149 internal void ClearPersistentViewData ( )
144150 {
145151 string editorPrefFileName = this . GetType ( ) . ToString ( ) ;
@@ -158,6 +164,7 @@ internal void ClearPersistentViewData()
158164 bool m_DisableInputEvents ;
159165
160166 // Dockarea we're inside.
167+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
161168 [ NonSerialized ]
162169 internal HostView m_Parent ;
163170
@@ -181,6 +188,7 @@ public void EndWindows()
181188 GUI . EndWindows ( ) ;
182189 }
183190
191+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
184192 internal virtual void OnResized ( ) { }
185193
186194 internal virtual void OnBackgroundViewResized ( Rect pos ) { }
@@ -242,6 +250,7 @@ internal void CheckForWindowRepaint()
242250
243251 internal CustomYieldInstruction WaitUntilPresented ( ) => new WaitUntil ( ( ) => m_IsPresented ) ;
244252
253+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
245254 internal GUIContent GetLocalizedTitleContent ( )
246255 {
247256 return GetLocalizedTitleContentFromType ( GetType ( ) ) ;
@@ -635,6 +644,7 @@ internal void ShowAsDropDown(Rect buttonRect, Vector2 windowSize, PopupLocation[
635644 // 'windowSize' is used for setting up initial size
636645 // 'locationPriorityOrder' is for manual popup direction, if null it uses default order: down, up, left or right
637646 // 'giveFocus' is for whether the window should immediately be given focus (default true)
647+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
638648 internal void ShowAsDropDown ( Rect buttonRect , Vector2 windowSize , PopupLocation [ ] locationPriorityOrder , ShowMode mode , bool giveFocus )
639649 {
640650 // Setup position before bringing window live (otherwise the dropshadow on Windows will be placed in 0,0 first frame)
@@ -1069,6 +1079,7 @@ public void Repaint()
10691079 }
10701080 }
10711081
1082+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
10721083 internal void RepaintImmediately ( )
10731084 {
10741085 if ( m_Parent && m_Parent . actualView == this )
0 commit comments