Unity3D: How to programmatically test new UI features

grizzly_beer

I have an app built in Unity which uses the new canvas features including buttons and inputfields.

I'm wondering how I could implement automated testing by programmatically entering characters into the input fields and clicking buttons. In the case of the button the UI.Button component doesnt seem to have a click method you can call. Is there a way of registering mouse clicks at the buttons location? Or some other way of achieving this?

grizzly_beer

Ok, This is how you click a button programmatically

MyButton.onClick.Invoke();

and for the inputfields you can just set their text fields like so..

MyInput.text = "flooopybloopybloo";

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Unity3D: How to programmatically test new UI features

From Dev

Unity3d new UI: How to set button's interactable zone bigger than the attached image?

From Dev

Unity3D instantiate list of prefabs in new UI

From Dev

Unity3D new UI System and List Views

From Dev

Unity3D instantiate list of prefabs in new UI

From Dev

In Unity3d How detect touch on UI or not?

From Dev

Create new UI elements programmatically

From Dev

How to make gameplay ignore clicks on UI Button in Unity3D?

From Dev

Unity3d how to change UI.Button text in code

From Dev

How to install new features or shortcuts?

From Dev

How to deliver new features (Website)

From Java

How to programmatically skip a test in mocha?

From Dev

Unity3D Programmatically Assign EventTrigger Handlers

From Dev

Unity3d Facebook mobile SDK test in Unity Editor?

From Dev

How to Programmatically Segue to a New ViewController in a New Storyboard

From Dev

How to extend knative serving features and add new features to it?

From Dev

How to programmatically register a service in the SCR using OSGi standard features?

From Dev

How to use new syntax features in Mojolicious templates

From Dev

How to implement new features in existing bios?

From Dev

How to enable the new optional features using PowerShell?

From Dev

How to create a popUp in unity3d?

From Dev

How to jump smoothly in Unity3D

From Dev

How to clamp camera in Unity3D

From Dev

Programmatically getting installed features

From Dev

Unity3D UI, calculation for position dragging an item?

From Dev

Unity3D : Blur the background of a UI canvas

From Dev

Creating navigation between Unity3D instantiated UI elements

From Dev

Unity3D SetActive freeze the UI panel

From Dev

Alternative of Raycast for UI Items in Unity3D

Related Related

  1. 1

    Unity3D: How to programmatically test new UI features

  2. 2

    Unity3d new UI: How to set button's interactable zone bigger than the attached image?

  3. 3

    Unity3D instantiate list of prefabs in new UI

  4. 4

    Unity3D new UI System and List Views

  5. 5

    Unity3D instantiate list of prefabs in new UI

  6. 6

    In Unity3d How detect touch on UI or not?

  7. 7

    Create new UI elements programmatically

  8. 8

    How to make gameplay ignore clicks on UI Button in Unity3D?

  9. 9

    Unity3d how to change UI.Button text in code

  10. 10

    How to install new features or shortcuts?

  11. 11

    How to deliver new features (Website)

  12. 12

    How to programmatically skip a test in mocha?

  13. 13

    Unity3D Programmatically Assign EventTrigger Handlers

  14. 14

    Unity3d Facebook mobile SDK test in Unity Editor?

  15. 15

    How to Programmatically Segue to a New ViewController in a New Storyboard

  16. 16

    How to extend knative serving features and add new features to it?

  17. 17

    How to programmatically register a service in the SCR using OSGi standard features?

  18. 18

    How to use new syntax features in Mojolicious templates

  19. 19

    How to implement new features in existing bios?

  20. 20

    How to enable the new optional features using PowerShell?

  21. 21

    How to create a popUp in unity3d?

  22. 22

    How to jump smoothly in Unity3D

  23. 23

    How to clamp camera in Unity3D

  24. 24

    Programmatically getting installed features

  25. 25

    Unity3D UI, calculation for position dragging an item?

  26. 26

    Unity3D : Blur the background of a UI canvas

  27. 27

    Creating navigation between Unity3D instantiated UI elements

  28. 28

    Unity3D SetActive freeze the UI panel

  29. 29

    Alternative of Raycast for UI Items in Unity3D

HotTag

Archive