public override void NodeGUI() { inputKnob.DisplayLayout(new GUIContent("Texture" + (tex != null ? ":" : " (null)"), "The texture to display information about.")); if (tex != null) { RTTextureViz.DrawTexture(tex, 64); GUILayout.Label("'" + tex.name + "'"); GUILayout.Label("Size: " + tex.width + "x" + tex.height + ""); } }
public override void NodeGUI() { inputKnob.DisplayLayout(); if (tex != null) { RTTextureViz.DrawTexture(tex, 64); } GUILayout.BeginHorizontal(); RTEditorGUI.TextField(savePath); #if UNITY_EDITOR if (GUILayout.Button("#", GUILayout.ExpandWidth(false))) { savePath = UnityEditor.EditorUtility.SaveFilePanel("Save Texture Path", Application.dataPath, "OutputTex", "png"); } #endif GUILayout.EndHorizontal(); if (GUI.changed) { NodeEditor.curNodeCanvas.OnNodeChange(this); } }