コード例 #1
0
        /// <summary>
        /// Initializes component.
        /// </summary>
        virtual protected void OnEnable()
        {
            _isReady = true;
            MLResult result = MLWorldRays.Start();

            if (!result.IsOk)
            {
                Debug.LogError("Error BaseRaycast starting MLWorldRays, disabling script.");
                enabled = false;
                return;
            }
        }
コード例 #2
0
ファイル: BaseRaycast.cs プロジェクト: CU-VisuaLab/HydrogenAR
        /// <summary>
        /// Initializes component.
        /// </summary>
        virtual protected void OnEnable()
        {
            _isReady = true;
            MLResult result = MLWorldRays.Start();

            if (!result.IsOk)
            {
                Debug.LogErrorFormat("Error: BaseRaycast failed starting MLWorldRays, disabling script. Reason: {0}", result);
                enabled = false;
                return;
            }
        }