Documentation

Page contents

Updated

Generate PDF from page.

Web Redirection Behavior

Files: CGFWebRedirectionBehavior.cs

Path: "CGF/Systems"

Description

Behavior that allows the associated GameObject to open the system default browser when a scene element or selectable UI element is clicked or pressed.

Reference

  • Event Type – Selected event type that opens the URL.
    • On Pointer Down – Event when clicking a Selectable UI element with the mouse.
    • On Submit – Event triggered when executing the Submit button configured in the EventSystem on a Selectable UI element.
    • On Pointer Down And On Submit – Event when clicking with the mouse or executing the Submit button configured in the EventSystem on a Selectable UI element.
  • Platform URLs List – Platform-specific URLs.
  • URL – URL to open.

Use

Add this component to the GameObject that should own the behavior.
Configure the inspector fields listed in Reference and assign the required scene or asset references before entering Play Mode.