playMaker

Author Topic: Get Scene Count In Build Settings - not working  (Read 1133 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Get Scene Count In Build Settings - not working
« on: October 22, 2021, 09:03:46 PM »
It always gives me 0, no matter what.
I have put 4 scenes in it, just to be sure, but it's still 0.
However, this happens when I test the game in Unity, not when I build it.
Maybe this is the problem?

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Get Scene Count In Build Settings - not working
« Reply #1 on: October 22, 2021, 09:14:55 PM »
OK just tried a build and it seems that the action is not working.

Well I'm setting it manually for now, no big deal, but it would be nice to have a fix.
« Last Edit: October 22, 2021, 09:25:33 PM by PolyMad »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Get Scene Count In Build Settings - not working
« Reply #2 on: November 05, 2021, 02:52:21 PM »
I just did a quick test here and it seems to be working. What version of Unity are you using? Is anything else setting the ScenesInBuild variable, maybe after the action runs?
« Last Edit: November 05, 2021, 02:54:11 PM by Alex Chouls »

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Get Scene Count In Build Settings - not working
« Reply #3 on: November 06, 2021, 11:45:54 AM »
Hi, Unity is 2020.3.9f1.
You can see a video here:


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get Scene Count In Build Settings - not working
« Reply #4 on: November 07, 2021, 09:50:57 AM »
Hi.
Can you try the action in a separate state