13
13
using SerializableJsonDictionary = UnityEditor . UIElements . SerializableJsonDictionary ;
14
14
using UnityEngine . UIElements ;
15
15
using UnityEditor . UIElements ;
16
+ using UnityEngine . Bindings ;
16
17
17
18
namespace UnityEditor
18
19
{
@@ -52,7 +53,11 @@ internal DataModeController GetDataModeController_Internal() // For HostView to
52
53
53
54
private VisualElement m_UIRootElement ;
54
55
55
- internal VisualElement baseRootVisualElement => m_UIRootElement ??= CreateRoot ( ) ;
56
+ internal VisualElement baseRootVisualElement
57
+ {
58
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
59
+ get => m_UIRootElement ??= CreateRoot ( ) ;
60
+ }
56
61
57
62
public VisualElement rootVisualElement
58
63
{
@@ -140,6 +145,7 @@ internal void DisableViewDataPersistence()
140
145
m_EnableViewDataPersistence = false ;
141
146
}
142
147
148
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
143
149
internal void ClearPersistentViewData ( )
144
150
{
145
151
string editorPrefFileName = this . GetType ( ) . ToString ( ) ;
@@ -158,6 +164,7 @@ internal void ClearPersistentViewData()
158
164
bool m_DisableInputEvents ;
159
165
160
166
// Dockarea we're inside.
167
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
161
168
[ NonSerialized ]
162
169
internal HostView m_Parent ;
163
170
@@ -181,6 +188,7 @@ public void EndWindows()
181
188
GUI . EndWindows ( ) ;
182
189
}
183
190
191
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
184
192
internal virtual void OnResized ( ) { }
185
193
186
194
internal virtual void OnBackgroundViewResized ( Rect pos ) { }
@@ -242,6 +250,7 @@ internal void CheckForWindowRepaint()
242
250
243
251
internal CustomYieldInstruction WaitUntilPresented ( ) => new WaitUntil ( ( ) => m_IsPresented ) ;
244
252
253
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
245
254
internal GUIContent GetLocalizedTitleContent ( )
246
255
{
247
256
return GetLocalizedTitleContentFromType ( GetType ( ) ) ;
@@ -635,6 +644,7 @@ internal void ShowAsDropDown(Rect buttonRect, Vector2 windowSize, PopupLocation[
635
644
// 'windowSize' is used for setting up initial size
636
645
// 'locationPriorityOrder' is for manual popup direction, if null it uses default order: down, up, left or right
637
646
// 'giveFocus' is for whether the window should immediately be given focus (default true)
647
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
638
648
internal void ShowAsDropDown ( Rect buttonRect , Vector2 windowSize , PopupLocation [ ] locationPriorityOrder , ShowMode mode , bool giveFocus )
639
649
{
640
650
// 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()
1069
1079
}
1070
1080
}
1071
1081
1082
+ [ VisibleToOtherModules ( "UnityEditor.UIBuilderModule" ) ]
1072
1083
internal void RepaintImmediately ( )
1073
1084
{
1074
1085
if ( m_Parent && m_Parent . actualView == this )
0 commit comments