Use Bling to create sparkling effects using both the front and back cameras. Bling offers more flexibility when making visual adjustments.
Download this file to following along:
Add a Bling Object
Add a Bling object by clicking the Add button [+] > Post Effect > Bling.
When a Bling object is added, you can find the Bling component in the Inspector panel by default.
Import a Texture
Import your prepared assets by clicking the Add button [+] > Import > From Computer in the Inspector panel.
It is recommended that your imported assets are 300 x 300 px and a PNG file with alpha channel and monochrome color.
Apply Textures to a Bling Texture
The Bling component has a built-in Bling texture by default. Click Add texture in the Inspector panel to add another texture. A Bling component supports up to three textures.
Click the X icon to remove the respective texture.
Configure a Bling Component
Select the Bling object in the Hierarchy panel to see the Bling component in the Inspector panel.
You can also add a Bling component by clicking + Add Component > Post Effect > Bling in the Inspector panel.
Texture: Choose a texture from the Assets picker. You can add up to three textures by clicking Add texture.
Texture Opacity: Use the slider to set the opacity to a value between 0 and 1, with 0 being transparent and 1 being opaque (unless the edges are feathered). The default value is 1.
Blend Mode: Determines different calculations used to blend color and texture. The default blend mode is Linear Dodge.
Brightness: Controls the brightness of the sparkling effect. Use the slider to set the brightness to a value between 0, which is the original texture brightness, and 1. The default value is 0.7.
Intensity: Controls how closely packed the sparkles are from each other. Use the slider to set the intensity of the sparkles to a value between 0 and 1, with 0 being the lowest intensity and 1 being the highest intensity. The default value is 0.7.
Size: Scale the size of the sparkles. Use the slider to set the size of the sparkles to a value between 0 and 1, with 0 representing no sparkles and 1 representing the most sparkles. The default value is 0.7.
Scale Randomness: Scale some randomly selected sparkles up and down different sizes. Use the slider to set the scale of size randomness of the sparkles to a value between 0 and 1, with 0 representing a consistent size and 1 representing the most inconsistent sizes. The minimum original texture scale is x0.1 while the maximum original texture scale is x1.5. The default value is 0.7.
Speed: The refresh speed of each sparkle. Use the slider to set the speed to a value between 0 and 1, with 0 being the slowest and 1 being the fastest. The default value is 0.7.
Color: The texture(s) will be tinted to the selected color. Two colors are supported (Color 1 and Color 2). When two different colors are applied, each sparkle will randomly use of one of the two selected colors.
Occlude Face: If left unselected (default), the Bling effect will be applied to the full screen, including the detected face (only one face). If selected, the effect will not appear over the detected face.
Use Multiple Blings
The 2D object render order is directly tied to the order that the 2D objects appear in the hierarchy under the canvas. The lower a 2D object appears in the Hierarchy panel, the later it will be rendered.
Learn more about the render order.