UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

39 lines (38 loc) 944 B
import { Behaviour } from "../Component.js"; export declare enum XRStateFlag { Never = 0, Browser = 1, AR = 2, VR = 4, FirstPerson = 8, ThirdPerson = 16, All = 4294967295 } export declare class XRState { static Global: XRState; Mask: XRStateFlag; Has(state: XRStateFlag): boolean; Set(state: number): void; Enable(state: number): void; Disable(state: number): void; Toggle(state: number): void; EnableAll(): void; DisableAll(): void; } /** * @category XR * @category Utilities * @group Components */ export declare class XRFlag extends Behaviour { private static registry; static Apply(): void; private static firstApply; private static buffer; visibleIn: number; awake(): void; onEnable(): void; onDestroy(): void; get isOn(): boolean; UpdateVisible(state?: XRState | XRStateFlag | null): void; }