Skip to content

TransformControls requires a unique identifier. #31251

@Jenychen1996

Description

@Jenychen1996

Description

Can TransformControls and other controls add type='TransformControls' or isTransformControls property? It would be convenient for raycaster and other functions to filter.

Solution

class TransformControls add type='TransformControls' or isTransformControls = true

Alternatives

The default type of TransformControls is Object3D. By overriding and writing the type, you can avoid this.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions