Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kubold on April 25, 2013, 03:48:15 PM

Title: Set GUI Skin Action is causing MASSIVE FPS drop! [SOLVED]
Post by: Kubold 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.

Title: Re: Set GUI Skin Action is causing MASSIVE FPS drop!
Post by: Alex Chouls 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...
Title: Re: Set GUI Skin Action is causing MASSIVE FPS drop!
Post by: Kubold 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!