|
|
|
|
|
|
|
|
|
|
void OnEnable() |
|
|
|
{ |
|
|
|
if (EditorGUIUtility.isProSkin) |
|
|
|
titleContent = styles.proTitle; |
|
|
|
else |
|
|
|
titleContent = styles.title; |
|
|
|
|
|
|
|
m_ProcessorDataProvider = null; |
|
|
|
|
|
|
|
if(Selection.activeObject != null && Selection.activeObject is ImageSequence) |
|
|
|
|
|
|
LoadAsset(m_CurrentAsset); |
|
|
|
DefaultView(); |
|
|
|
} |
|
|
|
|
|
|
|
minSize = new Vector2(880, 320); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
// Construct the RList
|
|
|
|
if (m_CurrentAsset.inheritSettingsReference == null) |
|
|
|
{ |
|
|
|
#if UNITY_2020_1_OR_NEWER
|
|
|
|
m_ProcessorsReorderableList = new ReorderableList(m_CurrentAsset.processorInfos, typeof(ProcessorInfo), true, false, true, true); |
|
|
|
#else
|
|
|
|
#endif
|
|
|
|
m_ProcessorsReorderableList.onAddCallback = ShowAddProcessorMenu; |
|
|
|
m_ProcessorsReorderableList.onRemoveCallback = MenuRemoveProcessor; |
|
|
|
m_ProcessorsReorderableList.onReorderCallback = ReorderProcessor; |
|
|
|