google cardboard - GvrViewer.Instance.Triggered seems to be true during two frames -


the official documentation says:

true 1 complete frame after each pull.

however following log executed twice per tap on screen:

void update(){     if (gvrviewer.instance.triggered {            debug.log("tap detected");     } } 

a workaround removing private public bool triggered { get; private set; } in gvrviewer. setting false manually within above if clause. not elegant solution though...

it silly mistake. there 2 objects script attached. that's why executed twice!


Comments

Popular posts from this blog

c# - Class in a list -

mysql - Django database model for my website -

ios - How to run a segue on itself OR another viewController -