Skip to content

Releases: brunomikoski/ScriptableObjectCollection

IndirectReference Refactor

Choose a tag to compare

@brunomikoski brunomikoski released this 06 Apr 09:36
a5b089d

Changed

  • Improved the Refreshing of the CollectionRegistry to try to refresh when items are deleted/created
  • Refactored the IndirectReference to not need a serialized version of the CollectionItem type, so avoid any serialization issues
  • Renamed some of the editor classes to match the standard

Multiple Collections improvements

Choose a tag to compare

@brunomikoski brunomikoski released this 05 Apr 08:07
aa42c48

Changed

  • In order to support multiple collections of the same type the check of the Values I had to tweak how the instance of every instance is assigned, changed for the OnEnable of the collection item
  • Changed the Refresh of the collections to only find items under the same folder.
  • Fixed a lot of scripts to work properly with multiple collections of the same type
  • Added some logs when CollectionItems are added/removed from collections to help the visibility
  • CollectionType.Values now will return all the CollectionItem available on the registry, so if you have 2 Collections of the one Type this will return the content of both collections while the CollectionItem.Values when the access file is generated will only return that specific collection item

Settings Revamp

Choose a tag to compare

@brunomikoski brunomikoski released this 02 Apr 12:32
2124c5c

Changed

  • Removed the automatically reload of CollectionRegistry using the DidReloadScripts callback, this caused multiple issues on batch mode and on clear libraries
  • Converted the Collection reference on the CollectionItem to be a Lazy reference, since this was causing some dependency when using CollectionItem as addressables
  • Refactored the ScriptableObjectSettings this used to be a Resources object that was autoloaded, but this could also create unwanted dependencies between items. The settings for code generated are not stored inside the Collection itself. Make sure you delete the ScriptableObjectsSettings ScriptableObject inside your resources folder.
  • Added a bunch of validation and verification for the Generation of the static access, making sure it only allows partial classes when is possible and other small checks.
  • The settings are now on the Project Preferences where you can define the default folder for the Scriptable Objects and default namespace.

Fixed batch mode collection reload

Choose a tag to compare

@brunomikoski brunomikoski released this 31 Mar 20:03
73ab4a1

Changed

-Disabled the reload of the collection after script reloading on batch mode.

Cleanup old .meta files

Choose a tag to compare

@brunomikoski brunomikoski released this 31 Mar 07:30
892f10a
v1.5.2

Update package.json

Simplified Multiple Collections display

Choose a tag to compare

@brunomikoski brunomikoski released this 31 Mar 07:12
da45b14

Changed

  • Simplified the multiple collection display to be a single line again, showing all the available items inside the AdvancedDropdown

Multiple Collections of the same type support

Choose a tag to compare

@brunomikoski brunomikoski released this 30 Mar 22:02
084bf5f

Changed

  • Renamed the Collectable for CollectionItem this has several changes in multiple parts of the code, I tried my best to keep compatibility with the old version. CollectableScriptableObject still exists but has the obsolete flag on it to avoid breakable changes.
  • Add IsValid to IndirectReferences to check if has valid data before being used
  • Refactored ResourceScriptableObjectSingleton to fix some warnings
  • Fixed the GetEnumerator from Collection warning
  • The CollectionRegistry now will only load Collections that are inside an active Assembly.
  • Exposed the Collections list on the Registry
  • Simplified the CollectionItem Dropdown (removed the type grouping)
  • Multiple QoL improvements on the codebase.

Added

  • A new information on the Collection custom editor to show the base class if is different from the collection type (Disabled for now)
  • Exposed the namespace to be customized by the custom static file
  • Added support of multiple collections of the same type on the registry, the CollectionItemDrawer will display a Collection dropdown if more than one collection for the same type of item is available

Fixed issues:
#63 #62 #61 #60 #51

Quality fo Life and Contributions

Choose a tag to compare

@brunomikoski brunomikoski released this 17 Feb 21:34
5b52c5d

Changed

  • Fixed issue when using the Create Settings menu
  • Added automatically open of the selected collectable when using the goto button on the CollectableProperty Drawer
  • Added type-specific GetEnumerator for the Collection

Thanks @Thundernerd and @FreezyExp for the contributions

Refactoring and improvements

Choose a tag to compare

@brunomikoski brunomikoski released this 06 Dec 20:42
9ec9cf9

Added

  • Added quick access to the .Values from the collection, to be used without code generation, you can now use CustomCollection.Values to gett all your items
  • Added a GetValues() to the generated static file, you can quickly get a filtered list of items that you need

Changed

  • Changed Create Collection Wizzard to behave like a modal window that can loose focus.
  • Removed the TryGet static access generation, was not been used and was causing some problems

New QoL and bug fixes

Choose a tag to compare

@brunomikoski brunomikoski released this 06 Dec 16:54
a7671d3

Added

  • Automatically selection of the newly created item, for renaming
  • Added keyword validation for names
  • Added ability to create new items from the selection dropdown.

Changed

  • Fixed issue when trying to play without the CollectionRegistry created