This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dragengine:modules:dragonscript:behavior_outline [2020/05/24 01:11] – [Element Class Example] dragonlord | dragengine:modules:dragonscript:behavior_outline [2020/05/24 01:15] – [API Documentation] dragonlord | ||
---|---|---|---|
Line 131: | Line 131: | ||
Since DragonScript Module Version **1.1** | Since DragonScript Module Version **1.1** | ||
+ | ====== Use Cases ====== | ||
+ | * Highlight objects player can interact with. Combine this with [[behavior_lookedat|ECBehaviorLookedAt]] using a listening to show/hide the highlight if the player looks at the object. | ||
+ | * Use for Toon-Rendering to draw a black outline on all objects. | ||
====== Element Class Example ====== | ====== Element Class Example ====== | ||
Line 145: | Line 148: | ||
| | ||
- | // set parameters of outline behavior to red color with 0.0075 thickness using a custom " | + | // set parameters of outline behavior to red color with 0.0075 thickness |
+ | // | ||
| | ||
| |