playMaker

Author Topic: Set GUI Skin Action is causing MASSIVE FPS drop! [SOLVED]  (Read 2928 times)

Kubold

  • Full Member
  • ***
  • Posts: 112
Set GUI Skin Action is causing MASSIVE FPS drop! [SOLVED]
« on: April 25, 2013, 03:48:15 PM »
I need help understanding what I do wrong.

I am using GUIElement actions to draw some text and Int labels. Everything runs smoothly, until I try to add a GUI Skin with Set GUI Skin Action. In result, I can see that the skin works, but FPS drops from 60 to 10 and the console says:

Unable to find style " in skin 'GUISkin' Repaint/Layout/KeyUp/KeyDown
UnityEngine.GUIStyle:op_Implicit(String)


It displays this message every update, over and over.

« Last Edit: May 04, 2013, 04:03:22 AM by Kubold »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Set GUI Skin Action is causing MASSIVE FPS drop!
« Reply #1 on: April 25, 2013, 05:05:26 PM »
The FPS drop is likely from logging the error.

The error looks like a GUI action is missing a Style. Normally it should generate a default style... Look for GUI actions with empty Style fields.

Let me know which action/s throw the error, and I'll take a look...

Kubold

  • Full Member
  • ***
  • Posts: 112
Re: Set GUI Skin Action is causing MASSIVE FPS drop!
« Reply #2 on: May 04, 2013, 04:02:21 AM »
Hey! Thanks for the advice. You were right, the errors were causing the fps drop.
I just deleted the GuiSkin and the FSM Actions, and recreated the whole thing very carefully. It works now :)

Thanks!