Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
-
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...
-
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!