Input Indicator Icon
Introduction
A widget used to display a single input indicator image
Dependencies
The InputIndicatorIcon
relies on other components of this plugin to work:
- Logger: Used to log useful information to help you debug any issues you might experience
Required Widgets
There is already a InputIndicatorIcon_Implementation
that you can use in your projects. But if you create your own instance of this widget, you need to add the following before you can compile:
Name | Description | Type |
---|---|---|
Container | The size box container used to resize the image | USizeBox* |
Image | The image used to display the input indicator | UImage* |
API Reference
Properties
Property | Description | Type | Default Value |
---|
Functions
Name | Description | Params | Return |
---|---|---|---|
UpdateIcon | Update the icon | Size (float) The size of the image Icon (UTexture2D*) The new icon |
Blueprint Usage
You can use the InputIndicatorIcon
using Blueprints by adding one of the following nodes:
- Ultimate Starter Kit > UI > Update Icon
C++ Usage
Before you can use the plugin, you first need to enable the plugin in your Build.cs
file:
PublicDependencyModuleNames.Add("USK");
The InputIndicatorIcon
can now be used in any of your C++ files:
#include "USK/Widgets/InputIndicatorIcon.h"
void ATestActor::Test()
{
// InputIndicatorIcon is a pointer to the UInputIndicatorIcon
InputIndicatorIcon->UpdateIcon(Size, Icon);
}