コード例 #1
0
        public static void SetEulaAccepted()
        {
            var settings = TobiiXR_Settings.LoadDefaultSettings();

            settings.TobiiSDKEulaAccepted = true;

            UnityEditor.EditorUtility.SetDirty(settings);
            UnityEditor.AssetDatabase.SaveAssets();
        }
コード例 #2
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);
        }