Table of Contents

Class TrustedUrlUtils

Trusted URL utilities for VRC SDK.

public sealed class TrustedUrlUtils
Inheritance
TrustedUrlUtils
Inherited Members
Extension Methods

Methods

CopyTrustedUrls(TrustedUrlTypes, ref string[])

Copy trusted URLs to an array.

public static void CopyTrustedUrls(TrustedUrlTypes urlType, ref string[] trustedUrls)

Parameters

urlType TrustedUrlTypes

The type of the trusted URLs.

trustedUrls string[]

The array to copy the trusted URLs.

DrawUrlField(SerializedProperty, TrustedUrlTypes, params GUILayoutOption[])

Draw a URL field.

public static void DrawUrlField(SerializedProperty urlProperty, TrustedUrlTypes urlType, params GUILayoutOption[] options)

Parameters

urlProperty SerializedProperty

The property of the VRCUrl.

urlType TrustedUrlTypes

The type of the trusted URLs.

options GUILayoutOption[]

The layout options.

DrawUrlField(SerializedProperty, TrustedUrlTypes, Rect, GUIContent)

Draw a URL field.

public static void DrawUrlField(SerializedProperty urlProperty, TrustedUrlTypes urlTypes, Rect rect, GUIContent content = null)

Parameters

urlProperty SerializedProperty

The property of the VRCUrl.

urlTypes TrustedUrlTypes
rect Rect

The rect of the field.

content GUIContent

The label of the field.

DrawUrlField(string, TrustedUrlTypes, Rect, GUIContent)

Draw a URL field.

public static string DrawUrlField(string url, TrustedUrlTypes urlType, Rect rect, GUIContent content)

Parameters

url string

The URL.

urlType TrustedUrlTypes

The type of the trusted URLs.

rect Rect

The rect of the field.

content GUIContent

The label of the field.

Returns

string

The new URL.

DrawUrlField(string, TrustedUrlTypes, Rect, string, string)

Draw a URL field.

public static string DrawUrlField(string url, TrustedUrlTypes urlType, Rect rect, string propertyLabel = null, string propertyTooltip = null)

Parameters

url string

The URL.

urlType TrustedUrlTypes

The type of the trusted URLs.

rect Rect

The rect of the field.

propertyLabel string

The label of the field.

propertyTooltip string

The tooltip of the field.

Returns

string

The new URL.

Events

OnTrustedUrlsReady

public static event Action OnTrustedUrlsReady

Event Type

Action