Component:Hyperlink

From Resonite Wiki
Revision as of 07:13, 24 June 2024 by AmasterAmaster (talk | contribs) (Added usage information for the hyperlink component. Added important note about this component when trying to connect while using it. Updated description noting that it is going to open in the user's defualt web browser of choice.)


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


The Hyperlink as seen in the Scene Inspector

The Hyperlink component allows you to turn an object with a collider into a clickable link that will prompt the user in Userspace to open the provided link in their default web browser.

This component requires the start to contain http://, ws://, or something similar at the beginning of the URL, or this component will not prompt for a connection.

Example for connecting to the local host of the device: http://localhost:5000

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
URL Uri The hyperlink to open.
OpenOnce Bool
Reason String The reason that the hyperlink is being opened. Displayed to the user when they click it in the security dialog.

Usage

It can be triggered or activated in the following ways:

  • Using a collider and physically touching the object to prompt for a connection.
  • Attaching a UIX button component along with this component on the same slot, then clicking on the UIX button will prompt for a connection.

Examples

Related Components