playMaker

Author Topic: [solved] State Labels incorrectly displaying  (Read 4408 times)

wyliam

  • Playmaker Newbie
  • *
  • Posts: 22
[solved] State Labels incorrectly displaying
« on: April 23, 2011, 06:28:46 PM »
Anyone have any idea why I don't get the nice state GUI Labels on my dynamically created units?
They appear in the lower left corner, overlapping each other, ending up relatively useless...
« Last Edit: April 23, 2011, 10:31:10 PM by wyliam »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: State Labels incorrectly displaying
« Reply #1 on: April 23, 2011, 08:58:31 PM »
Can you post a screenshot of the scene hierarchy, highlighting the objects with FSMs?

wyliam

  • Playmaker Newbie
  • *
  • Posts: 22
Re: State Labels incorrectly displaying
« Reply #2 on: April 23, 2011, 09:12:22 PM »
Sure thing. Below is a screenshot.
Fighter/Goblin (inactive) are instances I edit and "Apply" to the original prefab.
P1/Goblin (active) are the ones spawned off of the ~Manager game object (empty) FSM.
P1 and Goblin both have Anim, Combat, and Move FSMs in them. These are the ones displaying their states in the lower left of the original screenshot. There are no other FSMs on those objects below the top most object level (P1/Goblin).

The Main Camera also has an FSM on it.
« Last Edit: April 23, 2011, 09:17:24 PM by wyliam »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: State Labels incorrectly displaying
« Reply #3 on: April 23, 2011, 09:26:15 PM »
The state label code checks for a MeshRenderer component (bad/old assumption on my part). I fixed it for the next update. In the meantime you could add a MeshRenderer component to the top level game object (and disable it?) to draw the state labels over the objects.

Let me know if that works...

wyliam

  • Playmaker Newbie
  • *
  • Posts: 22
Re: State Labels incorrectly displaying
« Reply #4 on: April 23, 2011, 09:50:50 PM »
Yay! That worked. Most of my objects don't have a MeshRenderer as part of their root, but I'll add one for now...
Thanks-

wyliam

  • Playmaker Newbie
  • *
  • Posts: 22
Re: State Labels incorrectly displaying
« Reply #5 on: April 23, 2011, 10:02:03 PM »
So, now that state labels are working, what determines the order they're drawn?
Is there any way to decide which FSMs I want to have displayed, or control how they're drawn?

In the picture below I have two FSMs on the character on the left, and 3 on the right. Is it limited to just 2 FSMs then?


wyliam

  • Playmaker Newbie
  • *
  • Posts: 22
Re: State Labels incorrectly displaying
« Reply #6 on: April 23, 2011, 10:30:52 PM »
Nevermind. In my attempt to figure out why state labels weren't showing up, I had added a "display state label" action.

:)