Attachment Component

The Attachment component lets an entity attach to a bone on the skeleton of another entity.

Attachment Component Properties

Attachment component properties.

The Attachment component has the following properties.


NameDescription
Target entitySpecifies the character entity that you want to attach.
Joint nameSpecifies the joint that you want to attach to the entity.
Position offsetSpecifies the x, y, and z local position offset from the target bone.
Rotation offsetSpecifies the x, y, and z local rotation offset from the target bone.
Scale offsetSpecifies the x, y, and z local scale offset from the target bone.
Attached initiallySpecifies whether to attach to the target entity automatically.
ScalingSpecifies how the object scaling is determined. You can specify the following values:

EBus Request Bus Interface

Use the following request functions with the event bus (EBus) interface to communicate with other components of your game.

For more information, see Working with the Event Bus (EBus) system.


Function NameDescriptionParametersScriptable
AttachChanges the attachment target for an entity. The entity will detach from its previous target.targetEntityId - ID of the entity in which to attach. targetBoneName - Name of bone in which to attach the entity. If a bone is not found, then attach to target entity’s transform origin. offsetTransform - Attachment’s offset from target.Yes
DetachDetaches the target from the entity.NoneYes
SetAttachmentOffsetUpdate entity’s offset from target.offsetTransform - Attachment’s offset from target.Yes

EBus Notification Bus Interface

Use the following notification functions with the EBus interface to communicate with other components of your game.

For more information, see Working with the Event Bus (EBus) system.


Function NameDescriptionParametersScriptable
OnAttachedIndicates that the entity has attached to the target.targetEntityId - ID of the target in which is being attached.Yes
OnDetachedIndicates that the entity is detaching from its target.targetEntityId - ID of the target in which is being detached.Yes

Copyright © 2026 DawnEngine. All rights reserved.

DawnEngine is a commercial 3D engine distributed under the DawnEngine end-user license agreement. Engine binaries and source are proprietary and are not covered by the licenses below.

Documentation only: the prose and templates on this site are a derivative work of Open 3D Engine (O3DE) documentation by the O3DE Contributors, used under CC BY 4.0 (documentation content), Apache 2.0 (site code), and the MIT license (inline code samples).

The open-source 3D engine that DawnEngine is built on top of is Open 3D Engine . DawnEngine is not affiliated with, endorsed by, or sponsored by The Linux Foundation or the O3DE project. “O3DE” and “Open 3D Engine” are trademarks of The Linux Foundation.