Class PasteManager
Provides paste functionality to WebGL builds via a singleton manager. This class automatically sets itself up in WebGL to handle text paste events, allowing them to be inserted into Unity's UnityEngine.UI.InputField components.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: TriLibCore.Samples
Assembly: Assembly-CSharp.dll
Syntax
public class PasteManager : MonoBehaviour
Properties
Instance
Gets the PasteManager singleton instance. If no instance is found in the scene, one will be created automatically.
Declaration
public static PasteManager Instance { get; }
Property Value
Type | Description |
---|---|
PasteManager |
Methods
CheckInstance()
Checks if a PasteManager instance already exists. If none is found, a new UnityEngine.GameObject with a PasteManager is created.
Declaration
public static void CheckInstance()
Paste(string)
Called when the user pastes the specified text within the WebGL build. Inserts the pasted text into a currently selected UnityEngine.UI.InputField, if available.
Declaration
public void Paste(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The text value that was pasted. |