Lens Scripting API
    Preparing search index...

    Class PerformanceIndexes

    Provides information about the device running the Lens. Accessible through global.deviceInfoSystem.performanceIndexes.

     var devicePerformanceIndex = global.deviceInfoSystem.performanceIndexes.general
    // X is an arbitrary value that is related to a device threshold.
    if(devicePerformanceIndex > X){
    // Load high fidelity model from remote assets.
    }else{
    // Load low poly model from remote assets.
    }

    Hierarchy (View Summary)

    Index

    Properties

    general: number

    Provides a number denoting a devices performance capability. See phone clustering.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean