A plugin with a collection of button actors.
This plugin required this plugins to work:
- TrickyInteractionSystem v2.0 and higher;
- TrickyAnimationComponents v2.0 and higher;
Install them before installing this plugin.
The plugin can be used in both C++ and Blueprint projects.
- Download package file;
- Install the plugin either in your project or for all projects in engine:
- Unzip the package into Plugins folder of your project, e.g.
D:\UnrealProjects\MyProject\Plugins
; - Unzip the package to the Plugins folder in engine folder, e.g.
C:\Program Files\Epic Games\UE_5.0\Engine\Plugins
;
- Unzip the package into Plugins folder of your project, e.g.
- Restart the project;
In this case the plugin can be used for any blueprint project.
- Create the Plugins folder in the project directory;
- Create the TrickyAnimationComponents folder in the Plugins folder;
- Download the plugin source code into that folder;
- Rebuild the project;
The plugin contains actors:
- ButtonBase;
- ButtonInteractive;
- ButtonFloor;
A base button class with the most basic functionality.
The button uses the TimelineAnimationComponent from TrickyAnimationComponents.
You can find instructions how to adjust this component in the Git page.
InitialStata
- the initial state of the button;IsReversible
- toggles if the button animation can be reversed;IsPressedTemporary
- if true, the button will stay in the pressed state for some time;PressedStateDuration
- how long button will state in pressed state;
Press
- initiates button logic;SetIsEnabled
- toggles if the button enabled or disabled;
OnStateChanged
- called when the button changed its current state;OnReversed
- called when the button animation was reversed;
OnButtonStateChanged
- called when the button changed its current state;OnButtonReversed
- called when the button animation was reversed;OnButtondDisabled
- called when the button was disabled;OnButtonEnabled
- called when the button was enabled;
A button which requires interaction. Good for levers, switches, valves, etc.
It already has an interaction trigger and interface.
A button which activated via a trigger. Good for buttons on floor.