User Tools

Site Tools


dragengine:modules:dragonscript:behavior_attachslot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dragengine:modules:dragonscript:behavior_attachslot [2025/03/12 15:14] – created dragonlorddragengine:modules:dragonscript:behavior_attachslot [2025/03/13 17:11] (current) dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorAttachSlot**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorAttachSlot**
 </WRAP> </WRAP>
  
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]]
  
dragengine/modules/dragonscript/behavior_attachslot.1741792476.txt.gz · Last modified: 2025/03/12 15:14 by dragonlord