UI flicker / Icons displaced in build (Video)
Hello gents,
I've had a bit of a problem recently and the only relevant google search associated with my problem was to downgrade Unity version :/ Perhaps you've encountered this problem before and might give me a hand !
5 seconds video to explain my issue
https://www.youtube.com/watch?v=TNCMcPuQFRI&feature=youtu.be
No error in editor. In build version, when popping up the Tooltip (pointer enter 1s on spell icon), the UI flickers or/and spells icons gets displaced for 1 frame, ~= 10% chance of happening every tooltip call (See 5s Video above).
Timer for ToolTip (timer = 0 when PointerEnter of button is called, timer = -1 when ToolTipOn/PointerExit called):
float time = -1;
UIToolBox uitb;
public void Awake()
{
uitb = FindObjectOfType<UIToolBox>();
}
public void Update()
{
if (time >= 0)
{
time += Time.deltaTime;
if (time > 1)
{
uitb.ToolTipOn(spell.desc, buttonpos);
time = -1;
}
}
}
Tooltip showing up = RawImage.enabled. (tried with go.SetActive, same problem)
Tooltip content = 1 RawImage, 1 Text All icons/base UI are RawImage. ( tried before with Image, same problem)
using Unity 2020.1.7f1 (Latest)
My canvas Tree:
Ask for additional info if needed
Thank you!
Answer by Eizekiels · Nov 08, 2020 at 03:08 PM
Update : Moving ToolBox in another canvas fix the problem, not a valid solution, but a good hotfix.
Your answer
Follow this Question
Related Questions
Sprite "Non Power of 2" settings break images 3 Answers
Unity 5.3 Android UI Glitch 12 Answers
Unity3d 5.4.0f3 UI problem 0 Answers
Codeless IAP causing inspector bug 0 Answers
How do I stop my main menu from closing before the player is done interacting with it? 0 Answers