Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The UnityUILogic is a component which enables the user to connect Unity UI elements to an external controller through a Logic Simulator .

...

Where to find

The Unity UI Logic can be found under Standard Components > Unity UI Logic > Add Logic Component.

It will automatically be attached to a selected GameObject . Otherwise or otherwise it will create a new GameObject to attach to.

...

Properties

Trigger

Allows the user to manually trigger this input, sending a signal to the controller. This only works in playmode while the Logic Simulator is running.

0: Unique identifier for the input

New-Input: String value to which the input is referenced by the controller. Changeable It can be changed by the user.

Add New Input

Creates a new input signal for the controller.

Delete

Deletes the specific input from the list.

PLC I/O

In the PLC I/O panel you can see the timestamp of the last time each individual input was triggered.

...

Unity UI elements have Unity Events to which you can subscribe the UnityUILogicController to. The UnityUILogicController has a method called SendSignal that accepts either the Name (string) or the ID (int) of an input. Every time that Unity Event is fired a signal is sent to the controller through the UnityUILogicController.