All Projects → brunomikoski → ScriptableObjectCollection

brunomikoski / ScriptableObjectCollection

Licence: MIT, Unknown licenses found Licenses found MIT LICENSE Unknown LICENSE.meta
A library to help improve the usability of Unity3D Scriptable Objects by grouping then into a collection and exposing then by code or nice inspectors!

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to ScriptableObjectCollection

auto assets
assets management tool for Flutter
Stars: ✭ 17 (-91.67%)
Mutual labels:  assets, assets-management
OCSInventory-Docker-Image
Docker image for OCSInventory Server
Stars: ✭ 54 (-73.53%)
Mutual labels:  assets, assets-management
assetic
Asset Management for PHP
Stars: ✭ 61 (-70.1%)
Mutual labels:  assets, assets-management
assetter
Assets manager for PHP. Allow manage CSS and JS files in website and its dependencies. Also allows refresh cache in browsers by adding revisions of loaded files. Builtin plugins to compile SASS and/or LESS styles to CSS just-in-time.
Stars: ✭ 14 (-93.14%)
Mutual labels:  assets, assets-management
Ocsinventory Ocsreports
Webconsole for OCS Inventory NG
Stars: ✭ 145 (-28.92%)
Mutual labels:  assets, assets-management
Ocsinventory Server
Communication server of OCS Inventory
Stars: ✭ 214 (+4.9%)
Mutual labels:  assets, assets-management
laravel-assets
Laravel Assets manager
Stars: ✭ 13 (-93.63%)
Mutual labels:  assets, assets-management
Assets
An ultra-simple-to-use assets management library for PHP
Stars: ✭ 292 (+43.14%)
Mutual labels:  assets, assets-management
Laravel Potion
laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.
Stars: ✭ 63 (-69.12%)
Mutual labels:  assets, assets-management
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (-20.59%)
Mutual labels:  assets, assets-management
Asset Packagist
Asset Packagist
Stars: ✭ 235 (+15.2%)
Mutual labels:  assets, assets-management
flr-vscode-extension
Flr(Flutter-R) Extension: A Flutter Resource Manager VSCode Extension
Stars: ✭ 28 (-86.27%)
Mutual labels:  assets-management
asset-map-webpack-plugin
Webpack plugin that creates a map of assets to public url slug for server agnostic usage.
Stars: ✭ 14 (-93.14%)
Mutual labels:  assets
composer-asset-compiler
Composer plugin that installs dependencies and compiles assets based on configuration.
Stars: ✭ 19 (-90.69%)
Mutual labels:  assets
RAImagePicker
📸 iMessage-like, Image Picker Controller Provides custom features.
Stars: ✭ 14 (-93.14%)
Mutual labels:  assets
project-curator
A convenient tool to help cleaning and to maintain Unity Projects ✨
Stars: ✭ 99 (-51.47%)
Mutual labels:  assets
egg-view-assets
Manage frontend assets in development and production.
Stars: ✭ 51 (-75%)
Mutual labels:  assets
phoenix assets webpack
Asset Pipeline with Webpack on Phoenix
Stars: ✭ 52 (-74.51%)
Mutual labels:  assets
eleventy-load
Resolve dependencies and post-process files in your Eleventy project
Stars: ✭ 28 (-86.27%)
Mutual labels:  assets
spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 149 (-26.96%)
Mutual labels:  assets-management

Scriptable Object Collection

GitHub license

GitHub issues GitHub pull requests GitHub last commit

GitHub followers Twitter Follow

Most of the time when dealing with Scriptable Objects they all belong to some sort of collection, let's say for example all your consumables on the game? Or maybe all your weapons? Or even all your in-app purchases. Dealing with this can be quite challenging since you have to rely on proper naming of those scriptable objects, this can become a problem super fast as the project continues to grow.

The ScriptableObjectCollection exists to help you deal with scriptable objects without losing your sanity! It's a set of tools that will make your life a lot easier.

wizard Static access to your items DropDown for selecting Collectable Values

Check the FAQ with more examples and use examples.

Features

  • Allow access Scriptable Objects by code, reducing the number of references on the project
  • Group Scriptable Objects that belong together in a simple coherent interface
  • Enable a dropdown selection of all the items inside a collection when the item is serialized through the inspector
  • Automatically generate static access code
  • Allow you to expose the entire object to be tweakable in any inspector
  • Makes the usability of Scriptable Objects in bigger teams a lot better
  • Iterate over all the items of any collection by Collection.Values
  • If you are using the Static Access to the files, if any of the items goes missing, you will have an editor time compilation error, super easy to catch and fix it.

How to use

  1. Create new collections by the wizard Assets/Create/Scriptable Object Collection/New Collection
  2. Now you should treat your new ScriptableObjectCollection as a regular ScriptableObject, add any item you want there
  3. Now add new items to the collection by using the buttons on the Collection Inspector
  4. After you are done, click on Generate Code on the collection to generate the Static access to those objects

[FAQ]

I'm having issues when deleting duplicating items It's really hard to make sure those features work perfectly with the system since it depends on to catch up the GUIDs of the collectables, **ALWAYS** try to use the Add New / Deleting by the inspector itself
How I can propery serialize this for Save Game or Backend data There's a couple of ways of dealing with this, the easiest one is to use the `IndirectReference` when you need this data to be serialized, this will only store 2 GUIDs. Another option is writing a proper parser using the ISerializationCallback.
Collection Registry on the Resources Folder Since the CollectionsRegistry is inside the Resources folder, every reference this has to a collection and to all the collectables will be inside the Unity Resources bundle, and if you have a lot of references for expensive stuff, this can increase your startup time significantly, there are 2 things you should keep in mind: 1. Use the Automatically Loaded items for items that should be available for the lifetime of your game 2. If you want to use this for more expensive stuff, let's say all the gameplay prefabs, you can uncheck the automatic initialization of this collection, and register the collection on your loading by using `CollectionsRegistry.Instance.RegisterCollection(Collection);` and removing it when they are not necessary anymore. 3. You can convert the items of a collection to references by using the "Convert To References" button in the collection inspector. This allows for more flexibility to load and unload items individually. These items are inserted into an Addressables group.
How can I create a new collection You can use the Collection Creating Wizard by right click on the project panel and going into: `Assets/Create/Scriptable Object Collection/New Collection` this will create 3 items and respective folder: `YourCollectionName.cs` `YourCollectableName.cs` and the Collection Scriptable Object ![Create Collection Wizard](https://github.com/badawe/ScriptableObjectCollection/blob/master/Documentation~/create-collection-wizzard.png)
Use a direct reference to the item instead of the dropdown When you add a reference to a Collectable you may choose how you want this to be displayed by adding `[CollectionItemEditorOptions]`.
There are two Draw Types for now:

- DropDown the default option which displays all the available options in a convenient drop-down, like an enum field
- AsReference standard Scriptable Object field where you select the asset in a browser

System Requirements

Unity 2018.4.0 or later versions

How to install

Add from OpenUPM | via scoped registry, recommended

This package is available on OpenUPM: https://openupm.com/packages/com.brunomikoski.scriptableobjectcollection

To add the package to your project:

  • open Edit/Project Settings/Package Manager
  • add a new Scoped Registry:
    Name: OpenUPM
    URL:  https://package.openupm.com/
    Scope(s): com.brunomikoski
    
  • click Save
  • open Package Manager
  • click +
  • select Add from Git URL
  • paste com.brunomikoski.scriptableobjectcollection
  • click Add
Add from GitHub | not recommended, no updates :(

You can also add it directly from GitHub on Unity 2019.4+. Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.

  • open Package Manager
  • click +
  • select Add from Git URL
  • paste https://github.com/brunomikoski/ScriptableObjectCollection.git
  • click Add
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].