Class TrustedUrlUtils
- Namespace
- JLChnToZ.VRC.Foundation.Editors
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
urlTypeTrustedUrlTypesThe type of the trusted URLs.
trustedUrlsstring[]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
urlPropertySerializedPropertyThe property of the VRCUrl.
urlTypeTrustedUrlTypesThe type of the trusted URLs.
optionsGUILayoutOption[]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
urlPropertySerializedPropertyThe property of the VRCUrl.
urlTypesTrustedUrlTypesrectRectThe rect of the field.
contentGUIContentThe 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
urlstringThe URL.
urlTypeTrustedUrlTypesThe type of the trusted URLs.
rectRectThe rect of the field.
contentGUIContentThe 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
urlstringThe URL.
urlTypeTrustedUrlTypesThe type of the trusted URLs.
rectRectThe rect of the field.
propertyLabelstringThe label of the field.
propertyTooltipstringThe tooltip of the field.
Returns
- string
The new URL.
Events
OnTrustedUrlsReady
public static event Action OnTrustedUrlsReady