public PropertiesView(string label, SerializedProperty bindingOrAction, Action <FourCC> onChange, string expectedControlLayout = null)
        {
            m_InteractionsProperty = bindingOrAction.FindPropertyRelative("m_Interactions");
            m_ProcessorsProperty   = bindingOrAction.FindPropertyRelative("m_Processors");

            m_InteractionsList = new InteractionsListView(m_InteractionsProperty, OnInteractionsModified, expectedControlLayout);
            m_ProcessorsList   = new ProcessorsListView(m_ProcessorsProperty, OnProcessorsModified, expectedControlLayout);

            m_OnChange            = onChange;
            m_GeneralFoldoutLabel = EditorGUIUtility.TrTextContent(label);
        }
        protected PropertiesViewBase(string label, SerializedProperty bindingOrAction, Action <FourCC> onChange, string expectedControlLayout = null)
        {
            if (bindingOrAction == null)
            {
                throw new ArgumentNullException(nameof(bindingOrAction));
            }

            m_InteractionsProperty = bindingOrAction.FindPropertyRelative("m_Interactions");
            m_ProcessorsProperty   = bindingOrAction.FindPropertyRelative("m_Processors");

            m_InteractionsList = new InteractionsListView(m_InteractionsProperty, OnInteractionsModified, null);
            m_ProcessorsList   = new ProcessorsListView(m_ProcessorsProperty, OnProcessorsModified, expectedControlLayout);

            m_OnChange            = onChange;
            m_GeneralFoldoutLabel = EditorGUIUtility.TrTextContent(label);
        }
Example #3
0
 protected void UpdateProcessors(string expectedControlLayout)
 {
     m_ProcessorsList = new ProcessorsListView(m_ProcessorsProperty, OnProcessorsModified, expectedControlLayout);
 }