Hi! I checked the sample for the dynamic scene switching, now i tryied to replicate it using scene references:
//@type UnityEditor.SceneAsset[]
@serializable(AssetReference)
scenes?: AssetReference[] | undefined = undefined;
Then assigned the references inside the inspector. Now, in runtime I used console.log()
to print in console at start()
to see if the references are working, however it looks like it doesn’t, it prints null
.
To further test it, I tried the same but using regular AssetReferences
, and the same code prints an array of correct references to both assets that I set up as examples.
My question is, is there another difference o something else that we have to check in order to make it work using scene references? or is it the usage of prefabs “the standard”?
by user 368204675922657280