This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dragengine:modules:dragonscript:behavior_component [2025/03/11 02:30] – created dragonlord | dragengine:modules:dragonscript:behavior_component [2025/03/13 17:05] (current) – dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
Line 18: | Line 18: | ||
Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[# | Hence these two use cases are possible depending on the order the behaviors are added: Shape Collision, Component Collision. See [[# | ||
+ | |||
+ | See also: | ||
+ | * [[gamedev: | ||
+ | * [[tools: | ||
====== Instance Counts ====== | ====== Instance Counts ====== | ||
Line 27: | Line 31: | ||
===== model ===== | ===== model ===== | ||
Set path of model resource to use. | Set path of model resource to use. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
* Expected File Type: '' | * Expected File Type: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== skin ===== | ===== skin ===== | ||
Set path of skin resource to use. | Set path of skin resource to use. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
* Expected File Type: '' | * Expected File Type: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== rig ===== | ===== rig ===== | ||
Set path of rig resource to use. | Set path of rig resource to use. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
* Expected File Type: '' | * Expected File Type: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== occlusionMesh ===== | ===== occlusionMesh ===== | ||
Set path of occlusion mesh resource to use. | Set path of occlusion mesh resource to use. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
* Expected File Type: '' | * Expected File Type: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== audioModel ===== | ===== audioModel ===== | ||
Set path of audio model resource to use. | Set path of audio model resource to use. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: string | * Type: string | ||
* Default Value: empty string | * Default Value: empty string | ||
* Expected File Type: '' | * Expected File Type: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== renderEnvMap ===== | ===== renderEnvMap ===== | ||
Set if component is rendered in environment maps. | Set if component is rendered in environment maps. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: true | * Default Value: true | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== affectsAudio ===== | ===== affectsAudio ===== | ||
Set if component is affecting audio. | Set if component is affecting audio. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: true | * Default Value: true | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== hintMovement ===== | ===== hintMovement ===== | ||
Set movement hint. | Set movement hint. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: enumeration | * Type: enumeration | ||
* < | * < | ||
Line 90: | Line 94: | ||
</ | </ | ||
* Default Value: '' | * Default Value: '' | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== enableGI ===== | ===== enableGI ===== | ||
Set enable GI in graphic module if supported. | Set enable GI in graphic module if supported. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: boolean | * Type: boolean | ||
* Default Value: true | * Default Value: true | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== hintGIImportance ===== | ===== hintGIImportance ===== | ||
Set GI important hint. Value is in the range from 0 (very unimportant) to 4 (very important). This hint can be used by the graphic module to improve performance by excluding components with a GI important below a user chosen threashold. | Set GI important hint. Value is in the range from 0 (very unimportant) to 4 (very important). This hint can be used by the graphic module to improve performance by excluding components with a GI important below a user chosen threashold. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: integer | * Type: integer | ||
* Default Value: 4 | * Default Value: 4 | ||
* Restriction: | * Restriction: | ||
- | * Example (*.deeclass) <code xml>< | + | * Example (*.deeclass) <code xml>< |
===== textureReplacements ===== | ===== textureReplacements ===== | ||
Set texture replacements. | Set texture replacements. | ||
- | * Full name: '' | + | * Full name: '' |
* Type: map | * Type: map | ||
* Default Value: 4 | * Default Value: 4 | ||
Line 139: | Line 143: | ||
</ | </ | ||
- | ===== Events ===== | + | ====== Events |
This behavior has no events. | This behavior has no events. | ||
Line 149: | Line 153: | ||
====== Optional Behaviors ====== | ====== Optional Behaviors ====== | ||
- | This behavior does support these optional behaviors: | + | |
- | | + | |
====== Persistency ====== | ====== Persistency ====== | ||
Line 212: | Line 215: | ||
| | ||
<!-- adding the component will detect the previously added collider and use it --> | <!-- adding the component will detect the previously added collider and use it --> | ||
- | < | + | < |
+ | <!-- optional: set layer mask as list of bits to set. default is ' | ||
+ | | ||
+ | <string name=' | ||
+ | |||
+ | <!-- optional: set render env map layer mask as list of bits to set. default is ' | ||
+ | which means BaseGameApp.WorldLayerBit.envmap . if ' | ||
+ | true this layer mask is OR combined with ' | ||
+ | <string name=' | ||
+ | |||
+ | <!-- optional: set audio layer mask as list of bits to set. default is ' | ||
+ | means BaseGameApp.WorldLayerBit.audio . if ' | ||
+ | true this layer mask is OR combined with ' | ||
+ | <string name=' | ||
+ | |||
+ | <!-- set element properties. omit property prefix if used inside behavior tag --> | ||
+ | <string name=' | ||
+ | </ | ||
</ | </ | ||
</ | </ | ||
Line 222: | Line 242: | ||
< | < | ||
<!-- no collider is present yet so component will not use any collider --> | <!-- no collider is present yet so component will not use any collider --> | ||
- | < | + | < |
+ | ... | ||
+ | </behavior> | ||
| | ||
< | < |