void OnSettingsModification(AddressableAssetSettings s, AddressableAssetSettings.ModificationEvent e, object o) { if (m_EntryTree == null) { return; } switch (e) { case AddressableAssetSettings.ModificationEvent.GroupAdded: case AddressableAssetSettings.ModificationEvent.GroupRemoved: case AddressableAssetSettings.ModificationEvent.EntryAdded: case AddressableAssetSettings.ModificationEvent.EntryMoved: case AddressableAssetSettings.ModificationEvent.EntryRemoved: case AddressableAssetSettings.ModificationEvent.GroupRenamed: case AddressableAssetSettings.ModificationEvent.EntryModified: case AddressableAssetSettings.ModificationEvent.BatchModification: m_EntryTree.Reload(); if (window != null) { window.Repaint(); } break; } }
internal void SetDirty(AddressableAssetSettings.ModificationEvent e, object o, bool postEvent) { if (parentGroup != null) { parentGroup.SetDirty(e, o, postEvent, true); } }
/// <summary> /// Marks the object as modified. /// </summary> /// <param name="modificationEvent">The event type that is changed.</param> /// <param name="eventData">The object data that corresponds to the event.</param> /// <param name="postEvent">If true, the event is propagated to callbacks.</param> public void SetDirty(AddressableAssetSettings.ModificationEvent modificationEvent, object eventData, bool postEvent) { if (m_Settings != null) { m_Settings.SetDirty(modificationEvent, eventData, postEvent, true); } }
private static void OnModification(AddressableAssetSettings settings, AddressableAssetSettings.ModificationEvent modificationEvent, object o) { if (modificationEvent == AddressableAssetSettings.ModificationEvent.ActivePlayModeScriptChanged) { var isFastMode = settings.ActivePlayModeDataBuilderIndex == FastModeIndex; SetFastModeToManagers(isFastMode); } }
static void AddressableSettingsModification(AddressableAssetSettings arg1, AddressableAssetSettings.ModificationEvent arg2, object arg3) { if (arg2 == AddressableAssetSettings.ModificationEvent.EntryAdded || arg2 == AddressableAssetSettings.ModificationEvent.EntryModified || arg2 == AddressableAssetSettings.ModificationEvent.EntryRemoved) { // Refresh choices GetChoices(); } }
/// <summary> /// Marks the object as modified. /// </summary> /// <param name="modificationEvent">The event type that is changed.</param> /// <param name="eventData">The object data that corresponds to the event.</param> /// <param name="postEvent">If true, the event is propagated to callbacks.</param> public void SetDirty(AddressableAssetSettings.ModificationEvent modificationEvent, object eventData, bool postEvent) { if (Settings != null) { if (Settings.IsPersisted && this != null) { EditorUtility.SetDirty(this); } Settings.SetDirty(modificationEvent, eventData, postEvent); } }
void OnSettingsModification(AddressableAssetSettings s, AddressableAssetSettings.ModificationEvent evt, object obj) { switch (evt) { case AddressableAssetSettings.ModificationEvent.GroupAdded: case AddressableAssetSettings.ModificationEvent.GroupRemoved: case AddressableAssetSettings.ModificationEvent.GroupSchemaAdded: case AddressableAssetSettings.ModificationEvent.GroupSchemaRemoved: case AddressableAssetSettings.ModificationEvent.GroupSchemaModified: case AddressableAssetSettings.ModificationEvent.ActiveProfileSet: case AddressableAssetSettings.ModificationEvent.BuildSettingsChanged: case AddressableAssetSettings.ModificationEvent.BatchModification: ConfigureAllHostingServices(); break; } }
void OnSettingsModification(AddressableAssetSettings settings, AddressableAssetSettings.ModificationEvent evnt, object o) { switch (evnt) { case AddressableAssetSettings.ModificationEvent.GroupAdded: case AddressableAssetSettings.ModificationEvent.GroupRemoved: case AddressableAssetSettings.ModificationEvent.GroupRenamed: case AddressableAssetSettings.ModificationEvent.BatchModification: case AddressableAssetSettings.ModificationEvent.ActiveProfileSet: case AddressableAssetSettings.ModificationEvent.GroupSchemaAdded: case AddressableAssetSettings.ModificationEvent.GroupSchemaModified: case AddressableAssetSettings.ModificationEvent.GroupSchemaRemoved: Repaint(); break; } }
internal static void OnSettingsChanged(AddressableAssetSettings settings, AddressableAssetSettings.ModificationEvent evt, object obj) { switch (evt) { case AddressableAssetSettings.ModificationEvent.EntryCreated: case AddressableAssetSettings.ModificationEvent.EntryAdded: case AddressableAssetSettings.ModificationEvent.EntryMoved: case AddressableAssetSettings.ModificationEvent.EntryModified: var entries = obj as List <AddressableAssetEntry>; if (entries == null) { entries = new List <AddressableAssetEntry>(); entries.Add(obj as AddressableAssetEntry); } CheckForScenesInBuildList(entries); break; } }
void OnSettingsModification(AddressableAssetSettings s, AddressableAssetSettings.ModificationEvent evt, object obj) { switch (evt) { case AddressableAssetSettings.ModificationEvent.GroupAdded: case AddressableAssetSettings.ModificationEvent.GroupRemoved: case AddressableAssetSettings.ModificationEvent.GroupSchemaAdded: case AddressableAssetSettings.ModificationEvent.GroupSchemaRemoved: case AddressableAssetSettings.ModificationEvent.GroupSchemaModified: case AddressableAssetSettings.ModificationEvent.ActiveProfileSet: case AddressableAssetSettings.ModificationEvent.BuildSettingsChanged: case AddressableAssetSettings.ModificationEvent.ProfileModified: var profileRemoteBuildPath = m_Settings.profileSettings.GetValueByName(m_Settings.activeProfileId, AddressableAssetSettings.kRemoteBuildPath); if (profileRemoteBuildPath != null && (profileRemoteBuildPath.Contains('[') || !CurrentContentRootsContain(profileRemoteBuildPath))) { ConfigureAllHostingServices(); } break; case AddressableAssetSettings.ModificationEvent.BatchModification: ConfigureAllHostingServices(); break; } }