Back to API Reference
Class

LinkModifier

Modifier that creates clickable hyperlinks in text.

Remarks

Applies link styling (color and optional underline) to text ranges and handles click events. Parameter: URL string. Subscribe to LinkClicked to handle link clicks, or let the modifier open URLs automatically via OpenURL.

Example

csharp
public string RangeType{ get }
public int Priority{ get }
public Color32 LinkColor{ get; set }

Gets or sets the color applied to link text.

public bool EnableUnderline{ get; set }

Gets or sets whether underline decoration is enabled.

public bool AutoOpenUrl{ get; set }

Gets or sets whether URLs are opened automatically on click.

protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void OnApply()
protected override void HandleRangeClicked()
protected override void HandleRangeEntered()
protected override void HandleRangeExited()
public Action<string> LinkClicked

Raised when a link is clicked, providing the URL.

public Action<string> LinkEntered

Raised when the pointer enters a link, providing the URL.

public Action LinkExited

Raised when the pointer exits a link.

See Also