playMaker

Author Topic: Template show DISABLED when you editing the template and play the game.  (Read 1350 times)

paynechu

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Area: Editor
Frequency: Always

1) What happened

Template show DISABLED when you editing the template and play the game.
....this is so trouble... stopping us to use template. Because difficult to debug

2) How can we reproduce it

- create a template
- create a gameobject
- create a FSM under this gameobject
- assign FSM to use template
- click the FSM Graph View to edit the template
- play the game now it will show disabled....I cannot see any state change..

Unity Info:
Unity Version: 3.5.7f6
Playmaker Version: 1.5.4.f3
BuildTarget: iPhone

System Info:
OS: Mac OS X 10.7.5
Processor: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
System Memory: 8192
Graphics Device: Emulated iPhone 3GS / iPad running OpenGL ES2.0

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
I'm not at my computer to try your repro steps, but I think you're probably looking at the template, not the running FSM. Does the selection title say Template? If you re-select the game object do you see a running FSM?

Gua

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Andrii Vintsevych
I've got dame problem :(


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Can you describe what's happening in the scene a little more?
What did you select to see this?
Do you have a GameObject selected?

The title in the graph view suggests that you have a Template selected, not a running FSM. Templates are assets like script files, they need to be run by an FSM to be active.

Gua

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Andrii Vintsevych
Re: Template show DISABLED when you editing the template and play the game.
« Reply #4 on: September 08, 2017, 09:56:59 AM »
After all this time. I still don't understand how to properly debug templates. I have game object that uses template. Like this

https://i.gyazo.com/f61efaf9b19e6c523a2c5d999ebaa196.png

If during gameplay I hit edit, I can't preview what's is going on. It looks like this.

https://i.gyazo.com/ec622c9a21b5818c7a6534d726590e35.png

So how can I debug during gameplay like regular fsm?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Template show DISABLED when you editing the template and play the game.
« Reply #5 on: September 08, 2017, 10:31:02 AM »
When you select the GameObject using the template while the game is running you should see the FSM running in the Playmaker Editor.

Edit currently always selects the template asset (not the running FSM), but I'll change this so it works like the Run FSM action: So the button says Edit at edit time, and Show when the game is running, to show the running FSM.