Group
This component makes working with groups of objects easier.
Raycasting may be enabled for group children. When enabled, events are fired for corresponding mouse events.
Props
Prop name | Description | Type | Default |
---|---|---|---|
enableRaycasting | Component will emit mouse events when raycasting is enabled | boolean | false |
onClick | Callback to be fired when Group content clicked. | TSFunctionType | () => null |
onMouseMove | Callback to be fired when mouse-moving over Group content. | TSFunctionType | () => null |
onMouseEnter | Callback to be fired when Group content entered by mouse. | TSFunctionType | () => null |
onMouseLeave | Callback to be fired when Group content left by mouse. | TSFunctionType | () => null |
position | A Vector3Like representing the object's local position. | Vector3Like | [0, 0, 0] |
rotation | A Vector3Like representing local rotation (see Euler angles), in radians. | Vector3Like | [0, 0, 0] |
scale | A Vector3Like representing the object's local scale. | Vector3Like | [1, 1, 1] |
Slots
Name | Description | Bindings |
---|---|---|
default |