void InitTreeView(SerializedProperty signals, SerializedProperty events)
        {
            m_TreeState = SignalListFactory.CreateViewState();
            m_MultiColumnHeaderState = SignalListFactory.CreateHeaderState();

            m_TreeView = SignalListFactory.CreateSignalInspectorList(m_TreeState, m_MultiColumnHeaderState, target as SignalReceiver, SignalReceiverUtility.headerHeight, m_Context != null);
            m_TreeView.SetSerializedProperties(signals, events);
            if (m_Context != null)
            {
                m_TreeView.SetSignalContext((m_Context as SignalEmitter).asset);
            }
        }
Ejemplo n.º 2
0
        void InitTreeView(SerializedObject so)
        {
            m_TreeState = SignalListFactory.CreateViewState();
            m_MultiColumnHeaderState = SignalListFactory.CreateHeaderState();
            var header = SignalListFactory.CreateHeader(m_MultiColumnHeaderState, SignalReceiverUtility.headerHeight);

            var context = signalEmitterContext;

            m_TreeView = SignalListFactory.CreateSignalInspectorList(m_TreeState, header, m_Target, so);
            m_TreeView.readonlySignals = context != null;

            if (context != null)
            {
                m_TreeView.SetSignalContext(context.asset);
            }
        }