playMaker

Author Topic: Visibility2 issues  (Read 1617 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Visibility2 issues
« on: March 05, 2015, 02:03:48 PM »
using 'visibility2' action in unity 5 has issues.  Sometimes it see it fine and sometimes not

- It'll give an error saying the script is not there but it is.
- look at pics.  If I import the action first in the list there is an error on the next item.  if I move it down on the list it goes away.

Now when I brought 'visibility2' in via the ecosystem, unity gave a window and said the API needed updating.  It must have changed the script I guess.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: Visibility2 issues
« Reply #1 on: March 05, 2015, 02:07:40 PM »
Double check that it isn't a bug where the last action always reports an error.

If so, its something weird in the background I haven't tracked down yet. Has something to do with deleting actions that have exceptions/errors. I usually start by just deleting the contents of the state, playing the game, going back to repopulate the state and if I still see errors I restart unity. Usually takes care of it.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: Visibility2 issues
« Reply #2 on: March 05, 2015, 02:10:29 PM »
These 2 pics show me bringing in 'visibility2'.  On 1 state no errors and the other errors.  Nothing else in the states.

I changed scenes and came back.  the errors were gone (pic3)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: Visibility2 issues
« Reply #3 on: March 05, 2015, 02:11:19 PM »
"Double check that it isn't a bug where the last action always reports an error."

What does that mean?

"Has something to do with deleting"

I did delete visibility and visibility2 and then got visibility2 from the ecosystem.
« Last Edit: March 05, 2015, 02:13:21 PM by wheretheidivides »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • Yup.
    • View Profile
    • Cleverous
Re: Visibility2 issues
« Reply #4 on: March 05, 2015, 02:14:21 PM »
It's probably the state is corrupted. Try removing it, play, restart unity, etc.. and then rebuild it.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: Visibility2 issues
« Reply #5 on: March 05, 2015, 03:36:11 PM »
Lane , I have over 1000 of these errors.
« Last Edit: March 05, 2015, 08:56:14 PM by wheretheidivides »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14832
  • Official Playmaker Support
    • View Profile
Re: Visibility2 issues
« Reply #6 on: March 30, 2015, 12:11:32 AM »
Hi,

 I think it's a known bug in PlayMaker. If an action loose it's script it will throw a warning in place, but if you replace it, the error doesnt' go away and place it self on the action above it. If you hit play the error goes away and everything is back to normal.

 Can you confirm this?

 Bye,

 Jean