VRC SDK
This project aims to completely document the VRChat Unity SDK
Loading...
Searching...
No Matches
VRC.SDK3.Components.VRCUrlInputField Class Reference
Inheritance diagram for VRC.SDK3.Components.VRCUrlInputField:
Collaboration diagram for VRC.SDK3.Components.VRCUrlInputField:

Classes

class  OnChangeEvent
 
class  SubmitEvent
 

Public Types

enum  ContentType : Enum
 
enum  InputType : Enum
 
enum  CharacterValidation : Enum
 
enum  LineType : Enum
 

Public Member Functions

delegate char OnValidateInput (string text, int charIndex, char addedChar)
 
VRCUrl GetUrl ()
 
void SetUrl (VRCUrl url)
 
void MoveTextEnd (bool shift)
 
void MoveTextStart (bool shift)
 
Vector2 ScreenToLocal (Vector2 screen)
 
virtual void OnBeginDrag (PointerEventData eventData)
 
virtual void OnDrag (PointerEventData eventData)
 
virtual void OnEndDrag (PointerEventData eventData)
 
override void OnPointerDown (PointerEventData eventData)
 
void ProcessEvent (Event e)
 
virtual void OnUpdateSelected (BaseEventData eventData)
 
void ForceLabelUpdate ()
 
virtual void Rebuild (CanvasUpdate update)
 
virtual void LayoutComplete ()
 
virtual void GraphicUpdateComplete ()
 
void ActivateInputField ()
 
override void OnSelect (BaseEventData eventData)
 
virtual void OnPointerClick (PointerEventData eventData)
 
void DeactivateInputField ()
 
override void OnDeselect (BaseEventData eventData)
 
virtual void OnSubmit (BaseEventData eventData)
 
virtual void CalculateLayoutInputHorizontal ()
 
virtual void CalculateLayoutInputVertical ()
 

Public Attributes

bool AllowSendingOnEndEdit = true
 

Protected Types

enum  EditState : Enum
 

Protected Member Functions

override void Awake ()
 
 VRCUrlInputField ()
 
void ClampPos (ref int pos)
 
override void OnEnable ()
 
override void OnDisable ()
 
void OnFocus ()
 
void SelectAll ()
 
virtual void LateUpdate ()
 
int GetCharacterIndexFromPosition (Vector2 pos)
 
EditState KeyPressed (Event evt)
 
void SendOnSubmit ()
 
virtual void Append (char input)
 
void UpdateLabel ()
 
char Validate (string text, int pos, char ch)
 
override void DoStateTransition (SelectionState state, bool instant)
 

Protected Attributes

TouchScreenKeyboard m_Keyboard
 
Text m_TextComponent
 
Graphic m_Placeholder
 
string m_Text = String.Empty
 
int m_CaretPosition
 
int m_CaretSelectPosition
 
UIVertex[] m_CursorVerts
 
Mesh m_Mesh
 
bool m_CaretVisible
 
int m_DrawStart
 
int m_DrawEnd
 

Properties

BaseInput input [get]
 
string compositionString [get]
 
Mesh mesh [get]
 
TextGenerator cachedInputTextGenerator [get]
 
bool shouldHideMobileInput [get, set]
 
bool shouldActivateOnSelect [get, set]
 
string text [get, set]
 
bool isFocused [get]
 
float caretBlinkRate [get, set]
 
int caretWidth [get, set]
 
Text textComponent [get, set]
 
Graphic placeholder [get, set]
 
Color caretColor [get, set]
 
bool customCaretColor [get, set]
 
Color selectionColor [get, set]
 
SubmitEvent onEndEdit [get, set]
 
OnChangeEvent onValueChange [get, set]
 
OnChangeEvent onValueChanged [get, set]
 
OnValidateInput onValidateInput [get, set]
 
int characterLimit [get, set]
 
ContentType contentType [get, set]
 
LineType lineType [get, set]
 
InputType inputType [get, set]
 
TouchScreenKeyboard touchScreenKeyboard [get]
 
TouchScreenKeyboardType keyboardType [get, set]
 
CharacterValidation characterValidation [get, set]
 
bool readOnly [get, set]
 
bool multiLine [get]
 
char asteriskChar [get, set]
 
bool wasCanceled [get]
 
int caretPositionInternal [get, set]
 
int caretSelectPositionInternal [get, set]
 
bool hasSelection [get]
 
int caretPosition [get, set]
 
int selectionAnchorPosition [get, set]
 
int selectionFocusPosition [get, set]
 
static string clipboard [get, set]
 
virtual float minWidth [get]
 
virtual float preferredWidth [get]
 
virtual float flexibleWidth [get]
 
virtual float minHeight [get]
 
virtual float preferredHeight [get]
 
virtual float flexibleHeight [get]
 
virtual int layoutPriority [get]
 
Action onSelected
 

Private Member Functions

void SetText (string value, bool sendCallback=true)
 
IEnumerator CaretBlink ()
 
void SetCaretVisible ()
 
void SetCaretActive ()
 
void UpdateCaretMaterial ()
 
bool TouchScreenKeyboardShouldBeUsed ()
 
bool InPlaceEditing ()
 
bool InPlaceEditingChanged ()
 
void UpdateCaretFromKeyboard ()
 
int GetUnclampedCharacterLineFromPosition (Vector2 pos, TextGenerator generator)
 
bool MayDrag (PointerEventData eventData)
 
IEnumerator MouseDragOutsideRect (PointerEventData eventData)
 
bool IsValidChar (char c)
 
string GetSelectedString ()
 
int FindtNextWordBegin ()
 
void MoveRight (bool shift, bool ctrl)
 
int FindtPrevWordBegin ()
 
void MoveLeft (bool shift, bool ctrl)
 
int DetermineCharacterLine (int charPos, TextGenerator generator)
 
int LineUpCharacterPosition (int originalPos, bool goToFirstChar)
 
int LineDownCharacterPosition (int originalPos, bool goToLastChar)
 
void MoveDown (bool shift)
 
void MoveDown (bool shift, bool goToLastChar)
 
void MoveUp (bool shift)
 
void MoveUp (bool shift, bool goToFirstChar)
 
void Delete ()
 
void ForwardSpace ()
 
void Backspace ()
 
void Insert (char c)
 
void UpdateTouchKeyboardFromEditChanges ()
 
void SendOnValueChangedAndUpdateLabel ()
 
void SendOnValueChanged ()
 
void Append (string input, bool secure=true)
 
bool IsSelectionVisible ()
 
void SetDrawRangeToContainCaretPosition (int caretPos)
 
void MarkGeometryAsDirty ()
 
void UpdateGeometry ()
 
void AssignPositioningIfNeeded ()
 
void OnFillVBO (Mesh vbo)
 
void GenerateCaret (VertexHelper vbo, Vector2 roundingOffset)
 
void CreateCursorVerts ()
 
void GenerateHighlight (VertexHelper vbo, Vector2 roundingOffset)
 
void ActivateInputFieldInternal ()
 
void EnforceContentType ()
 
void EnforceTextHOverflow ()
 
void SetToCustomIfContentTypeIsNot (params ContentType[] allowedContentTypes)
 
void SetToCustom ()
 
Transform ICanvasElement. get_transform ()
 

Static Private Member Functions

static int GetLineStartPosition (TextGenerator gen, int line)
 
static int GetLineEndPosition (TextGenerator gen, int line)
 
static VRCUrlInputField ()
 

Private Attributes

Action m_onSelected
 
ContentType m_ContentType
 
InputType m_InputType
 
char m_AsteriskChar = '*'
 
TouchScreenKeyboardType m_KeyboardType
 
LineType m_LineType
 
bool m_HideMobileInput
 
CharacterValidation m_CharacterValidation
 
int m_CharacterLimit
 
SubmitEvent m_OnEndEdit = new SubmitEvent()
 
OnChangeEvent m_OnValueChanged = new OnChangeEvent()
 
OnValidateInput m_OnValidateInput
 
Color m_CaretColor = new Color(10f / 51f, 10f / 51f, 10f / 51f, 1f)
 
bool m_CustomCaretColor
 
Color m_SelectionColor = new Color(56f / 85f, 0.80784315f, 1f, 64f / 85f)
 
float m_CaretBlinkRate = 0.85f
 
int m_CaretWidth = 1
 
bool m_ReadOnly
 
bool m_ShouldActivateOnSelect = true
 
RectTransform caretRectTrans
 
TextGenerator m_InputTextCache
 
CanvasRenderer m_CachedInputRenderer
 
bool m_PreventFontCallback
 
bool m_AllowInput
 
bool m_ShouldActivateNextUpdate
 
bool m_UpdateDrag
 
bool m_DragPositionOutOfBounds
 
Coroutine m_BlinkCoroutine
 
float m_BlinkStartTime
 
Coroutine m_DragCoroutine
 
string m_OriginalText = ""
 
bool m_WasCanceled
 
bool m_HasDoneFocusTransition
 
WaitForSecondsRealtime m_WaitForSecondsRealtime
 
bool m_TouchKeyboardAllowsInPlaceEditing
 
Event m_ProcessingEvent = new Event()
 

Static Private Attributes

static readonly char[] kSeparators
 
static bool s_AreDevicesEvaluated
 
static bool s_IsQuestDevice
 
static bool s_IsPicoDevice
 
const float kHScrollSpeed = 0.05f
 
const float kVScrollSpeed = 0.1f
 
const string kEmailSpecialCharacters = "!#$%&'*+-/=?^_`{|}~"
 
const string kOculusQuestDeviceModel = "Oculus Quest"
 
const string kPicoDeviceModel = "Pico"
 
const int k_MaxTextLength = 16382
 

Detailed Description

Definition at line 9990 of file VRCSDK3.cs.

Member Enumeration Documentation

◆ CharacterValidation

◆ ContentType

Definition at line 9992 of file VRCSDK3.cs.

◆ EditState

Definition at line 10042 of file VRCSDK3.cs.

◆ InputType

Definition at line 10006 of file VRCSDK3.cs.

◆ LineType

Definition at line 10023 of file VRCSDK3.cs.

Constructor & Destructor Documentation

◆ VRCUrlInputField() [1/2]

VRC.SDK3.Components.VRCUrlInputField.VRCUrlInputField ( )
protected

Definition at line 10844 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ VRCUrlInputField() [2/2]

static VRC.SDK3.Components.VRCUrlInputField.VRCUrlInputField ( )
staticprivate

Definition at line 13090 of file VRCSDK3.cs.

Member Function Documentation

◆ ActivateInputField()

void VRC.SDK3.Components.VRCUrlInputField.ActivateInputField ( )

Definition at line 12827 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ ActivateInputFieldInternal()

void VRC.SDK3.Components.VRCUrlInputField.ActivateInputFieldInternal ( )
private

Definition at line 12849 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Append() [1/2]

virtual void VRC.SDK3.Components.VRCUrlInputField.Append ( char  input)
protectedvirtual

Definition at line 12112 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ Append() [2/2]

void VRC.SDK3.Components.VRCUrlInputField.Append ( string  input,
bool  secure = true 
)
private

Definition at line 12095 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AssignPositioningIfNeeded()

void VRC.SDK3.Components.VRCUrlInputField.AssignPositioningIfNeeded ( )
private

Definition at line 12392 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ Awake()

override void VRC.SDK3.Components.VRCUrlInputField.Awake ( )
protected

Definition at line 10832 of file VRCSDK3.cs.

◆ Backspace()

void VRC.SDK3.Components.VRCUrlInputField.Backspace ( )
private

Definition at line 12027 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateLayoutInputHorizontal()

virtual void VRC.SDK3.Components.VRCUrlInputField.CalculateLayoutInputHorizontal ( )
virtual

Definition at line 13082 of file VRCSDK3.cs.

◆ CalculateLayoutInputVertical()

virtual void VRC.SDK3.Components.VRCUrlInputField.CalculateLayoutInputVertical ( )
virtual

Definition at line 13086 of file VRCSDK3.cs.

◆ CaretBlink()

IEnumerator VRC.SDK3.Components.VRCUrlInputField.CaretBlink ( )
private

Definition at line 10983 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClampPos()

void VRC.SDK3.Components.VRCUrlInputField.ClampPos ( ref int  pos)
protected

Definition at line 10913 of file VRCSDK3.cs.

◆ CreateCursorVerts()

void VRC.SDK3.Components.VRCUrlInputField.CreateCursorVerts ( )
private

Definition at line 12583 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ DeactivateInputField()

void VRC.SDK3.Components.VRCUrlInputField.DeactivateInputField ( )

Definition at line 12907 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Delete()

void VRC.SDK3.Components.VRCUrlInputField.Delete ( )
private

Definition at line 11991 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ DetermineCharacterLine()

int VRC.SDK3.Components.VRCUrlInputField.DetermineCharacterLine ( int  charPos,
TextGenerator  generator 
)
private

Definition at line 11863 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ DoStateTransition()

override void VRC.SDK3.Components.VRCUrlInputField.DoStateTransition ( SelectionState  state,
bool  instant 
)
protected

Definition at line 13065 of file VRCSDK3.cs.

◆ EnforceContentType()

void VRC.SDK3.Components.VRCUrlInputField.EnforceContentType ( )
private

Definition at line 12957 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ EnforceTextHOverflow()

void VRC.SDK3.Components.VRCUrlInputField.EnforceTextHOverflow ( )
private

Definition at line 13026 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ FindtNextWordBegin()

int VRC.SDK3.Components.VRCUrlInputField.FindtNextWordBegin ( )
private

Definition at line 11797 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ FindtPrevWordBegin()

int VRC.SDK3.Components.VRCUrlInputField.FindtPrevWordBegin ( )
private

Definition at line 11830 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ ForceLabelUpdate()

void VRC.SDK3.Components.VRCUrlInputField.ForceLabelUpdate ( )

Definition at line 12333 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ ForwardSpace()

void VRC.SDK3.Components.VRCUrlInputField.ForwardSpace ( )
private

Definition at line 12008 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateCaret()

void VRC.SDK3.Components.VRCUrlInputField.GenerateCaret ( VertexHelper  vbo,
Vector2  roundingOffset 
)
private

Definition at line 12468 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateHighlight()

void VRC.SDK3.Components.VRCUrlInputField.GenerateHighlight ( VertexHelper  vbo,
Vector2  roundingOffset 
)
private

Definition at line 12598 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_transform()

Transform ICanvasElement. VRC.SDK3.Components.VRCUrlInputField.get_transform ( )
private

Definition at line 13100 of file VRCSDK3.cs.

◆ GetCharacterIndexFromPosition()

int VRC.SDK3.Components.VRCUrlInputField.GetCharacterIndexFromPosition ( Vector2  pos)
protected

Definition at line 11362 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLineEndPosition()

static int VRC.SDK3.Components.VRCUrlInputField.GetLineEndPosition ( TextGenerator  gen,
int  line 
)
staticprivate

Definition at line 12196 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ GetLineStartPosition()

static int VRC.SDK3.Components.VRCUrlInputField.GetLineStartPosition ( TextGenerator  gen,
int  line 
)
staticprivate

Definition at line 12189 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ GetSelectedString()

string VRC.SDK3.Components.VRCUrlInputField.GetSelectedString ( )
private

Definition at line 11780 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ GetUnclampedCharacterLineFromPosition()

int VRC.SDK3.Components.VRCUrlInputField.GetUnclampedCharacterLineFromPosition ( Vector2  pos,
TextGenerator  generator 
)
private

Definition at line 11329 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ GetUrl()

VRCUrl VRC.SDK3.Components.VRCUrlInputField.GetUrl ( )

Definition at line 10809 of file VRCSDK3.cs.

◆ GraphicUpdateComplete()

virtual void VRC.SDK3.Components.VRCUrlInputField.GraphicUpdateComplete ( )
virtual

Definition at line 12357 of file VRCSDK3.cs.

◆ InPlaceEditing()

bool VRC.SDK3.Components.VRCUrlInputField.InPlaceEditing ( )
private

Definition at line 11101 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ InPlaceEditingChanged()

bool VRC.SDK3.Components.VRCUrlInputField.InPlaceEditingChanged ( )
private

Definition at line 11110 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ Insert()

void VRC.SDK3.Components.VRCUrlInputField.Insert ( char  c)
private

Definition at line 12047 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsSelectionVisible()

bool VRC.SDK3.Components.VRCUrlInputField.IsSelectionVisible ( )
private

Definition at line 12176 of file VRCSDK3.cs.

◆ IsValidChar()

bool VRC.SDK3.Components.VRCUrlInputField.IsValidChar ( char  c)
private

Definition at line 11722 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ KeyPressed()

EditState VRC.SDK3.Components.VRCUrlInputField.KeyPressed ( Event  evt)
protected

Definition at line 11539 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LateUpdate()

virtual void VRC.SDK3.Components.VRCUrlInputField.LateUpdate ( )
protectedvirtual

Definition at line 11145 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ LayoutComplete()

virtual void VRC.SDK3.Components.VRCUrlInputField.LayoutComplete ( )
virtual

Definition at line 12353 of file VRCSDK3.cs.

◆ LineDownCharacterPosition()

int VRC.SDK3.Components.VRCUrlInputField.LineDownCharacterPosition ( int  originalPos,
bool  goToLastChar 
)
private

Definition at line 11911 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LineUpCharacterPosition()

int VRC.SDK3.Components.VRCUrlInputField.LineUpCharacterPosition ( int  originalPos,
bool  goToFirstChar 
)
private

Definition at line 11876 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MarkGeometryAsDirty()

void VRC.SDK3.Components.VRCUrlInputField.MarkGeometryAsDirty ( )
private

Definition at line 12338 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ MayDrag()

bool VRC.SDK3.Components.VRCUrlInputField.MayDrag ( PointerEventData  eventData)
private

Definition at line 11407 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MouseDragOutsideRect()

IEnumerator VRC.SDK3.Components.VRCUrlInputField.MouseDragOutsideRect ( PointerEventData  eventData)
private

Definition at line 11457 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveDown() [1/2]

void VRC.SDK3.Components.VRCUrlInputField.MoveDown ( bool  shift)
private

Definition at line 11945 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveDown() [2/2]

void VRC.SDK3.Components.VRCUrlInputField.MoveDown ( bool  shift,
bool  goToLastChar 
)
private

Definition at line 11950 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ MoveLeft()

void VRC.SDK3.Components.VRCUrlInputField.MoveLeft ( bool  shift,
bool  ctrl 
)
private

Definition at line 11844 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveRight()

void VRC.SDK3.Components.VRCUrlInputField.MoveRight ( bool  shift,
bool  ctrl 
)
private

Definition at line 11811 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveTextEnd()

void VRC.SDK3.Components.VRCUrlInputField.MoveTextEnd ( bool  shift)

Definition at line 11052 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveTextStart()

void VRC.SDK3.Components.VRCUrlInputField.MoveTextStart ( bool  shift)

Definition at line 11067 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveUp() [1/2]

void VRC.SDK3.Components.VRCUrlInputField.MoveUp ( bool  shift)
private

Definition at line 11968 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MoveUp() [2/2]

void VRC.SDK3.Components.VRCUrlInputField.MoveUp ( bool  shift,
bool  goToFirstChar 
)
private

Definition at line 11973 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnBeginDrag()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnBeginDrag ( PointerEventData  eventData)
virtual

Definition at line 11421 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnDeselect()

override void VRC.SDK3.Components.VRCUrlInputField.OnDeselect ( BaseEventData  eventData)

Definition at line 12943 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnDisable()

override void VRC.SDK3.Components.VRCUrlInputField.OnDisable ( )
protected

Definition at line 10953 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnDrag()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnDrag ( PointerEventData  eventData)
virtual

Definition at line 11429 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnEnable()

override void VRC.SDK3.Components.VRCUrlInputField.OnEnable ( )
protected

Definition at line 10925 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnEndDrag()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnEndDrag ( PointerEventData  eventData)
virtual

Definition at line 11503 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnFillVBO()

void VRC.SDK3.Components.VRCUrlInputField.OnFillVBO ( Mesh  vbo)
private

Definition at line 12431 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnFocus()

void VRC.SDK3.Components.VRCUrlInputField.OnFocus ( )
protected

Definition at line 11041 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPointerClick()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnPointerClick ( PointerEventData  eventData)
virtual

Definition at line 12898 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnPointerDown()

override void VRC.SDK3.Components.VRCUrlInputField.OnPointerDown ( PointerEventData  eventData)

Definition at line 11511 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnSelect()

override void VRC.SDK3.Components.VRCUrlInputField.OnSelect ( BaseEventData  eventData)

Definition at line 12889 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnSubmit()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnSubmit ( BaseEventData  eventData)
virtual

Definition at line 12949 of file VRCSDK3.cs.

◆ OnUpdateSelected()

virtual void VRC.SDK3.Components.VRCUrlInputField.OnUpdateSelected ( BaseEventData  eventData)
virtual

Definition at line 11741 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ OnValidateInput()

delegate char VRC.SDK3.Components.VRCUrlInputField.OnValidateInput ( string  text,
int  charIndex,
char  addedChar 
)
Here is the caller graph for this function:

◆ ProcessEvent()

void VRC.SDK3.Components.VRCUrlInputField.ProcessEvent ( Event  e)

Definition at line 11736 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ Rebuild()

virtual void VRC.SDK3.Components.VRCUrlInputField.Rebuild ( CanvasUpdate  update)
virtual

Definition at line 12343 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ ScreenToLocal()

Vector2 VRC.SDK3.Components.VRCUrlInputField.ScreenToLocal ( Vector2  screen)

Definition at line 11284 of file VRCSDK3.cs.

◆ SelectAll()

void VRC.SDK3.Components.VRCUrlInputField.SelectAll ( )
protected

Definition at line 11046 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ SendOnSubmit()

void VRC.SDK3.Components.VRCUrlInputField.SendOnSubmit ( )
protected

Definition at line 12086 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ SendOnValueChanged()

void VRC.SDK3.Components.VRCUrlInputField.SendOnValueChanged ( )
private

Definition at line 12077 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ SendOnValueChangedAndUpdateLabel()

void VRC.SDK3.Components.VRCUrlInputField.SendOnValueChangedAndUpdateLabel ( )
private

Definition at line 12071 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCaretActive()

void VRC.SDK3.Components.VRCUrlInputField.SetCaretActive ( )
private

Definition at line 11014 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCaretVisible()

void VRC.SDK3.Components.VRCUrlInputField.SetCaretVisible ( )
private

Definition at line 11004 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDrawRangeToContainCaretPosition()

void VRC.SDK3.Components.VRCUrlInputField.SetDrawRangeToContainCaretPosition ( int  caretPos)
private

Definition at line 12207 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetText()

void VRC.SDK3.Components.VRCUrlInputField.SetText ( string  value,
bool  sendCallback = true 
)
private

Definition at line 10855 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ SetToCustom()

void VRC.SDK3.Components.VRCUrlInputField.SetToCustom ( )
private

Definition at line 13057 of file VRCSDK3.cs.

◆ SetToCustomIfContentTypeIsNot()

void VRC.SDK3.Components.VRCUrlInputField.SetToCustomIfContentTypeIsNot ( params ContentType[]  allowedContentTypes)
private

Definition at line 13041 of file VRCSDK3.cs.

◆ SetUrl()

void VRC.SDK3.Components.VRCUrlInputField.SetUrl ( VRCUrl  url)

Definition at line 10827 of file VRCSDK3.cs.

Here is the call graph for this function:

◆ TouchScreenKeyboardShouldBeUsed()

bool VRC.SDK3.Components.VRCUrlInputField.TouchScreenKeyboardShouldBeUsed ( )
private

Definition at line 11082 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ UpdateCaretFromKeyboard()

void VRC.SDK3.Components.VRCUrlInputField.UpdateCaretFromKeyboard ( )
private

Definition at line 11119 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateCaretMaterial()

void VRC.SDK3.Components.VRCUrlInputField.UpdateCaretMaterial ( )
private

Definition at line 11033 of file VRCSDK3.cs.

Here is the caller graph for this function:

◆ UpdateGeometry()

void VRC.SDK3.Components.VRCUrlInputField.UpdateGeometry ( )
private

Definition at line 12361 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateLabel()

void VRC.SDK3.Components.VRCUrlInputField.UpdateLabel ( )
protected

Definition at line 12132 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTouchKeyboardFromEditChanges()

void VRC.SDK3.Components.VRCUrlInputField.UpdateTouchKeyboardFromEditChanges ( )
private

Definition at line 12063 of file VRCSDK3.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Validate()

char VRC.SDK3.Components.VRCUrlInputField.Validate ( string  text,
int  pos,
char  ch 
)
protected

Definition at line 12723 of file VRCSDK3.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ AllowSendingOnEndEdit

bool VRC.SDK3.Components.VRCUrlInputField.AllowSendingOnEndEdit = true

Definition at line 10198 of file VRCSDK3.cs.

◆ caretRectTrans

RectTransform VRC.SDK3.Components.VRCUrlInputField.caretRectTrans
private

Definition at line 10145 of file VRCSDK3.cs.

◆ k_MaxTextLength

const int VRC.SDK3.Components.VRCUrlInputField.k_MaxTextLength = 16382
staticprivate

Definition at line 10202 of file VRCSDK3.cs.

◆ kEmailSpecialCharacters

const string VRC.SDK3.Components.VRCUrlInputField.kEmailSpecialCharacters = "!#$%&'*+-/=?^_`{|}~"
staticprivate

Definition at line 10192 of file VRCSDK3.cs.

◆ kHScrollSpeed

const float VRC.SDK3.Components.VRCUrlInputField.kHScrollSpeed = 0.05f
staticprivate

Definition at line 10166 of file VRCSDK3.cs.

◆ kOculusQuestDeviceModel

const string VRC.SDK3.Components.VRCUrlInputField.kOculusQuestDeviceModel = "Oculus Quest"
staticprivate

Definition at line 10194 of file VRCSDK3.cs.

◆ kPicoDeviceModel

const string VRC.SDK3.Components.VRCUrlInputField.kPicoDeviceModel = "Pico"
staticprivate

Definition at line 10196 of file VRCSDK3.cs.

◆ kSeparators

readonly char [] VRC.SDK3.Components.VRCUrlInputField.kSeparators
staticprivate

Definition at line 10053 of file VRCSDK3.cs.

◆ kVScrollSpeed

const float VRC.SDK3.Components.VRCUrlInputField.kVScrollSpeed = 0.1f
staticprivate

Definition at line 10168 of file VRCSDK3.cs.

◆ m_AllowInput

bool VRC.SDK3.Components.VRCUrlInputField.m_AllowInput
private

Definition at line 10158 of file VRCSDK3.cs.

◆ m_AsteriskChar

char VRC.SDK3.Components.VRCUrlInputField.m_AsteriskChar = '*'
private

Definition at line 10077 of file VRCSDK3.cs.

◆ m_BlinkCoroutine

Coroutine VRC.SDK3.Components.VRCUrlInputField.m_BlinkCoroutine
private

Definition at line 10172 of file VRCSDK3.cs.

◆ m_BlinkStartTime

float VRC.SDK3.Components.VRCUrlInputField.m_BlinkStartTime
private

Definition at line 10174 of file VRCSDK3.cs.

◆ m_CachedInputRenderer

CanvasRenderer VRC.SDK3.Components.VRCUrlInputField.m_CachedInputRenderer
private

Definition at line 10151 of file VRCSDK3.cs.

◆ m_CaretBlinkRate

float VRC.SDK3.Components.VRCUrlInputField.m_CaretBlinkRate = 0.85f
private

Definition at line 10129 of file VRCSDK3.cs.

◆ m_CaretColor

Color VRC.SDK3.Components.VRCUrlInputField.m_CaretColor = new Color(10f / 51f, 10f / 51f, 10f / 51f, 1f)
private

Definition at line 10115 of file VRCSDK3.cs.

◆ m_CaretPosition

int VRC.SDK3.Components.VRCUrlInputField.m_CaretPosition
protected

Definition at line 10141 of file VRCSDK3.cs.

◆ m_CaretSelectPosition

int VRC.SDK3.Components.VRCUrlInputField.m_CaretSelectPosition
protected

Definition at line 10143 of file VRCSDK3.cs.

◆ m_CaretVisible

bool VRC.SDK3.Components.VRCUrlInputField.m_CaretVisible
protected

Definition at line 10170 of file VRCSDK3.cs.

◆ m_CaretWidth

int VRC.SDK3.Components.VRCUrlInputField.m_CaretWidth = 1
private

Definition at line 10133 of file VRCSDK3.cs.

◆ m_CharacterLimit

int VRC.SDK3.Components.VRCUrlInputField.m_CharacterLimit
private

Definition at line 10096 of file VRCSDK3.cs.

◆ m_CharacterValidation

CharacterValidation VRC.SDK3.Components.VRCUrlInputField.m_CharacterValidation
private

Definition at line 10092 of file VRCSDK3.cs.

◆ m_ContentType

ContentType VRC.SDK3.Components.VRCUrlInputField.m_ContentType
private

Definition at line 10069 of file VRCSDK3.cs.

◆ m_CursorVerts

UIVertex [] VRC.SDK3.Components.VRCUrlInputField.m_CursorVerts
protected

Definition at line 10147 of file VRCSDK3.cs.

◆ m_CustomCaretColor

bool VRC.SDK3.Components.VRCUrlInputField.m_CustomCaretColor
private

Definition at line 10118 of file VRCSDK3.cs.

◆ m_DragCoroutine

Coroutine VRC.SDK3.Components.VRCUrlInputField.m_DragCoroutine
private

Definition at line 10180 of file VRCSDK3.cs.

◆ m_DragPositionOutOfBounds

bool VRC.SDK3.Components.VRCUrlInputField.m_DragPositionOutOfBounds
private

Definition at line 10164 of file VRCSDK3.cs.

◆ m_DrawEnd

int VRC.SDK3.Components.VRCUrlInputField.m_DrawEnd
protected

Definition at line 10178 of file VRCSDK3.cs.

◆ m_DrawStart

int VRC.SDK3.Components.VRCUrlInputField.m_DrawStart
protected

Definition at line 10176 of file VRCSDK3.cs.

◆ m_HasDoneFocusTransition

bool VRC.SDK3.Components.VRCUrlInputField.m_HasDoneFocusTransition
private

Definition at line 10186 of file VRCSDK3.cs.

◆ m_HideMobileInput

bool VRC.SDK3.Components.VRCUrlInputField.m_HideMobileInput
private

Definition at line 10088 of file VRCSDK3.cs.

◆ m_InputTextCache

TextGenerator VRC.SDK3.Components.VRCUrlInputField.m_InputTextCache
private

Definition at line 10149 of file VRCSDK3.cs.

◆ m_InputType

InputType VRC.SDK3.Components.VRCUrlInputField.m_InputType
private

Definition at line 10073 of file VRCSDK3.cs.

◆ m_Keyboard

TouchScreenKeyboard VRC.SDK3.Components.VRCUrlInputField.m_Keyboard
protected

Definition at line 10051 of file VRCSDK3.cs.

◆ m_KeyboardType

TouchScreenKeyboardType VRC.SDK3.Components.VRCUrlInputField.m_KeyboardType
private

Definition at line 10081 of file VRCSDK3.cs.

◆ m_LineType

LineType VRC.SDK3.Components.VRCUrlInputField.m_LineType
private

Definition at line 10084 of file VRCSDK3.cs.

◆ m_Mesh

Mesh VRC.SDK3.Components.VRCUrlInputField.m_Mesh
protected

Definition at line 10156 of file VRCSDK3.cs.

◆ m_OnEndEdit

SubmitEvent VRC.SDK3.Components.VRCUrlInputField.m_OnEndEdit = new SubmitEvent()
private

Definition at line 10102 of file VRCSDK3.cs.

◆ m_onSelected

Action VRC.SDK3.Components.VRCUrlInputField.m_onSelected
private

Definition at line 10049 of file VRCSDK3.cs.

◆ m_OnValidateInput

OnValidateInput VRC.SDK3.Components.VRCUrlInputField.m_OnValidateInput
private

Definition at line 10111 of file VRCSDK3.cs.

◆ m_OnValueChanged

OnChangeEvent VRC.SDK3.Components.VRCUrlInputField.m_OnValueChanged = new OnChangeEvent()
private

Definition at line 10107 of file VRCSDK3.cs.

◆ m_OriginalText

string VRC.SDK3.Components.VRCUrlInputField.m_OriginalText = ""
private

Definition at line 10182 of file VRCSDK3.cs.

◆ m_Placeholder

Graphic VRC.SDK3.Components.VRCUrlInputField.m_Placeholder
protected

Definition at line 10066 of file VRCSDK3.cs.

◆ m_PreventFontCallback

bool VRC.SDK3.Components.VRCUrlInputField.m_PreventFontCallback
private

Definition at line 10153 of file VRCSDK3.cs.

◆ m_ProcessingEvent

Event VRC.SDK3.Components.VRCUrlInputField.m_ProcessingEvent = new Event()
private

Definition at line 10200 of file VRCSDK3.cs.

◆ m_ReadOnly

bool VRC.SDK3.Components.VRCUrlInputField.m_ReadOnly
private

Definition at line 10136 of file VRCSDK3.cs.

◆ m_SelectionColor

Color VRC.SDK3.Components.VRCUrlInputField.m_SelectionColor = new Color(56f / 85f, 0.80784315f, 1f, 64f / 85f)
private

Definition at line 10121 of file VRCSDK3.cs.

◆ m_ShouldActivateNextUpdate

bool VRC.SDK3.Components.VRCUrlInputField.m_ShouldActivateNextUpdate
private

Definition at line 10160 of file VRCSDK3.cs.

◆ m_ShouldActivateOnSelect

bool VRC.SDK3.Components.VRCUrlInputField.m_ShouldActivateOnSelect = true
private

Definition at line 10139 of file VRCSDK3.cs.

◆ m_Text

string VRC.SDK3.Components.VRCUrlInputField.m_Text = String.Empty
protected

Definition at line 10125 of file VRCSDK3.cs.

◆ m_TextComponent

Text VRC.SDK3.Components.VRCUrlInputField.m_TextComponent
protected

Definition at line 10063 of file VRCSDK3.cs.

◆ m_TouchKeyboardAllowsInPlaceEditing

bool VRC.SDK3.Components.VRCUrlInputField.m_TouchKeyboardAllowsInPlaceEditing
private

Definition at line 10190 of file VRCSDK3.cs.

◆ m_UpdateDrag

bool VRC.SDK3.Components.VRCUrlInputField.m_UpdateDrag
private

Definition at line 10162 of file VRCSDK3.cs.

◆ m_WaitForSecondsRealtime

WaitForSecondsRealtime VRC.SDK3.Components.VRCUrlInputField.m_WaitForSecondsRealtime
private

Definition at line 10188 of file VRCSDK3.cs.

◆ m_WasCanceled

bool VRC.SDK3.Components.VRCUrlInputField.m_WasCanceled
private

Definition at line 10184 of file VRCSDK3.cs.

◆ s_AreDevicesEvaluated

bool VRC.SDK3.Components.VRCUrlInputField.s_AreDevicesEvaluated
staticprivate

Definition at line 10055 of file VRCSDK3.cs.

◆ s_IsPicoDevice

bool VRC.SDK3.Components.VRCUrlInputField.s_IsPicoDevice
staticprivate

Definition at line 10059 of file VRCSDK3.cs.

◆ s_IsQuestDevice

bool VRC.SDK3.Components.VRCUrlInputField.s_IsQuestDevice
staticprivate

Definition at line 10057 of file VRCSDK3.cs.

Property Documentation

◆ asteriskChar

char VRC.SDK3.Components.VRCUrlInputField.asteriskChar
getset

Definition at line 10621 of file VRCSDK3.cs.

◆ cachedInputTextGenerator

TextGenerator VRC.SDK3.Components.VRCUrlInputField.cachedInputTextGenerator
getprotected

Definition at line 10242 of file VRCSDK3.cs.

◆ caretBlinkRate

float VRC.SDK3.Components.VRCUrlInputField.caretBlinkRate
getset

Definition at line 10313 of file VRCSDK3.cs.

◆ caretColor

Color VRC.SDK3.Components.VRCUrlInputField.caretColor
getset

Definition at line 10394 of file VRCSDK3.cs.

◆ caretPosition

int VRC.SDK3.Components.VRCUrlInputField.caretPosition
getset

Definition at line 10667 of file VRCSDK3.cs.

◆ caretPositionInternal

int VRC.SDK3.Components.VRCUrlInputField.caretPositionInternal
getsetprotected

Definition at line 10638 of file VRCSDK3.cs.

◆ caretSelectPositionInternal

int VRC.SDK3.Components.VRCUrlInputField.caretSelectPositionInternal
getsetprotected

Definition at line 10651 of file VRCSDK3.cs.

◆ caretWidth

int VRC.SDK3.Components.VRCUrlInputField.caretWidth
getset

Definition at line 10328 of file VRCSDK3.cs.

◆ characterLimit

int VRC.SDK3.Components.VRCUrlInputField.characterLimit
getset

Definition at line 10498 of file VRCSDK3.cs.

◆ characterValidation

CharacterValidation VRC.SDK3.Components.VRCUrlInputField.characterValidation
getset

Definition at line 10582 of file VRCSDK3.cs.

◆ clipboard

string VRC.SDK3.Components.VRCUrlInputField.clipboard
staticgetsetprivate

Definition at line 10714 of file VRCSDK3.cs.

◆ compositionString

string VRC.SDK3.Components.VRCUrlInputField.compositionString
getprivate

Definition at line 10216 of file VRCSDK3.cs.

◆ contentType

ContentType VRC.SDK3.Components.VRCUrlInputField.contentType
getset

Definition at line 10517 of file VRCSDK3.cs.

◆ customCaretColor

bool VRC.SDK3.Components.VRCUrlInputField.customCaretColor
getset

Definition at line 10416 of file VRCSDK3.cs.

◆ flexibleHeight

virtual float VRC.SDK3.Components.VRCUrlInputField.flexibleHeight
get

Definition at line 10771 of file VRCSDK3.cs.

◆ flexibleWidth

virtual float VRC.SDK3.Components.VRCUrlInputField.flexibleWidth
get

Definition at line 10745 of file VRCSDK3.cs.

◆ hasSelection

bool VRC.SDK3.Components.VRCUrlInputField.hasSelection
getprivate

Definition at line 10664 of file VRCSDK3.cs.

◆ input

BaseInput VRC.SDK3.Components.VRCUrlInputField.input
getprivate

Definition at line 10204 of file VRCSDK3.cs.

◆ inputType

InputType VRC.SDK3.Components.VRCUrlInputField.inputType
getset

Definition at line 10548 of file VRCSDK3.cs.

◆ isFocused

bool VRC.SDK3.Components.VRCUrlInputField.isFocused
get

Definition at line 10311 of file VRCSDK3.cs.

◆ keyboardType

TouchScreenKeyboardType VRC.SDK3.Components.VRCUrlInputField.keyboardType
getset

Definition at line 10565 of file VRCSDK3.cs.

◆ layoutPriority

virtual int VRC.SDK3.Components.VRCUrlInputField.layoutPriority
get

Definition at line 10773 of file VRCSDK3.cs.

◆ lineType

LineType VRC.SDK3.Components.VRCUrlInputField.lineType
getset

Definition at line 10532 of file VRCSDK3.cs.

◆ mesh

Mesh VRC.SDK3.Components.VRCUrlInputField.mesh
getprotected

Definition at line 10228 of file VRCSDK3.cs.

◆ minHeight

virtual float VRC.SDK3.Components.VRCUrlInputField.minHeight
get

Definition at line 10747 of file VRCSDK3.cs.

◆ minWidth

virtual float VRC.SDK3.Components.VRCUrlInputField.minWidth
get

Definition at line 10726 of file VRCSDK3.cs.

◆ multiLine

bool VRC.SDK3.Components.VRCUrlInputField.multiLine
get

Definition at line 10609 of file VRCSDK3.cs.

◆ onEndEdit

SubmitEvent VRC.SDK3.Components.VRCUrlInputField.onEndEdit
getset

Definition at line 10449 of file VRCSDK3.cs.

◆ onSelected

Action VRC.SDK3.Components.VRCUrlInputField.onSelected
addremove

Definition at line 10775 of file VRCSDK3.cs.

◆ onValidateInput

OnValidateInput VRC.SDK3.Components.VRCUrlInputField.onValidateInput
getset

Definition at line 10486 of file VRCSDK3.cs.

◆ onValueChange

OnChangeEvent VRC.SDK3.Components.VRCUrlInputField.onValueChange
getset

Definition at line 10462 of file VRCSDK3.cs.

◆ onValueChanged

OnChangeEvent VRC.SDK3.Components.VRCUrlInputField.onValueChanged
getset

Definition at line 10474 of file VRCSDK3.cs.

◆ placeholder

Graphic VRC.SDK3.Components.VRCUrlInputField.placeholder
getset

Definition at line 10382 of file VRCSDK3.cs.

◆ preferredHeight

virtual float VRC.SDK3.Components.VRCUrlInputField.preferredHeight
get

Definition at line 10749 of file VRCSDK3.cs.

◆ preferredWidth

virtual float VRC.SDK3.Components.VRCUrlInputField.preferredWidth
get

Definition at line 10728 of file VRCSDK3.cs.

◆ readOnly

bool VRC.SDK3.Components.VRCUrlInputField.readOnly
getset

Definition at line 10597 of file VRCSDK3.cs.

◆ selectionAnchorPosition

int VRC.SDK3.Components.VRCUrlInputField.selectionAnchorPosition
getset

Definition at line 10681 of file VRCSDK3.cs.

◆ selectionColor

Color VRC.SDK3.Components.VRCUrlInputField.selectionColor
getset

Definition at line 10432 of file VRCSDK3.cs.

◆ selectionFocusPosition

int VRC.SDK3.Components.VRCUrlInputField.selectionFocusPosition
getset

Definition at line 10698 of file VRCSDK3.cs.

◆ shouldActivateOnSelect

bool VRC.SDK3.Components.VRCUrlInputField.shouldActivateOnSelect
getsetprivate

Definition at line 10281 of file VRCSDK3.cs.

◆ shouldHideMobileInput

bool VRC.SDK3.Components.VRCUrlInputField.shouldHideMobileInput
getset

Definition at line 10256 of file VRCSDK3.cs.

◆ text

string VRC.SDK3.Components.VRCUrlInputField.text
getset

Definition at line 10299 of file VRCSDK3.cs.

◆ textComponent

Text VRC.SDK3.Components.VRCUrlInputField.textComponent
getset

Definition at line 10343 of file VRCSDK3.cs.

◆ touchScreenKeyboard

TouchScreenKeyboard VRC.SDK3.Components.VRCUrlInputField.touchScreenKeyboard
get

Definition at line 10563 of file VRCSDK3.cs.

◆ wasCanceled

bool VRC.SDK3.Components.VRCUrlInputField.wasCanceled
get

Definition at line 10636 of file VRCSDK3.cs.


The documentation for this class was generated from the following file: