|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void UpdateControls(MaterialNodePresenter nodeData) |
|
|
|
void UpdateControls(MaterialNodePresenter nodePresenter) |
|
|
|
if (!nodeData.node.guid.Equals(m_NodeGuid)) |
|
|
|
if (!nodePresenter.node.guid.Equals(m_NodeGuid)) |
|
|
|
foreach (var propertyInfo in nodeData.node.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public)) |
|
|
|
foreach (var propertyInfo in nodePresenter.node.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public)) |
|
|
|
m_ControlViews.Add(attribute.InstantiateControl(nodeData.node, propertyInfo)); |
|
|
|
m_ControlViews.Add(attribute.InstantiateControl(nodePresenter.node, propertyInfo)); |
|
|
|
if (!nodeData.expanded) |
|
|
|
if (!nodePresenter.expanded) |
|
|
|
m_ControlsContainer.Clear(); |
|
|
|
foreach (var view in m_ControlViews) |
|
|
|
m_ControlsContainer.Add(view); |
|
|
|
} |
|
|
|