コード例 #1
0
 void OnEnable()
 {
     m_Target             = target as SignalReceiver;
     m_SignalNameProperty = SignalReceiverUtility.FindSignalsProperty(serializedObject);
     m_EventsProperty     = SignalReceiverUtility.FindEventsProperty(serializedObject);
     InitTreeView(m_SignalNameProperty, m_EventsProperty);
 }
コード例 #2
0
        public SignalReceiverTreeView(TreeViewState state, MultiColumnHeader multiColumnHeader, SignalReceiver receiver, bool readonlySignal) : base(state, multiColumnHeader)
        {
            m_Target = receiver;
            var receiverSO = new SerializedObject(receiver);

            signals                 = SignalReceiverUtility.FindSignalsProperty(receiverSO);
            events                  = SignalReceiverUtility.FindEventsProperty(receiverSO);
            readonlySignals         = readonlySignal;
            useScrollView           = false;
            getNewSelectionOverride = (item, selection, shift) => new List <int>(); // Disable Selection
        }
コード例 #3
0
 void SetSerializedProperties(SerializedObject serializedObject)
 {
     signals = SignalReceiverUtility.FindSignalsProperty(serializedObject);
     events = SignalReceiverUtility.FindEventsProperty(serializedObject);
     Reload();
 }