User Tools

Site Tools


dragengine:modules:dragonscript:behavior_billboard

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_billboard [2025/03/10 20:50] – created dragonlorddragengine:modules:dragonscript:behavior_billboard [2025/03/12 19:35] (current) – [Optional Behaviors] dragonlord
Line 69: Line 69:
   * Example (*.deeclass) <code xml><boolean name='billboard.renderEnvMap'>false</boolean></code>   * Example (*.deeclass) <code xml><boolean name='billboard.renderEnvMap'>false</boolean></code>
  
-===== Events =====+====== Events ======
  
 This behavior has no events. This behavior has no events.
Line 79: Line 79:
 ====== Optional Behaviors ====== ====== Optional Behaviors ======
  
-This behavior suports these optional behaviors: +  [[behavior_collider|ECBehaviorCollider]]: Attaches billboard to collider if set.
-  * ECBehaviorCollider: Attaches billboard to collider if set.+
  
 ====== Persistency ====== ====== Persistency ======
Line 120: Line 119:
 <code xml> <code xml>
 <?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
-<behavior type='ECBehaviorBillboard'> +<elementClass name='MyClass' class='GenericBehaviorElement'> 
-  <!-- set element properties. omit property prefix if used inside behavior tag --> +  <behavior type='ECBehaviorBillboard'> 
-  <string name='.skin'>billboard.deskin</string> +    <!-- set element properties. omit property prefix if used inside behavior tag --> 
-  <vector2 name='.offset' x='0' y='0.5'/> +    <string name='.skin'>billboard.deskin</string> 
-</behavior> +    <vector2 name='.offset' x='0' y='0.5'/> 
- +  </behavior> 
-<!-- for adding multiple behaviors use unique identifiers --> +   
-<behavior type='ECBehaviorBillboard' id='second'/>+  <!-- for adding multiple behaviors use unique identifiers --> 
 +  <behavior type='ECBehaviorBillboard' id='second'/
 +</elementClass>
 </code> </code>
  
dragengine/modules/dragonscript/behavior_billboard.1741639859.txt.gz · Last modified: 2025/03/10 20:50 by dragonlord