# My custom cursor widget flashes (pops up for a frame) when I toggle visibility.

**URL:** <https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [September 23, 2025, 10:55pm UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318 "2025-09-23T22:55:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![szvula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@szvula](https://forums.unrealengine.com/u/szvula)\
**Post date:** [September 23, 2025, 10:55pm UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/1 "2025-09-23T22:55:25Z")

</div>

I made a widget blueprint for a custom cursor (an image). I create it on Begin Play and toggle its visibility when RMB is pressed/released. The problem is, it flashes for a frame in the top left corner then disappears. I’ve tried Add to Viewport, setting visibility, and using Render Translation, but I’m still getting this flicker/flash issue.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/7/fa72bf5225c908218647ee7eeb2b85832020512a.jpeg)

(In the beginning very hard to capture cause it only shows for a frame but in game it flashes everytime)

> **[Unreal Engine 5 2025.09.20 - 21.39.51.01.mp4](https://drive.google.com/file/d/1qU0k8srLRyO3ltDgzxLMhEn7vI7OaGnv/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 24, 2025, 1:26am UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/2 "2025-09-24T01:26:59Z")

</div>

i’d recommend to add it to viewport on begin play, and setting visibility to hidden/collapsed immediately after.

then only changing the visibility instead of adding/removing.

---

<div class="post-metadata">

**Author:** ![szvula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@szvula](https://forums.unrealengine.com/u/szvula)\
**Post date:** [September 25, 2025, 2:37am UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/3 "2025-09-25T02:37:42Z")

</div>

Hey again nande, I ended up getting that cameralock system I wanted working and found a way to ignore the mouse inputs. Thanks again

This is the last thing I have to add onto that system and it was going smoothly until this. So I tried what you suggested, I removed the remove from parent node so im not just adding it and removing it and I switch to the set visibility hidden right after adding it to viewport on event beginplay and Setting it visible-Hidden when pressing-releasing rmb, I also got the image cursor variable and connected it to the visibility nodes

But its still not working, now it just doesnt show up at all, Maybe I did something wrong im not sure. Got any idea why it might not be working?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/5/ef54027dea85dd5c70d4438ccb9ffc61c902f9c7.jpeg)

> **[Unreal Engine 5 2025.09.24 - 21.31.18.02.mp4](https://drive.google.com/file/d/1owU2AbhzLmr6npdBBD8JJQapedcfvuHt/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 25, 2025, 4:32am UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/4 "2025-09-25T04:32:09Z")

</div>

i highly recommend not to “share” connections across multiple execution paths (the white lines). makes the code hard to maintain and could have weird side-effects. specially with “pure “ nodes.

notice you have connected the setvisibility on the input event to the result of CreateWidget.

connect it instead to the variable you set right after that node.

i would suggest not to drag a line from the same “set” node, but instead drop a new node for that variable

also i can’t really read the text since it’s too small. but the connections seems pretty ok.

great work anyway, good progress.

---

<div class="post-metadata">

**Author:** ![szvula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@szvula](https://forums.unrealengine.com/u/szvula)\
**Post date:** [September 27, 2025, 3:29am UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/5 "2025-09-27T03:29:51Z")

</div>

I changed the order of the visibility nodes and put them on the bottom IA. Along with your other suggestions and touch ups and as a result it started working how I wanted. I will say though I use multiple IA exe pins because it doesnt work otherwise so i usually have to use both canceled and completed. I didnt know it was a bad idea to use multiple but hey if it works it works XD, Thanks again you a real one ☝

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [September 27, 2025, 7:26am UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/6 "2025-09-27T07:26:16Z")

</div>

hey i’m really happy to hear it helped. great work!

> [@szvula](#):
>
> i usually have to use both canceled and completed. I

sorry i didnt meant those.

though if you use on trigger and ongoing that might be bogus. but what i meant was this

crossing execution lanes

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/4/7643651ab3b483be466f34a84689a7867bf7c714.jpeg)

which is not bad per se. but i try to avoid it when possible as it makes maintaining the code harder.

specially with pure nodes which gets executed every time you connect them.

and the result of the createwidget i truly do not know what happens on the IA whether it has a value or not.

i also think that your code could be made into some functions, at least the one for the IA at the top, it’s really looks like it’s duplicating most of the code.

but these are minor issues, crossing execution lanes would be the one prone to issues though.

---

<div class="post-metadata">

**Author:** ![szvula](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@szvula](https://forums.unrealengine.com/u/szvula)\
**Post date:** [September 27, 2025, 9:00pm UTC](https://forums.unrealengine.com/t/my-custom-cursor-widget-flashes-pops-up-for-a-frame-when-i-toggle-visibility/2659318/7 "2025-09-27T21:00:32Z")

</div>

Ah I see what your saying ill keep that in mind, I have no actual experience with game dev ive just watched like 3 tutorials from smart poly so im sure my blueprint connects are not very optimal but i plan to make improvements on it once im more experienced.
