- Home /
GUI.RepeatButton triggers every time mouse moves over it
Hello, community.
I'm currently using v4.6.0b17 and i've found a curious behaviour towards RepeatButton: when i click on it and move my mouse over button, it behaves like if i would click on it every time i move my mouse.
Is it a bug of v4.6.0b17 or just a new behaviour? I don't remember this button was acting like that.
Here's a useless piece of code:
if(GUI.RepeatButton(new Rect(Screen.width * 0.78f, Screen.height - Screen.width * 0.11f, Screen.width * 0.1f, Screen.width * 0.1f), "", attackbutton)) {
attacked = true;
}
else
{
attacked = false;
}
New UI system works somehow strange on android, so i refused to work with that, perhaps, it's another bug from legacy update.
It works strange? or because you're using a beta version and you should probably update to see if any "bugs" where taken care of during development.
I'd defnitely try a new version, but the old gui system is way comfortable for me anyway.
Answer by Landern · Jan 02, 2015 at 02:48 PM
4.6.1 is out, 4.6 is out of beta, old GUI is now considered legacy.
Why haven't you updated?
Why aren't you using the new UI system, particularly if you downloaded the beta of 4.6?
Your answer
Follow this Question
Related Questions
Ignore the lights 1 Answer
Using treeview OnGUI with GUIlayout 0 Answers
Why this simple code doesnt work? 0 Answers
GUI Minimap 1 Answer
how to create topology based reticle 0 Answers