Class HtmlInteractionManager
Constructors
constructor
-
new HtmlInteractionManager(
scene: Scene,
texture: HtmlTexture,
mesh: AbstractMesh,
options?: IHtmlInteractionManagerOptions,
): HtmlInteractionManagerCreates an overlay interaction manager.
Parameters
- scene: Scene
the scene whose camera drives the projection
- texture: HtmlTexture
the HTML texture whose element should be overlaid
- mesh: AbstractMesh
the planar mesh displaying the texture
- options: IHtmlInteractionManagerOptions = {}
optional configuration
Returns HtmlInteractionManager
- scene: Scene
Overlays the live HTML element of an HtmlTexture on top of the projected face of a planar mesh, so the browser hit-tests the real DOM element natively (enabling focus, text selection and form input).
Each frame the mesh face is projected to screen space and the element is translated, scaled and rotated to match. This is best suited to planar, camera-facing surfaces. For arbitrary or curved meshes, use the UV-based HtmlRaycastInteractionManager instead.
The overlay is screen-aligned (position, size and in-plane rotation); it does not apply a full perspective skew, so steeply oblique faces will not be perspective-correct.