Hi,
I have created a simple ScriptableObject
which contains some info data and references to some objects including some Scenes (as UnityEngine.Object
) which all must be contained in an asset bundle to be used in our game as an extra level.
According to docs, by building asset bundle using an asset created by this ScriptableObject
all the referenced UnityEngine.Object
s (including scenes) must be contained in the built asset bundle. But the bundle does not contain scenes and only contains asset file of my ScriptableObject
. How is it possible?
Here is my ScriptableObject
:
public class GameDataAsset : ScriptableObject {
public string title;
public string mainScenePath;
public UnityEngine.Object[] scenes; // <- here we reference to scenes
// ...