The Singleton which communicates with Javascript in browser host page
Could be put anywhere in the hierarchy, because it handles it's own path when communicating with Javascript
The path (to GameObject containing this script) is being registered with Javascript just before the first Javascript method call

C# | Visual Basic | Visual C++ |
public sealed class JavascriptConnector : MonoBehaviour
Public NotInheritable Class JavascriptConnector _ Inherits MonoBehaviour
public ref class JavascriptConnector sealed : public MonoBehaviour

All Members | Methods | Properties | Fields | ||
Icon | Member | Description |
---|---|---|
![]() | active | Obsolete. (Inherited from Component.) |
![]() | animation | (Inherited from Component.) |
![]() | audio | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object) | (Inherited from Component.) |
![]() | BroadcastMessage(String) | (Inherited from Component.) |
![]() | BroadcastMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | Call(String, JavascriptConnector..::..ExternalCallCallback, array<Object>[]()[][]) |
Calls the Javascript method
|
![]() | CallbackStringSeparator |
Callback parameter separator
|
![]() | camera | (Inherited from Component.) |
![]() | CancelInvoke()()()() | (Inherited from MonoBehaviour.) |
![]() | CancelInvoke(String) | (Inherited from MonoBehaviour.) |
![]() | collider | (Inherited from Component.) |
![]() | collider2D | (Inherited from Component.) |
![]() | CompareTag(String) | (Inherited from Component.) |
![]() | constantForce | (Inherited from Component.) |
![]() ![]() | DebugMode | |
![]() | DeepLinkSignal | |
![]() | enabled | (Inherited from Behaviour.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | gameObject | (Inherited from Component.) |
![]() | GetComponent(Type) | (Inherited from Component.) |
![]() | GetComponent``1()()()() | (Inherited from Component.) |
![]() | GetComponent(String) | (Inherited from Component.) |
![]() | GetComponentInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentInChildren``1()()()() | (Inherited from Component.) |
![]() | GetComponents(Type) | (Inherited from Component.) |
![]() | GetComponents``1()()()() | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type, Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1(Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1()()()() | (Inherited from Component.) |
![]() | GetHashCode()()()() | (Inherited from Object.) |
![]() | GetInstanceID()()()() | (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | guiElement | Obsolete. (Inherited from Component.) |
![]() | guiText | (Inherited from Component.) |
![]() | guiTexture | (Inherited from Component.) |
![]() | hideFlags | (Inherited from Object.) |
![]() | hingeJoint | (Inherited from Component.) |
![]() ![]() | Instance |
Singleton instance
|
![]() | Invoke(String, Single) | (Inherited from MonoBehaviour.) |
![]() | InvokeRepeating(String, Single, Single) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking(String) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking()()()() | (Inherited from MonoBehaviour.) |
![]() ![]() | JavascriptConnectorObject |
The name of the connector object
|
![]() ![]() | JavascriptRegistrationMethod |
Registration method name
|
![]() | light | (Inherited from Component.) |
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | name | (Inherited from Object.) |
![]() | networkView | (Inherited from Component.) |
![]() | particleEmitter | (Inherited from Component.) |
![]() | particleSystem | (Inherited from Component.) |
![]() ![]() | Registered |
True if Javascript connector already registered
|
![]() | renderer | (Inherited from Component.) |
![]() | rigidbody | (Inherited from Component.) |
![]() | rigidbody2D | (Inherited from Component.) |
![]() | SendMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessage(String, Object) | (Inherited from Component.) |
![]() | SendMessage(String) | (Inherited from Component.) |
![]() | SendMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object) | (Inherited from Component.) |
![]() | SendMessageUpwards(String) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, SendMessageOptions) | (Inherited from Component.) |
![]() | StartCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String, Object) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine_Auto(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StopAllCoroutines()()()() | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | tag | (Inherited from Component.) |
![]() | ToString()()()() | (Inherited from Object.) |
![]() | transform | (Inherited from Component.) |
![]() | useGUILayout | (Inherited from MonoBehaviour.) |

Object | |||||
![]() | Object | ||||
![]() | Component | ||||
![]() | Behaviour | ||||
![]() | MonoBehaviour | ||||
![]() | JavascriptConnector |