playMaker

Author Topic: Template is not visible yet still runs on gameobject  (Read 2225 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Template is not visible yet still runs on gameobject
« on: November 14, 2016, 05:40:04 AM »
Hi there,

I setup a template, and I run it without specifying on which object to run on... First time I just sort of ran it on one of the game objects and then deleted it but it still seems to run, however now it doesn't show the template on the actual gameobject yet it still runs. I tried getting an int from it, so I fail to because the template doesn't seem to show on the gameobject.. It seems like it's running on that gameobject but it's invisible.. Any ideas please?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Template is not visible yet still runs on gameobject
« Reply #1 on: November 15, 2016, 01:17:15 AM »
Hi,

I am confused here, you can not run a template without either having an Fsm using it, or an action RunFsm using it. which option do you use to run your Fsm?

Are you sure you don't have another instance running it, maybe you overlooked a duplicate or something.

Bye,

 Jean

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Template is not visible yet still runs on gameobject
« Reply #2 on: November 15, 2016, 04:40:12 AM »
I do use a run fsm action, but I haven't specified in it on which FSM gameobject I want to run it on... And I don't see a way of checking that

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Template is not visible yet still runs on gameobject
« Reply #3 on: November 15, 2016, 05:14:51 AM »
Hi,

 RunFsm is action that will run on the GameObject its fsm is, that's all, so the Template that will be run inside RunFsm will also be running on that Gameobject. you can't do otherwise.

 Bye,

 Jean

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Template is not visible yet still runs on gameobject
« Reply #4 on: November 15, 2016, 06:45:10 AM »
Okay that makes sense, how do I debug that template though? It doesn't show any variables or what it's doing.. Is it possible?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Template is not visible yet still runs on gameobject
« Reply #5 on: November 17, 2016, 02:42:33 AM »
Hi,

 if you put a breakpoint inside a template, it should reach, else, yes, templates are not accessible at runtime like that. Hopefully, this will improve in a future release of PlayMaker.

 Bye,

 Jean