Unity-Technologies / arfoundation-demos

AR Foundation demo projects
Other
500 stars 128 forks source link

AddToQueue() is not working properly #54

Open makakaorg opened 3 years ago

makakaorg commented 3 years ago

Let's say I want to restart my AR Onboarding UX.

Instructional IU: CrossPlatform Find A Plane Goal: Found A Plane

Secondary Instructional IU: Tap To Place Goal: Placed An Object

So to restart I just use the part of provided code:

public void ResetUXOrderedQueue() { if (m_StartWithInstructionalUI) { m_UXOrderedQueue.Enqueue(new UXHandle(m_InstructionalUI, m_InstructionalGoal)); } if (m_ShowSecondaryInstructionalUI) { m_UXOrderedQueue.Enqueue(new UXHandle(m_SecondaryInstructionUI, m_SecondaryGoal)); } }

Issue 1.

If I run this function before fading off of Secondary Instructional IU the it's working like a charm. If I run this function after then UX will start with Secondary Instructional IU !

Issue 2.

When I switch to other app and go back to my App the Video Instruction is disappeared and in next restarts I have only text.

Environment:

DanMillerDev commented 2 years ago

I believe this is an issue with timing and how I'm tracking the time / fading the UI. I'll investigate more and try and follow up with possible solutions. Thanks for reporting.