您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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);