Example #1
0
    void _CreateMediaCamera()
    {
        FileCameraSource c = new FileCameraSource();

        _cameraSource = c;
        c.TargetNode  = gameObject;
        c.Init(_robotIfo);
        _cameraSource.GetBaseTexture().OnFrameGrabbed += OnFrameGrabbed;
    }
Example #2
0
    void _CreateMediaCamera()
    {
        FileCameraSource c = new FileCameraSource();

        _cameraSource = c;
        _InitCameraRenderers();
        c.TargetNode = gameObject;
        c.Init(_robotIfo);
        _cameraSource.GetBaseTexture().OnFrameGrabbed += OnFrameGrabbed;
        if (OnCameraSourceCreated != null)
        {
            OnCameraSourceCreated(this, _cameraSource);
        }
    }