Hi, bit of a noob at Unity so sorry. Currently at runtime I’m adding an empty game object then assigning a script to it with no issues but I can’t work out how to add in the scriptable objects this way since AddComponent doesn’t work for assets.
I have two sets of different Scriptable objects all containing different information to build the object off of, one being noise data and the other shader data. The end result is to essentially mix and match these two assets and create different results.
You could put your ScriptableObject class Asset file into Resources folder, and then load it from there (if you can’t just assign it from the inspector):
@eses
Hi, sorry for the late reply. I’ve loaded the asset, but I can’t apply the asset in the script. There are no errors but the asset isn’t being loaded in the script I’ve applied to the generated gameobject.