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 FlxObjectInspectorConstructors
ts
constructor(renderer: FlxCameraRenderer, options: FlxObjectInspectorOptions)Constructs a new instance of the FlxObjectInspector class
| Parameter | Type | Description |
|---|---|---|
renderer | FlxCameraRenderer | - |
options | FlxObjectInspectorOptions | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
enabled | - | boolean | - |
selectedObject | readonly | FlxObject | null | - |
selection | readonly | FlxCameraObjectPick | null | - |
Methods
attach()
ts
attach(target: HTMLElement): () => voidAttaches Alt+pointer selection to a letterboxed or scaled game element.
Parameters:
| Parameter | Type | Description |
|---|---|---|
target | HTMLElement | - |
Returns: () => void
clear()
ts
clear(): voidReturns: void
destroy()
ts
destroy(): voidReturns: void
detach()
ts
detach(target: HTMLElement): voidParameters:
| Parameter | Type | Description |
|---|---|---|
target | HTMLElement | - |
Returns: void
selectAt()
ts
selectAt(point: Readonly<PointLike>): FlxCameraObjectPick | nullSelects the topmost object at a logical game-screen coordinate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
point | Readonly<PointLike> | - |
Returns: FlxCameraObjectPick | null