Example #1
0
    void Start()
    {
        var settings = new TobiiXR_Settings();

        TobiiXR.Start(settings);
        // StringBuilder builder = new StringBuilder();
        filePath = filePath + DateTime.Now.ToString("ss-mm-dd-MM-yyyy") + ".csv";
        //lineRenderer = gameObject.GetComponent<LineRenderer>();
        //indicator = GameObject.Find("Indicator");
    }
        void Start()
        {
            var settings = TobiiXR_Settings.CreateDefaultSettings();

            if (DebugVisualization != null)
            {
                DebugVisualization.Setup(settings.G2OM, MainCamera);
                Debug.Log("G2OM debug visualization available.");
            }

            TobiiXR.Start(settings);
        }
Example #3
0
        private void InitializeTobiiXR()
        {
            //if (_tobiiXRGameObject != null) return;

            Debug.Log("Inside initialize tobiixr");
            var settings = new TobiiXR_Settings();

            settings.FieldOfUse = FieldOfUse.Interactive;

            _tobiiXRGameObject = new GameObject("Tobii XR Initializer");
            var _tobiixr = _tobiiXRGameObject.AddComponent <TobiiXR_Initializer>();

            _tobiixr.Settings = settings;
        }
Example #4
0
        public static bool IsEulaAccepted()
        {
#if !UNITY_EDITOR
            if (_eulaAccepted)
            {
                return(true);
            }
#endif

            var settings = TobiiXR_Settings.LoadDefaultSettings();

            if (settings != null)
            {
                _eulaAccepted = settings.TobiiSDKEulaAccepted;
            }

            return(_eulaAccepted);
        }
Example #5
0
        void Start()
        {
            var settings = TobiiXR_Settings.CreateDefaultSettings();

            var description = new G2OM_Description
            {
                HowLongToKeepCandidatesInSeconds = 0,
                ExpectedNumberOfObjects          = settings.ExpectedNumberOfObjects,
                ObjectFinder  = new G2OM_RegisterObjectsFinder(),
                Distinguisher = new G2OM_RegisterObjectDistinguisher(),
                LayerMask     = settings.LayerMask
            };

            settings.G2OM = G2OM.Create(description);

            if (DebugVisualization != null)
            {
                DebugVisualization.Setup(settings.G2OM, MainCamera);
                Debug.Log("G2OM debug visualization available.");
            }

            TobiiXR.Start(settings);
        }
 public GazeModifierProvider() : this(TobiiXR_Settings.GetProvider(AssemblyUtils.EyetrackingProviderType(GazeModifierSettings.CreateDefaultSettings().EyetrackingProviderType)), GazeModifierSettings.CreateDefaultSettings(), new CameraHelper())
 {
 }
Example #7
0
    void Awake()
    {
        var settings = new TobiiXR_Settings();

        TobiiXR.Start(settings);
    }
Example #8
0
 public void Init(TobiiXR_Settings settings)
 {
     _tobiiSettings = settings;
 }