Skip to content

Releases: brunomikoski/ScriptableObjectCollection

Fix possible AOT issues

12 Aug 08:01
Compare
Choose a tag to compare

Changed

  • Changed the ResourceScriptableObjectSingleton to have generic type on methods again, to prevent AOT issues.

Delete Collection and bug fix

07 Jun 08:28
7b608ba
Compare
Choose a tag to compare

Added

  • Added Delete Collection button under advanced settings, I will delete all the related assets and unregister from the registry

Changed

  • Renamed the Settings menu on the Collection Editor to Advanced
  • Fixed an issue when drawing indirect references inside arrays.

Keyboard Shortcuts

28 Apr 20:42
c59cbf5
Compare
Choose a tag to compare

Added

  • Added arrow navigation on the Collection Editor, now you can navigate between items and expand/collapse it by left right
  • You can now expand/collapse all items by holding alt while clicking on the foldout arrow, like default unity controls

Using ReorderableList on the Collection Editor.

12 Apr 13:48
a24fd44
Compare
Choose a tag to compare

Changed

  • Refactored the ScriptableObjectCollection Custom Editor to use ReorderableList instead of the previous custom list drawer
  • Refactored the editor prefab property drawer to properly draw the SerializedProperties of the item instead of displaying the custom inspector
  • Removed some old files and methods that aren't necessary anymore.
  • When using the inline visualizer of the CollectionItem, it should now respect position (if is inside an array or custom propery drawer)

Added

  • Added context click on the items, you can now Copy Paste values between collection items and Duplicate and Delete items when right click on it on the Editor

Hotfix - Destroying Collection

06 Apr 14:40
2c1a9d0
Compare
Choose a tag to compare

Changed

  • Removed the asset destruction of the Collection on the OnDestroy event

IndirectReference Refactor

06 Apr 09:36
a5b089d
Compare
Choose a tag to compare

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

05 Apr 08:07
aa42c48
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
v1.5.2

Update package.json