FCrosshairStyleParameters
Overview
This struct is used to define various properties such as color, length, and thickness of the crosshair lines and center dot. It can be edited in the Unreal Editor's details panel.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FLinearColor | CrosshairColor | EditAnywhere | The color of the crosshair lines and center dot. |
float | CrosshairLength | EditAnywhere | The total length of each crosshair line. |
float | CrosshairGap | EditAnywhere | The gap between the crosshair lines. |
float | CrosshairThickness | EditAnywhere | The thickness of the crosshair lines and center dot. |
bool | bCenterDot | EditAnywhere | Whether to display a center dot on the crosshair. |
FSlateBrush | CrosshairBrush | EditAnywhere | The brush used for drawing the crosshair lines. |
FSlateBrush | CenterDotBrush | EditAnywhere | The brush used for drawing the center dot (only visible if |
Functions
No significant functions are defined in this struct.
SLimenCrosshair
Overview
This class extends SLeafWidget and is responsible for rendering a crosshair based on the provided style parameters. It can be used directly in Slate UIs or through the ULimenCrosshair user widget.
Properties
No significant properties are defined in this class.
Functions
Return Type | Signature | Description |
|---|---|---|
void | Construct(const FArguments& InArgs) | Initializes the widget with the provided arguments. |
FVector2D | ComputeDesiredSize(float) const | Computes the desired size of the widget based on the crosshair length. |
int32 | OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const | Paints the widget to the screen. |
ULimenCrosshair
Overview
This class extends UWidget and provides an interface for customizing the crosshair through the editor. It rebuilds the underlying Slate widget with the current style parameters when necessary.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FCrosshairStyleParameters | CrosshairStyleParameters | EditAnywhere | The style parameters used to render the crosshair. |
Functions
Return Type | Signature | Description |
|---|---|---|
TSharedRef | RebuildWidget() override | Rebuilds the underlying Slate widget with the current style parameters. |