Make a canvas slot for fixed position widget. If Size is set, then the Offsets is calculated and the SizeToContent is set to false. If Size is not set, then Right and Bottom are set to zero and are not used. The widget size will be automatically calculated. The SizeToContent is set to true. The widget is not anchored and will not move if the parent is resized. The Anchors is set to zero.
Verse using statement |
using { /UnrealEngine.com/Temporary/UI } |
MakeCanvasSlot<public><native>(Widget:widget, Position:vector2, Size:vector2, ZOrder:int, Alignment:vector2):canvas_slot
Parameters
MakeCanvasSlot takes the following parameters:
| Name | Type | Description |
|---|---|---|
Widget |
widget |
|
Position |
vector2 |
|
Size |
vector2 |
|
ZOrder |
int |
|
Alignment |
vector2 |
Attributes, Specifiers, and Effects
Specifiers
The following specifiers determine how you can interact with MakeCanvasSlot in your programs. For the complete list of specifiers, see the Specifiers Page.
| Specifier | Meaning |
|---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
native |
Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data. |