Web Components API Reference - v0.2.5
    Preparing search index...

    Class AppElement

    The AppElement interface provides properties and methods for manipulating <pc-app> elements. The AppElement interface also inherits the properties and methods of the HTMLElement interface.

    Hierarchy (View Summary)

    Index

    Properties

    app: null | Application = null

    The PlayCanvas application instance.

    Accessors

    • get alpha(): boolean

      Gets the alpha flag.

      Returns boolean

      The alpha flag.

    • set alpha(value: boolean): void

      Sets the alpha flag.

      Parameters

      • value: boolean

        The alpha flag.

      Returns void

    • get antialias(): boolean

      Gets the antialias flag.

      Returns boolean

      The antialias flag.

    • set antialias(value: boolean): void

      Sets the antialias flag.

      Parameters

      • value: boolean

        The antialias flag.

      Returns void

    • get depth(): boolean

      Gets the depth flag.

      Returns boolean

      The depth flag.

    • set depth(value: boolean): void

      Sets the depth flag.

      Parameters

      • value: boolean

        The depth flag.

      Returns void

    • get highResolution(): boolean

      Gets the high resolution flag.

      Returns boolean

      The high resolution flag.

    • set highResolution(value: boolean): void

      Sets the high resolution flag. When true, the application will render at the device's physical resolution. When false, the application will render at CSS resolution.

      Parameters

      • value: boolean

        The high resolution flag.

      Returns void

    • get stencil(): boolean

      Gets the stencil flag.

      Returns boolean

      The stencil flag.

    • set stencil(value: boolean): void

      Sets the stencil flag.

      Parameters

      • value: boolean

        The stencil flag.

      Returns void

    Methods