VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Fortnite›Materials/VFX·Up to Fortnite · Materials/VFX·174 of 211 in Materials/VFX

Material Block Class

A widget to display a material.

Verse using statement using { /UnrealEngine.com/Temporary/UI }

Inheritance Hierarchy

This class is derived from widget.

Name Description
widget Base class for all UI elements drawn on the player's screen.

Members

This class has both data members and functions.

Data

Data Member Name Type Description
DefaultDesiredSize vector2 The size this widget desired to be displayed in. Used only during initialization of the widget and not modified by SetDesiredSize.
DefaultImage material The image to render. Used only during initialization of the widget and not modified by SetImage.
DefaultTint color Tinting applied to the image. Used only during initialization of the widget and not modified by SetTint.

Functions

Function Name Description
GetDesiredSize Gets the size this widget desired to be displayed in.
GetImage Gets the image to render.
GetParentWidget Returns the widget's parent widget. Fails if no parent exists, such as if this widget is not in the player_ui or is itself the root widget.
GetRootWidget Returns the widget that added this widget to the player_ui. The root widget will return itself. Fails if this widget is not in the player_ui.
GetTint Gets the tint applied to the image.
GetVisibility Returns the current widget_visibility state.
IsEnabled true if this widget can be modified interactively by the player.
SetDesiredSize Sets the size this widget desired to be displayed in.
SetEnabled Enables or disables whether the player can interact with this widget.
SetImage Sets the image to render.
SetTint Sets the tint applied to the image.
SetVisibility Shows or hides the widget without removing itself from the containing player_ui. See widget_visibility for details.
Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Materials/VFX · 174 of 211
Prev
spawnparticlesystem
Next
getdesiredsize
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-02-11T12:43:21.177210+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse