Robert Lewicki

Robert Lewicki

Share this post

Robert Lewicki
Robert Lewicki
Daily Unreal Column #88 - FScopedBusyCursor

Daily Unreal Column #88 - FScopedBusyCursor

Have you ever thought about how to provide a user feedback when making a tools that take more than a fraction of a second to run? Unreal got you covered with some nice structures built in.

Robert Lewicki's avatar
Robert Lewicki
Dec 16, 2024
2

Share this post

Robert Lewicki
Robert Lewicki
Daily Unreal Column #88 - FScopedBusyCursor
Share

One of the goodies that is available to use is FScopedBusyCursor. This structure is extremely simple to use and understand. What it does is, within the scope a variable of this type is created, it changes the operating system default cursor to a “busy” cursor. Busy cursor in Windows 10 is the spinning circle I’m sure most of you’ve seen.

As soon as the variable runs out of the scope (at the end of the function at latest unless you explicitly declared the variable on a heap) the cursor is being changed back to normal. Let’s have a look at an example code using it.

void AMyActor::Foo()
{
	...
	...
	...
	{
		// Creating busy curosr, default cursor is being
		// replaced with busy cursor here.
		FScopedBusyCursor BusyCursor;
		for (int32 Index = 0; Index < VeryBigNumber; Index++)
		{
			...
			...
			...
		}
	}
	// Busy cursor doesn't exist here so normal cursor is
	// being set here.
}


Subscribe to Robert Lewicki

Launched 10 months ago
Daily Unreal Column is a project about sending one and only one bite-sized news per day at 12pm CET, from Monday to Friday, to expose you to a features of Unreal Engine that are not very well known.
Fausto de Araujo's avatar
2 Likes
2

Share this post

Robert Lewicki
Robert Lewicki
Daily Unreal Column #88 - FScopedBusyCursor
Share

Discussion about this post

User's avatar
Implement Undo and Redo in Unreal Engine
Undo and Redo are probably the two most essential actions whenever you are making Unreal Engine editor tool. This post will explain how to implement…
Aug 14, 2024 • 
Robert Lewicki
1

Share this post

Robert Lewicki
Robert Lewicki
Implement Undo and Redo in Unreal Engine
Daily Unreal Column #9 - Slate Notification Manager
Issuing a warning or an error to the output log might not be the most efficient way of notifying a user about something going horribly wrong. Use Epic's…
Aug 23, 2024 • 
Robert Lewicki
4

Share this post

Robert Lewicki
Robert Lewicki
Daily Unreal Column #9 - Slate Notification Manager
1
Daily Unreal Column #10 - Tooltip Summon Delay
If you use content browser a lot looking through different assets, you might get annoyed by a quite big tooltip appearing and covering a lot of your…
Aug 24, 2024 • 
Robert Lewicki
4

Share this post

Robert Lewicki
Robert Lewicki
Daily Unreal Column #10 - Tooltip Summon Delay

Ready for more?

© 2025 Robert Lewicki
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.