Class UIHelper
UI interaction helper. All methods work via Unity UI Toolkit events. Usage: UIHelper.FillInput("name"); UIHelper.Click("Create Hero");
public static class UIHelper
- Inheritance
-
objectUIHelper
Methods
- Click(string)
Click a UI element by its text. Finds the TextElement, walks up to its event-handling parent, and dispatches PointerDown+PointerUp+Click through the panel's event dispatcher — exactly what a real click does.
- FillInput(string)
Fill the first text-input by simulating real keystrokes. This triggers Preact's onChange handler so state updates correctly.
- StartGame()
Start the game from character creation/selection screens.