Skip to content

Releases: brunomikoski/ScriptableObjectCollection

Multiple Collections improvements

05 Apr 08:07
aa42c48

Choose a tag to compare

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

02 Apr 12:32
2124c5c

Choose a tag to compare

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

31 Mar 20:03
73ab4a1

Choose a tag to compare

Changed

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

Cleanup old .meta files

31 Mar 07:30
892f10a

Choose a tag to compare

v1.5.2

Update package.json

Simplified Multiple Collections display

31 Mar 07:12
da45b14

Choose a tag to compare

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

30 Mar 22:02
084bf5f

Choose a tag to compare

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

17 Feb 21:34
5b52c5d

Choose a tag to compare

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

06 Dec 20:42
9ec9cf9

Choose a tag to compare

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

06 Dec 16:54
a7671d3

Choose a tag to compare

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

QoL and small new features

28 Oct 22:37
1b2fc9a

Choose a tag to compare

Added

  • Added basic copy/paste functionality between colelctables

Changed

  • Removed multiple AssetDatabase.SaveAssets(); to improve general performance when adding / removing objects
  • Fixed indirect reference issues with the new Advanced Dropdown search
  • Removed static .Values from the Colletion, was redundant and error prone