void OnEnable() { m_Target = target as SignalReceiver; m_SignalNameProperty = SignalReceiverUtility.FindSignalsProperty(serializedObject); m_EventsProperty = SignalReceiverUtility.FindEventsProperty(serializedObject); InitTreeView(m_SignalNameProperty, m_EventsProperty); }
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 }
void SetSerializedProperties(SerializedObject serializedObject) { signals = SignalReceiverUtility.FindSignalsProperty(serializedObject); events = SignalReceiverUtility.FindEventsProperty(serializedObject); Reload(); }