Skip to content

RemotePhotoButton

562

RemotePhotoButton is used for prefab buttons.

If you use an external button asset, use the TriggerRandom(), TriggerPrevious(), and TriggerNext() events on RemotePhotoGroup instead of this component.

If you want to build your own button with this component anyway, call its TriggerSelectedAction() event. For example, reference this component from the Button component’s On Click list, and set UdonBehaviour.SendCustomEvent to TriggerSelectedAction.

564

ParameterDescription
Remote Photo GroupThe Group controlled by this button. Use a GameObject with a RemotePhotoGroup component.
Button ActionSelects the event this button triggers.
OptionDescription
RandomTriggers the Group’s TriggerRandom() event. Use this for a random button.
PreviousTriggers the Group’s TriggerPrevious() event. Use this for a previous-page button.
NextTriggers the Group’s TriggerNext() event. Use this for a next-page button.
EventDescription
TriggerSelectedAction()Bridges the three built-in Button Action events.