umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
726 stars 167 forks source link

Convert Generator to Singleton #422

Open Jaimi opened 3 months ago

Jaimi commented 3 months ago

A Scriptable Object should be created to contain generator settings, and a default one (UMADefaultGeneratorSettings) should go in Resources (same folder as AssetIndexer).
The generator should be converted to a singleton, and should be created if one doesn't exist. It will get it's settings from the default scriptable object. If it doesn't exist, it will uses somewhat sane defaults. An API should be created to update generator settings, so it can be done in code. The existing generator monobehavior will be converted to a shell that uses the API to write to the generator, with a button to "Save as default".