private void OnApply()
    {
        int width  = 0;
        int height = 0;

        if (int.TryParse(widthInputField.text, out width) && int.TryParse(heightInputField.text, out height))
        {
            webCam.AssignNewCameraTextureResolution(width, height, true);
            WebCameraSettings.requestedWidth  = width;
            WebCameraSettings.requestedHeight = height;
        }
        else
        {
            Debug.LogWarning("You have NOT passed a int to the width or height input fields!");
        }
    }