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

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -