Description
The Set Blending Mode behavior will change the graphic blending mode of your object. This will change how the graphic appears based on other graphics behind or on top of your selected object.
This behavior will Trigger an event immediately when executed. As soon as the behavior is executed it will make change to your new blending mode.
Properties
Triggers Immediately
Object A |
This is the object that will have the new blending mode. By default the current object is selected, but you can tap the graphic and choose any other object in your scene. |
Blending Mode |
There are 5 different modes to choose from. Normal: Your object appears exactly as you designed it. Dodge: Your object will be used to lighten anything behind it. This is a great effect to simulate glowing lights like street lamps for flashlights. Use this for object that are projecting light. Burn: This is the opposite of Dodge. It will darken anything behind your object. Screen: Similar to Dodge, this will lighten the colors of anything behind your object. Disable Blending: As the title suggests, this one removes all blending options. This includes any transparency or alpha channels for your object. You typically only want to use this if you need to disable transparency and increase performance. |
Change Secondary |
If this toggle is enabled, it will change the blending mode of the secondary graphic of the object instead. For health bars, this will affect the bar of the object and for joysticks, this will affect the joystick ball of the object. |
Outputs
Object ID |
This outputs the Object ID. |
Examples
If you want to create a street light in your scene, you can create a light "cone" graphic then set the blending mode to dodge. This will make any object that is behind your light cone to appear brighter. Note that this relies on the color of your light cone as well. Feel free to experiment with different colors and blending modes to get your desired effect.
0 Comments