- Home /
Prefab as a subasset of a ScriptableObject
Is there any way to add a prefab as a subasset of a ScriptableObject?
The usual method for creating subassets (AddObjectToAsset) does not work for GameObjects, as Prefabs are expected to be created via PrefabUtility (which has no options to create as a subasset).
I do not want to simply create two assets, and reference the prefab from the ScriptableObject.
I dont think Unity supports GameObjects as subassets. But I am just guessing from my experience, I have not actually found any documentation stating its impossible. Would love to know if anyone else has a definitive answer to this
Your answer
Follow this Question
Related Questions
AddObjectToAsset (reference) becomes null 1 Answer
How to get the asset file from the AssetDatabase.CreateAsset() 1 Answer
Why unity can't create/save asset (ScriptableObject ) at runtime ? 1 Answer
Custom assets give Missing (Mono Script) 0 Answers
How to change an object's name inside an asset file? 0 Answers