How to use the troika-core.utils.getIdForObject function in troika-core

To help you get started, we’ve selected a few troika-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github protectwise / troika / packages / troika-xr / src / facade / XRInputSourceManager.js View on Github external
this._xrInputSourceSubtree.children = inputSources && Array.from(inputSources).map(xrInputSource => {
        // TODO resolve config overrides?
        return {
          facade: XRInputSourceFacade,
          key: utils.getIdForObject(xrInputSource),
          xrInputSource,
          xrSession: this.xrSession,
          xrReferenceSpace: this.xrReferenceSpace
        }
      })
      this._xrInputSourceSubtree.afterUpdate()