FToolElementRegistrationArgs

A class which provides the data necessary to generate a widget.

Unreal Engine C++ API Reference > Developer > WidgetRegistration

Inheritance Hierarchy

References

   
Module WidgetRegistration
Header /Engine/Source/Developer/WidgetRegistration/Public/ToolElementRegistry.h
Include #include "ToolElementRegistry.h"

Syntax

class FToolElementRegistrationArgs : public [TSharedFromThis< FToolElementRegistrationArgs >](API\Runtime\Core\Templates\TSharedFromThis)  

Remarks

A class which provides the data necessary to generate a widget. This class should be extended and used to hold whatever information is needed to generate or update the widgets that make up the tool, and implement the virtual widget methods

Variables

Type Name Description
const EToolElem... ToolElementType The type of tool element this is Registration args for

Constructors

Type Name Description
  FToolElementRegistrationArgs ( EToolElement InToolElementType ) The constructor, which takes an EToolElement which will define the type of Tool Element

Destructors

Type Name Description
  ~FToolElementRegistrationArgs () Default destructor in case any subclasses need to provide a destructor

Functions

Type Name Description
TSharedPtr< ... GenerateWidget () Implements the generation of the TSharedPtr
void ResetWidget () Resets the widget to its initial state
void UpdateWidget () Updates/reloads this widget. This should be called after a consumer has changed any Data in this

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library