コード例 #1
0
 // Use this for initialization
 void Start()
 {
     ovrObj          = GameObject.Find("OvrvisionProCamera").GetComponent <Ovrvision>();
     mUsedDeviceName = _DeviceName;
     mVideoInput     = UnityCallFactory.Instance.VideoInput;
     mVideoInput.AddDevice(mUsedDeviceName, _Width, _Height, _Fps);
 }
コード例 #2
0
    public void Register()
    {
        if (ready)
        {
            return;
        }

        Texture frame = Frame.CameraImage.Texture;

        videoInput = UnityCallFactory.Instance.VideoInput;
        if (videoInput != null && frame != null)
        {
            videoInput.AddDevice(usedDeviceName, frame.width, frame.height, _Fps);
        }
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     mVideoInput = UnityCallFactory.Instance.VideoInput;
     mVideoInput.AddDevice(mUsedDeviceName, _Width, _Height, _Fps);
 }