0.1.4 • Published 4 years ago

sparkar-scenequery v0.1.4

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

SceneQuery

SceneQuery is a bunch of functions to filter scene objects in Spark AR.

Install

Import

npm

  1. Add package with yarn or npm

    yarn add sparkar-scenequery

    or

    npm i sparkar-scenequery
  2. Load in the required module

    import { * } from "sparkar-scenequery";
    // Your script...

Usage

const Scene = require('Scene')
const all_objs = Scene.root.findByPath('**/**');

all_objs.then(hasMaterials).then(logName);	
all_objs.then(getMaterials).then(logName);
0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago