Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Listeners and Callbacks
  2. // -------------------------------------------------------------------
  3. // First, create a variable that stores an arrow function to the
  4. // performHitTest method of this class. This method takes care of
  5. // starting the hit test in the native AR system.
  6. // We need this as an arrow function to have access to "this" in
  7. // the class scope. Creating this function in a variable allows
  8. // to remove the event listener once the scene closes.
  9. var performHitTestCallback = (evt) => this.performHitTest(evt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement