Hopefully someone could help or point me in the right direction. I have currently got an Editor process where I download data from Google Sheets and then create multiple Scriptable Objects. Is there a way to add these to my default Addressable group when they are created?
Currently I am doing the following:
var file = ScriptableObject.CreateInstance<GameData>();
AssetDatabase.CreateAsset(file, path);
EditorUtility.SetDirty(file);
AssetDatabase.SaveAssets();
This piece of code should add your asset to the default group if the asset isn’t already addressable. Note: if the asset is already addressable, it will move it to the default group. Check out the other functions on the settings variable to see what else you can do.