• This project
    • Loading...
  • Sign in

2021-1-capstone-design1 / JSH_Project4

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • JSH_Project4
  • Library
  • PackageCache
  • com.unity.xr.arcore@4.1.1
  • Runtime
  • ARCorePromise.cs
  • 이종상's avatar
    test1 updated · cfbe9185
    cfbe9185
    이종상 authored 2021-06-13 17:00:48 +0900
ARCorePromise.cs 513 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
using UnityEngine.XR.ARSubsystems;

namespace UnityEngine.XR.ARCore
{
    internal class ARCorePromise<T> : Promise<T>
    {
        protected override void OnKeepWaiting()
        {
            if (s_LastFrameUpdated == Time.frameCount)
                return;

            ArPrestoApi.ArPresto_update();
            s_LastFrameUpdated = Time.frameCount;
        }

        internal new void Resolve(T result)
        {
            base.Resolve(result);
        }

        static int s_LastFrameUpdated;
    }
}