This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_attachslot [2025/03/12 15:14] – created dragonlord | dragengine:modules:dragonscript:behavior_attachslot [2025/03/13 17:11] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 12: | Line 12: | ||
Provides an attachment slot where one [[behavior_attachable|ECBehaviorAttachable]] supporting element can be attached to. The slot behavior is responsible to persist the UniqueID of the attachable. Attachable is added to game world during addToGameWorld() if not in the game world already. Attachable is remove from game world during removeFromGameWorld() if in the game world. If attachable is present while behavior instance is disposed then attachable will be safely disposed using Element.safeDispose() . | Provides an attachment slot where one [[behavior_attachable|ECBehaviorAttachable]] supporting element can be attached to. The slot behavior is responsible to persist the UniqueID of the attachable. Attachable is added to game world during addToGameWorld() if not in the game world already. Attachable is remove from game world during removeFromGameWorld() if in the game world. If attachable is present while behavior instance is disposed then attachable will be safely disposed using Element.safeDispose() . | ||
+ | |||
+ | Behavior supports using [[behavior_vrhand|ECBehaviorVRHand]] instead of [[behavior_collider|ECBehaviorCollider]] to add attachment slot to VR hands. | ||
====== Instance Counts ====== | ====== Instance Counts ====== | ||
Line 60: | Line 62: | ||
====== Optional Behaviors ====== | ====== Optional Behaviors ====== | ||
- | This behavior does support these optional behaviors: | ||
* [[behavior_collider|ECBehaviorCollider]] or [[behavior_vrhand|ECBehaviorVRHand]] | * [[behavior_collider|ECBehaviorCollider]] or [[behavior_vrhand|ECBehaviorVRHand]] | ||