public void ResizeByWebCam(DeviceCamera webCam)
    {
#if UNITY_EDITOR
        float tmpW = transform.localScale.x;
        float tmpH = transform.localScale.z;

        if (tmpW > tmpH)
        {
            tmpH = tmpW * webCam.getSize().y / webCam.getSize().x;
        }
        else
        {
            tmpW = tmpH * webCam.getSize().x / webCam.getSize().y;
        }

        transform.localScale = new Vector3(tmpW, transform.localScale.y, tmpH);
#endif
    }