public bool IsCompatibleWith(MaterialSlot otherSlot) { return(otherSlot != null && otherSlot.owner != owner && otherSlot.isInputSlot != isInputSlot && ((isInputSlot ? SlotValueHelper.AreCompatible(valueType, otherSlot.concreteValueType) : SlotValueHelper.AreCompatible(otherSlot.valueType, concreteValueType)))); }
public bool IsCompatibleWith(MaterialSlot otherSlot) { return(otherSlot != null && otherSlot.owner != owner && otherSlot.isInputSlot != isInputSlot && !hidden && !otherSlot.hidden && ((isInputSlot ? SlotValueHelper.AreCompatible(valueType, otherSlot.concreteValueType, otherSlot.IsConnectionTestable()) : SlotValueHelper.AreCompatible(otherSlot.valueType, concreteValueType, IsConnectionTestable())))); }