AbstractProtectedconstructorOptional Internal_If this is present, only the objects in this array will be saved in the glb/gltf files, and the object.children array will be ignored. The other properties are expected to be loaded/filled at runtime by default values or from an external asset loaded from IImportResultUserData.rootPath.
Array with object's children.
The colour of the lines. When not set: the colour of the light for a light, else the colour of the kind (widgetKinds). A change redraws the widget.
Searches through an object and its children, starting with the object itself, and returns the first with a matching id.
Unique number of the object instance. Expects a Integer
Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
String to match to the children's Object3D.name property.
Searches through an object and its children, starting with the object itself, and returns the first with a property that matches the value given.
the property name to search for.
value of the given property.
How the icon is drawn. sprite: the widget has an icon sprite in the scene. dom: the widget has no
sprite, and a DOM overlay draws the icon (WidgetIconOverlay, made by Object3DWidgetsPlugin); a widget used
without the plugin then shows no icon. Set for all widgets with Object3DWidgetsPlugin.iconMode.
The diameter of the icon in CSS pixels. Set for all widgets with Object3DWidgetsPlugin.iconSize.
The kind of the attached object (a light or a camera kind), for the colour of the lines and the icon.
undefined for other objects; those widgets have no icon.
Object's parent in the scene graph.
Dispatches 'objectUpdate' event on object.
The helper of the shadow camera, there while showShadowFrustum is on and the light casts shadows.
It cannot be picked (userData.userSelectable = false): a click on its lines goes to what is behind them.
Draw the frustum of the shadow camera (what the shadows of the light cover) when the light casts shadows.
Directional and spot lights only. Set for all widgets with Object3DWidgetsPlugin.showShadowFrustum.
Executes the callback on this object and all descendants.
Executes the callback on all ancestors.
Like traverse, but the callback will only be executed for visible objects
An object that can be used to store custom data about the Object3D.
Object gets rendered if true.
Protected_The colour of the lines: color, else the colour of the light for a light, else the colour of the kind
Protected_A material for the lines of a helper: a constant pixel width, not tone mapped, not in the GBuffer or the depth passes (see the material convention in the widgets docs).
Protected_Protected_Protected_A change of an option: update, or once at the end of batchUpdate
Protected_Protected_
Abstract base class for helper widgets that visualize scene objects. Provides event-driven lifecycle (attach/detach/update) and UI integration. See https://threepipe.org/notes/widgets-and-helpers for the full widget system documentation.