<m-link>

The m-link element is used to open a web address when the element is clicked in a 3D scene. The web address is opened in a new tab or window depending on the client implementation. The m-link element has no visual representation in the scene; clicking children of element activates the link.

<m-link x="-2" y="5" z="3"
        href="https://mml.io"
>
  <m-label width="3" content="Click to open:
mml.io in a new tab (default / target=_blank)">
  </m-label>
  <m-cube y="-2"></m-cube>
</m-link>

<m-link x="2" y="5" z="3"
        href="https://mml.io"
        target="_self"
>
  <m-label width="3" content="Click to open:
mml.io in the same tab (target=_self)">
  </m-label>
  <m-sphere y="-2"></m-sphere>
</m-link>
  • The web address to open when the link is clicked.

  • Where the address should be opened. "_self" opens in the current context / tab / window (if the content is in a context in which that is valid). "_blank" opens in a new tab / window. Default value is "_blank".

    • A boolean that indicates whether the element should be drawn with debug information (e.g. axes helper). Default value is false.

    • The position of the element along the X-axis in meters. Default value is 0.

    • The position of the element along the Y-axis in meters. Default value is 0.

    • The position of the element along the Z-axis in meters. Default value is 0.

    • The rotation of the element around the X-axis in degrees. Default value is 0.

    • The rotation of the element around the Y-axis in degrees. Default value is 0.

    • The rotation of the element around the Z-axis in degrees. Default value is 0.

    • The scale of the element along the X-axis. Default value is 1.

    • The scale of the element along the Y-axis. Default value is 1.

    • The scale of the element along the Z-axis. Default value is 1.

    • Whether the element is visible (true) or hidden (false) in the scene. Default value is true.

    • The name of a bone in the parent element's skeletal mesh to which this element will be attached. If not specified, the element will attach to the origin of its parent.

    • A unique identifier for the element, used for selection and manipulation through scripting. It must be unique within the document.

    • A space-separated list of class names that can be used for scripting purposes.

WEBUNREAL
m-link
href
target
debug
x
y
z
rx
ry
rz
sx
sy
sz
visible
socket
id
class