mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Minor corrections
Instance ports now show value for tooltip Edited comment
This commit is contained in:
parent
dc9b11c5a3
commit
704730e59d
@ -446,7 +446,7 @@ namespace XNodeEditor {
|
|||||||
Type type = hoveredPort.ValueType;
|
Type type = hoveredPort.ValueType;
|
||||||
GUIContent content = new GUIContent();
|
GUIContent content = new GUIContent();
|
||||||
content.text = type.PrettyName();
|
content.text = type.PrettyName();
|
||||||
if (hoveredPort.IsStatic && hoveredPort.IsOutput) {
|
if (hoveredPort.IsOutput) {
|
||||||
object obj = hoveredPort.node.GetValue(hoveredPort);
|
object obj = hoveredPort.node.GetValue(hoveredPort);
|
||||||
content.text += " = " + (obj != null ? obj.ToString() : "null");
|
content.text += " = " + (obj != null ? obj.ToString() : "null");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,7 +57,7 @@ namespace XNode {
|
|||||||
[SerializeField] public NodeGraph graph;
|
[SerializeField] public NodeGraph graph;
|
||||||
/// <summary> Position on the <see cref="NodeGraph"/> </summary>
|
/// <summary> Position on the <see cref="NodeGraph"/> </summary>
|
||||||
[SerializeField] public Vector2 position;
|
[SerializeField] public Vector2 position;
|
||||||
/// <summary> Input <see cref="NodePort"/>s. It is recommended not to modify these at hand. Instead, see <see cref="InputAttribute"/> </summary>
|
/// <summary> It is recommended not to modify these at hand. Instead, see <see cref="InputAttribute"/> and <see cref="OutputAttribute"/> </summary>
|
||||||
[SerializeField] private NodePortDictionary ports = new NodePortDictionary();
|
[SerializeField] private NodePortDictionary ports = new NodePortDictionary();
|
||||||
|
|
||||||
protected void OnEnable() {
|
protected void OnEnable() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user