Skip to content
ClassGame Objects & Sprites@public

FlxObjectInspector ​

Optional debugger adapter for CPU-authoritative pointer selection. It never relies on Pixi hit testing and only intercepts matching debug clicks.

ts
export declare class FlxObjectInspector

Constructors ​

ts
constructor(renderer: FlxCameraRenderer, options: FlxObjectInspectorOptions)

Constructs a new instance of the FlxObjectInspector class

ParameterTypeDescription
rendererFlxCameraRenderer-
optionsFlxObjectInspectorOptions-

Properties ​

PropertyModifiersTypeDescription
enabled-boolean-
selectedObjectreadonlyFlxObject | null-
selectionreadonlyFlxCameraObjectPick | null-

Methods ​

attach() ​

ts
attach(target: HTMLElement): () => void

Attaches Alt+pointer selection to a letterboxed or scaled game element.

Parameters:

ParameterTypeDescription
targetHTMLElement-

Returns: () => void

clear() ​

ts
clear(): void

Returns: void

destroy() ​

ts
destroy(): void

Returns: void

detach() ​

ts
detach(target: HTMLElement): void

Parameters:

ParameterTypeDescription
targetHTMLElement-

Returns: void

selectAt() ​

ts
selectAt(point: Readonly<PointLike>): FlxCameraObjectPick | null

Selects the topmost object at a logical game-screen coordinate.

Parameters:

ParameterTypeDescription
pointReadonly<PointLike>-

Returns: FlxCameraObjectPick | null

Released under the MIT License.