1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00
Wang Cong 7b480b6242 changed: move folder Examples into Samples~
In Package Manager UI 2.0 (compatible with Unity 2019.1), you can include samples in a package.
    https://forum.unity.com/threads/samples-in-packages-manual-setup.623080/
2019-10-21 11:37:56 +08:00

18 lines
472 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XNode.Examples.MathNodes;
namespace XNode.Examples.RuntimeMathNodes {
public class UGUIDisplayValue : UGUIMathBaseNode {
public Text label;
void Update() {
DisplayValue displayValue = node as DisplayValue;
object obj = displayValue.GetInputValue<object>("input");
if (obj != null) label.text = obj.ToString();
else label.text = "n/a";
}
}
}