|
|
|
|
|
|
name = "preview", // for USS&Flexbox
|
|
|
|
pickingMode = PickingMode.Ignore, |
|
|
|
}; |
|
|
|
AddChild(m_PreviewContainer); |
|
|
|
|
|
|
|
m_currentPreviewData = new List<NodePreviewDrawData>(); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
AddChild(m_PreviewContainer); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnDataChanged() |
|
|
|
|
|
|
var nodeData = dataProvider as MaterialNodeDrawData; |
|
|
|
if (nodeData == null) |
|
|
|
{ |
|
|
|
CreateContainers(); |
|
|
|
m_PreviewContainer.ClearChildren(); |
|
|
|
m_currentPreviewData.Clear(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|