Creating a New Effect

Now that your project is setup, its time to create your first effect! This guide will walk you through the process of creating a new effect, from setting up a player in your scene to designing a custom effect profile with layers.


1. Add a Lumen Effect Player to Your Scene

The Lumen Effect Player is the component that controls and displays your light effects in the scene.

Steps:

  1. Right-click in the Hierarchy or use the top menu:

    • Go to GameObject → Effects → Empty Lumen Player.

  2. A new GameObject named Lumen Effect Player will appear in your scene.

  3. With the player selected, you’ll see the custom Lumen inspector in the Inspector window.


2. Create a New Lumen Effect Profile

The Effect Profile is a ScriptableObject that stores all the settings and layers for your effect.

Steps:

  1. In the Project window, right-click in your desired folder.

  2. Select Create → Lumen → Effect Profile.

  3. Name your new profile (e.g., My Lumen Effect).


3. Assign the Effect Profile to the Player

  1. Select your Lumen Effect Player in the scene.

  2. In the Inspector, find the Profile field.

  3. Drag your new effect profile into this field, or use the object picker to select it.


4. Add and Configure Layers in the Effect Profile

Layers define the visual style and behavior of your effect. Each layer can add flares, rays, lights, or other stylized elements.

Steps:

  1. Select your Effect Profile asset in the Project window.

  2. In the Inspector, you’ll see the Lumen Effect Profile Editor.

  3. Click Add Layer to add a new layer.

  4. Configure the properties of each layer. See the documentation for individual layers for a description of what each setting does!

  5. You can add multiple layers and reorder or remove them as needed.


5. Adjust Player Settings

With the Lumen Effect Player selected, you can tweak:

  • Scale: Overall size of the effect.

  • Brightness: Intensity of the effect.

  • Color: Tint of the effect.

  • Update Frequency: How often the effect updates.

  • Initialization/Deinitialization Behavior: How the effect appears/disappears.

  • Fading Time: Duration for fade-in/out (if enabled).


6. Preview and Iterate

  • As you adjust settings and layers, changes are reflected in real-time in the Scene view.

  • Use the Inspector to fine-tune each property.

  • You can duplicate and modify profiles for different effects.


Troubleshooting

  • If your effect does not appear, ensure the profile is assigned and contains at least one enabled layer.

  • Check that your project and URP settings meet the Lumen requirements (see the Lumen Setup window for guidance).

Last updated