Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PolyMad on September 04, 2021, 10:00:33 AM

Title: Array Length not reporting the items? [SOLVED]
Post by: PolyMad on September 04, 2021, 10:00:33 AM
As you can see, I'm having an incoherent result in the array length: there are 3 items, but 0 length is reported.
Title: Re: Array Length not reporting the items?
Post by: PolyMad on September 04, 2021, 10:07:03 AM
Wait... the BREAKPOINT happens BEFORE executing any actions in the state?
That's why I didn't see it changing...
Wouldn't it be better if it happened at the end of the state?
But I guess then there would be problems because the actions could send out transitions etc.
Title: Re: Array Length not reporting the items? [SOLVED]
Post by: djaydino on September 05, 2021, 08:42:21 PM
Hi.
you can also use Debug Log action and set it to error and set it as last in the state

then it should have started previous actions before pausing.

but indeed breakpoint after triggering actions woud indeed have issues :)
Title: Re: Array Length not reporting the items? [SOLVED]
Post by: ch1ky3n on September 05, 2021, 10:06:51 PM
Always new stuff from Djaydino! ;D
Title: Re: Array Length not reporting the items? [SOLVED]
Post by: djaydino on September 06, 2021, 08:08:10 AM
Hi.
yeah :D

Actually Debug actions been there for a long time :)

They are very useful to debug in build (log file)
and give info in editor console :)
Title: Re: Array Length not reporting the items? [SOLVED]
Post by: PolyMad on September 06, 2021, 10:50:31 AM
Cool thank you!