Button trigger
Last updated
Last updated
A button is triggered when a user presses it. You can choose between two different designs - 3D buttons and UI buttons.
You position both types of button within the environment. The 3D button includes a frame and depth. It's visible from all angles, and so you could place it floating in the environment. The UI button is a flat rectangle. You could, for example, use it to create interfaces on surfaces in the environment.
To test your triggers while in the Content Editor, select play () on the playback controls, and then hide your editor panel. You can then select the buttons.
You can use a IFX Trigger Text Button Host Only IFX to add host-only triggers to content. The button may be momentarily visible to all users when it first loads, but then becomes invisible to non-hosts. It has the style of a 3D button.
The host-only buttons that are included in some locations, such as to turn ambient sounds on and off, and to hide and show objects, are part of the locations themselves. You can't use host-only triggers to recreate the exact same functionality, but you can create similar results. For example, if you want a host-only button to make a screen appear, you could add the screen as a triggered effect for the host-only button, or you could use a Skip To Time IFX as the triggered effect, which then skips to a point on the timeline where the appearance of the screen is animated.
In addition to the effect options described in Common effect options and Trigger effect options, buttons include an option for the text that appears on the button. UI buttons also have additional presentation options.
Option | Availability | Description |
---|---|---|
UI Text | All button types | Text that appears on the button |
UI Color Scheme | UI buttons only | Choice of color scheme: white, black, red, or green. |
Emphasis Effect | UI buttons only | If enabled, the background color of the button changes brightness in slow pulses. |