Playmaker Forum
Bug Reporting => PlayMaker Bug Reporting => Topic started by: Gua on May 08, 2021, 04:28:15 AM
-
Unity 2018.4.31
v1.9.1.f7p5
While trying to fix a bug, I've discovered that Playmaker doesn't behave as I expected. With this kind of logic
(https://i.gyazo.com/3aa4db8bc1b0e2a319cccfa2ce712879.png)
I expect that object will be spawned and will receive event in a single frame, but it receives event only on a next frame after spawn. Is this a bug?
-
Hi.
Try setting you state as a sequence (right click empty space in action window to select), or place the send event in the next state.
Creating things is slow so it might be the issue.
When a state is not in sequence it will start all actions from top to bottom,
But it will not wait until they are finished.
In sequence it will wait for the previous action to finish before starting the next one.
-
Seems like I've found a bug. I did what you've said. And as you see this fsm didn't received event, but when I open script that sent it and then get back to fsm that should receive event, whiteout unpausing the game. Event gets received.
-
Hi.
If you Do this without a breakpoint?
does it receive the event?
from this video it seems like breakpoint itself has some issue, as the game is paused and i don't think it should be stopped on state 2 (on the main camera fsm) , but you can see the arrow is active going to state 5.
I do have this on PM1.9.0 as well in some cases and when i set a extra state with a breakpoint it stops there.
-
Hi.
If you Do this without a breakpoint?
does it receive the event?
from this video it seems like breakpoint itself has some issue, as the game is paused and i don't think it should be stopped on state 2 (on the main camera fsm) , but you can see the arrow is active going to state 5.
I do have this on PM1.9.0 as well in some cases and when i set a extra state with a breakpoint it stops there.
Without break point it works fine. So it seems that additional finished step helped. Thanks for the help and additional explenation!
-
np.
I think breakpoint has issues with "slow" actions.
Like 'Create' i also have it with Data makers xml actions.