File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
sdkproject/Assets/Mapbox/Unity/Editor/NodeEditor Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,18 @@ public class NodeBasedEditor : EditorWindow
32
32
public static GUIStyle selectedNodeStyle ;
33
33
public static GUIStyle inPointStyle ;
34
34
public static GUIStyle outPointStyle ;
35
- public static Texture2D magnifierTexture ;
35
+ private static Texture2D _magnifierTexture ;
36
+ public static Texture2D magnifierTexture
37
+ {
38
+ get
39
+ {
40
+ if ( _magnifierTexture == null )
41
+ {
42
+ _magnifierTexture = EditorGUIUtility . FindTexture ( "d_ViewToolZoom" ) ;
43
+ }
44
+ return _magnifierTexture ;
45
+ }
46
+ }
36
47
private GUIStyle _optionLabel ;
37
48
38
49
//private ConnectionPoint selectedInPoint;
@@ -57,7 +68,7 @@ private static void OpenWindow()
57
68
private void OnEnable ( )
58
69
{
59
70
GUIScaleUtility . CheckInit ( ) ;
60
- magnifierTexture = EditorGUIUtility . FindTexture ( "d_ViewToolZoom" ) ;
71
+ //MagnifierTexture = EditorGUIUtility.FindTexture("d_ViewToolZoom");
61
72
var textOffset = new RectOffset ( 12 , 0 , 10 , 0 ) ;
62
73
63
74
nodeStyle = new GUIStyle ( ) ;
You can’t perform that action at this time.
0 commit comments