예제 #1
0
 private void UpdatePort(NodePort port, PortIO direction)
 {
     var portData       = port.portData;
     var connectionType = portData.acceptMultipleEdges ? ConnectionType.Multiple : ConnectionType.Override;
     var portValue      = this.UpdatePortValue(port.fieldName, direction, connectionType, ShowBackingValue.Always);
     var nodePort       = GetPort(port.fieldName);
 }
예제 #2
0
 protected virtual bool CanResetPort(NodePort port) => true;
예제 #3
0
 /// <summary>
 /// 需要由Node重写的方法,用于获取Output的值
 /// </summary>
 /// <param name="outputPort">output端口</param>
 /// <param name="inputPort">与上面的output端口相连的input端口</param>
 /// <param name="value">要返回的值</param>
 /// <typeparam name="T"></typeparam>
 public virtual void TryGetOutputValue <T>(NodePort outputPort, NodePort inputPort, ref T value)
 {
     Debug.LogError($"{this.GetType()} 未重写TryGetOutputValue函数,将无法正确获取输出值");
 }