private void OnEnable() { m_propertyUnloadTrackedScenesOnUninitialize = serializedObject.FindProperty("m_unloadTrackedScenesOnUninitialize"); m_propertyRegisterApplicationForScenes = serializedObject.FindProperty("m_registerApplicationForScenes"); m_listLoaders = new AssetReferenceListDrawer(serializedObject.FindProperty("m_loaders")); m_listLoadersSelection = new ReorderableListSelectionDrawerByPath(m_listLoaders, "m_asset") { Drawer = { DisplayTitlebar = true } }; m_listGroups = new AssetReferenceListDrawer(serializedObject.FindProperty("m_groups")); m_listGroupsSelection = new ReorderableListSelectionDrawerByPath(m_listGroups, "m_asset") { Drawer = { DisplayTitlebar = true } }; m_listLoaders.Enable(); m_listLoadersSelection.Enable(); m_listGroups.Enable(); m_listGroupsSelection.Enable(); }
private void OnEnable() { m_listLoaders = new AssetReferenceListDrawer(serializedObject.FindProperty("m_loaders")); m_listLoadersSelection = new ReorderableListSelectionDrawerByPath(m_listLoaders, "m_asset") { Drawer = { DisplayTitlebar = true } }; m_listLoaders.Enable(); m_listLoadersSelection.Enable(); }