playMaker

Author Topic: Scenes Array type[SOLVED]  (Read 1457 times)

Marc Saubion

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
Scenes Array type[SOLVED]
« on: January 11, 2018, 05:18:06 AM »
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
« Last Edit: January 16, 2018, 02:26:12 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Scenes Array type
« Reply #1 on: January 12, 2018, 02:12:23 AM »
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

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 79
Re: Scenes Array type
« Reply #2 on: January 15, 2018, 07:45:12 AM »
Thanks, that's good to know.  ;)