Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ public class NodeBasedEditor : EditorWindow
public static GUIStyle selectedNodeStyle;
public static GUIStyle inPointStyle;
public static GUIStyle outPointStyle;
public static Texture2D magnifierTexture;
private static Texture2D _magnifierTexture;
public static Texture2D magnifierTexture
{
get
{
if(_magnifierTexture == null)
{
_magnifierTexture = EditorGUIUtility.FindTexture("d_ViewToolZoom");
}
return _magnifierTexture;
}
}
private GUIStyle _optionLabel;

//private ConnectionPoint selectedInPoint;
Expand All @@ -57,7 +68,7 @@ private static void OpenWindow()
private void OnEnable()
{
GUIScaleUtility.CheckInit();
magnifierTexture = EditorGUIUtility.FindTexture("d_ViewToolZoom");
//MagnifierTexture = EditorGUIUtility.FindTexture("d_ViewToolZoom");
var textOffset = new RectOffset(12, 0, 10, 0);

nodeStyle = new GUIStyle();
Expand Down