void OnEnable() { bundleBuilder = target as EZBundleBuilder; m_OutputPath = serializedObject.FindProperty("outputPath"); m_ListFileName = serializedObject.FindProperty("listFileName"); m_ManagerMode = serializedObject.FindProperty("managerMode"); m_ForceRebuild = serializedObject.FindProperty("forceRebuild"); m_CopyList = serializedObject.FindProperty("copyList"); m_BundleList = serializedObject.FindProperty("bundleList"); m_CopyListFoldout = serializedObject.FindProperty("copyListFoldout"); m_BundleListFoldout = serializedObject.FindProperty("bundleListFoldout"); m_ShowAssets = serializedObject.FindProperty("showAssets"); m_ShowDependencies = serializedObject.FindProperty("showDependencies"); copyList = new ReorderableList(serializedObject, m_CopyList, true, true, true, true); copyList.drawHeaderCallback = DrawCopyListHeader; copyList.drawElementCallback = DrawCopyListElement; bundleList = new ReorderableList(serializedObject, m_BundleList, true, true, true, true); bundleList.drawHeaderCallback = DrawBundleListHeader; bundleList.drawElementCallback = DrawBundleListElement; EZBundleManager.Refresh(); }