# Handle WebGL view & interaction

## MYTYSDKContext

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/context/MYTYSDKContext.tsx>" %}

A context to wrap <mark style="color:purple;">`ReactUnityWebGL`</mark> and provide states to the other parts of the application. It exposes multiple methods that implements [myty-sdk-interface](https://myty.gitbook.io/products/sdk/myty-sdk-interface "mention"). With this, you can send message to Unity and use contexts that are delievered from Unity

## MYTYSDKView

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/components/MYTYSDKView.tsx>" %}

A component that wraps <mark style="color:purple;">`Unity`</mark> component from <mark style="color:purple;">`ReactUnityWebGL`</mark> . This component also includes video element, since for HeadOnly(AR) mode, camera device stream needs to be shown in the screen
