Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nickfourtimes on August 23, 2018, 05:16:12 PM

Title: Debug Log doesn't start logging until PlayMaker editor window opened
Post by: nickfourtimes on August 23, 2018, 05:16:12 PM
I'm just logging some info so I can see what's going on within a build. One state has Build String and a Debug Log actions (the log is written to the Unity Log as well); then there's a Next Frame Event which jumps back into the same state. I expect this to just do the logging once per frame.

When I run the game in the editor, I don't see any logging. However, if I choose any FSM component, and hit the Edit button so that the PlayMaker editor window is opened, then the logging begins immediately, and continues even if I close the PM window.

The logging does not work at all in a build on device (iOS).

Is there a reason the logging doesn't happen until a PlayMaker window is opened in editor? Is there a way to get the logging to work in a build as well, so I can read it out from the Xcode console?
Title: Re: Debug Log doesn't start logging until PlayMaker editor window opened
Post by: jeanfabre on August 24, 2018, 03:44:20 AM
Hi,

 there is a "forward to Unity Log" preference, have you tried this?

(https://i.imgur.com/8sZm7cs.png)

 Bye,

 Jean
Title: Re: Debug Log doesn't start logging until PlayMaker editor window opened
Post by: nickfourtimes on August 24, 2018, 10:52:56 AM
Hm... well I could have sworn that I did do that, but in fact I hadn't.

However, even when I check that box (as well as checking "Send To Unity Log" in the Debug Log action – is there a major difference?), the logging still doesn't show up until I click "Edit" to edit an FSM. Naturally this doesn't work in a build either.

I've been able to reproduce this in an empty project – Unity 2017.3.1f1 and PlayMaker 1.9.0.