Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

frame.md 579B

Frame

A Frame holds data for augmenting the physical scene with the virtual scene.

Properties

session

frame.session: Session, read-only

A reference to the session.

results

frame.results: Iterable<TrackerResult>, read-only

Use this property to iterate through the results generated by the trackers.

Example

function animate(time, frame)
{
    for(const result of frame.results) {
        // ...
    }

    session.requestAnimationFrame(animate);
}

session.requestAnimationFrame(animate);