PlayMaker Help & Tips > PlayMaker Help

Scenes Array type[SOLVED]

(1/1)

Marc Saubion:
Hi everyone.

I'm currently trying to make an array containing scenes. I can add a scene variable by drag and drop but can't do that in an array because I need to specify the object type first.



According to unity, the object type should be found in UnityEditor but there is no SceneAsset in it. Am I missing something?  ???

Thanks

jeanfabre:
Hi,

 you won't be able to achieve this that way because SceneASset is only available in Editor, so it will not work when you publish: https://docs.unity3d.com/ScriptReference/SceneAsset.html

You can keep an array of Scenes by using the SceneManager tools (normally everything is covered with the default set of actions, let me know if there is a feature that is not).

 Bye,

 Jean

Marc Saubion:
Thanks, that's good to know.  ;)

Navigation

[0] Message Index

Go to full version