docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Visual Effect (Component)

    The Visual Effect Component creates an instance of a Visual Effect in the scene, based on a Visual Effect Graph Asset. It controls how the effect plays, renders and let the user customize the instance by editing Exposed Properties.

    How to create a Visual Effect

    To create a Visual Effect:

    1. Add the Visual Effect component using the Add Component menu in the Inspector or navigate toi Component > Effects > Visual Effect
    2. Click the New Button, next to the Asset Template property Field.
    3. Save the new Visual Effect Graph asset.

    The visual effect graph window then opens the newly created asset.

    To create a complete Game Object that contains a Visual Effect Component, navigate to the GameObject menu, click Visual Effects and select Visual Effect.

    When you drag a Visual Effect Graph Asset from the project view to the scene view or hierarchy view it automatically creates a child Game Object with Visual Effect Component:

    • When dropped in the Scene View : In the center of screen in front of the camera.
    • When dropped in the Hierarchy under no Parent Game Object : At the origin of the world.
    • When dropped in the Hierarchy under a Parent Game Object : At the parent's transform.

    The Visual Effect Inspector

    The Visual Effect Inspector helps you configure every instance of a Visual Effect. It displays values only relevant to this particular instance.

    Item Description
    Asset Template Object Field that references the Visual Effect Graph Unity uses for this Instance.

    The New/Edit button allows you to create a new visual effect graph asset or edit the current one. When you click New/Edit, Unity opens the Visual Effect Graph asset and connects this scene instance to the Target Game Object panel.
    Random Seed An Integer Field that displays the current random seed used for this instance. The Reseed button generates a new random seed for this component.
    Reseed On Play Boolean setting that computes a new seed at random every time Unity sends the Play Event to the Visual Effect.
    Initial Event Name Allows Unity to override the Default Event name (string) sent to the component when it is enabled. (Default : OnPlay ).

    Rendering properties

    Rendering properties control how the visual effect instance will render and receive lighting. These properties are stored per-instance in the scene and do not apply modifications to the Visual Effect Graph.

    Item Description
    Priority Controls the Transparency ordering of the effect. This property only appears if the Project uses the High Definition Render Pipeline.
    Rendering Layer Mask This property functions differently depending on which render pipeline your Project uses.
    • High Definition Render Pipeline: Controls the Lighting Layer Mask if it is configured in the HDRP Asset.
    • Universal Render Pipeline: Determines which rendering layer this Renderer exists on.
    Reflection Probes Specifies how reflections in the Scene affect the Renderer. This property only appears if the Project uses the Universal Render Pipeline.
    Light Probes Controls the Use of Light probes to compute the Ambient Lighting of the Effect.
    Anchor Override (Visible Only using Blend Probes option for Light Probes) : Defines an alternative transform to compute the position of the probe sampling.
    Proxy Volume Override (Visible Only using Proxy Volume option for Light Probes) : Defines an alternative Light Probe Proxy volume in order to compute the probe sampling.
    Sorting Layer Specifies the Renderer's group among other SpriteRenderer components.
    Order in Layer Specifies the Renderer's order with a sorting layer relative to other SpriteRenderer components. See also Renderer.sortingOrder.

    Instancing properties

    Instancing properties control how the visual effect instance is used by the Instancing feature.

    Item Description
    Allow instancing Allow the Instancing feature to group this instance with others as a batch, to improve performance. Defaults to true.

    Properties

    The properties category display any Property that is defined in the Visual Effect Graph Blackboard as an Exposed Property. Every property can be overridden from its default value in order to customize the Visual Effect instance in the scene. Some properties can also be edited using Gizmos directly in the scene.

    Item Description
    Show Property Gizmos Toggles the display of the editing gizmos used to set up some exposed properties (Spheres, Boxes, Cylinders, Transforms, Positions). You can access each gizmo using its dedicated button next to its property.
    Properties All properties that have been exposed in the Visual Effect Graph Asset. You can edit these properties for this instance of the Visual Effect. For more information see Exposed Properties

    To access property values, edit them using the Inspector, use the C# API, or use Property Binders.

    The Play Controls Window

    The Play Controls window displays UI Elements that give you control over the currently selected instance of a Visual Effect. It is displayed in the bottom-right corner of the Scene View, when a Visual Effect Game Object is selected.

    The play Controls Window displays the following controls:

    • Stop (Button) : Resets the effect and set its state to paused.
    • Play / Pause (Button) : Toggles the paused state of the effect.
    • Step (Button) : Pauses the effect and simulates one frame.
    • Restart (Button) : Un-pauses the effect, resets it, and sends the default Play Event.
    • Rate (Int Slider) : Sets the play rate of the effect (in percent)
    • Set (Popup) : Sets a custom play rate of the effect from the menu.
    • Show Bounds (Toggle) : Toggles visibility of the bounds of the effect
    • Show Event Tester (Toggle) : Shows Event Tester Utility Window
    • Play() and Stop() Buttons : Sends the default OnPlay and OnStop event to the component.
    • (Optional) Gizmos (Popup) : Toggles the visibility of property gizmos.

    Editing Properties with Gizmos

    You can edit some properties using Gizmos in the scene. In order to enable gizmo editing, click the Show Property Gizmos button in the Inspector. Upon enabling property Gizmos, every property that can be edited using Gizmos will display Edit Gizmo buttons next to every property that can be edited using gizmos.


    Did you find this page useful? Please give it a rating:

    Thanks for rating this page!

    Report a problem on this page

    What kind of problem would you like to report?

    • This page needs code samples
    • Code samples do not work
    • Information is missing
    • Information is incorrect
    • Information is unclear or confusing
    • There is a spelling/grammar error on this page
    • Something else

    Thanks for letting us know! This page has been marked for review based on your feedback.

    If you have time, you can provide more information to help us fix the problem faster.

    Provide more information

    You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:

    You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:

    You've told us there is information missing from this page. Please tell us more about what's missing:

    You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:

    You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:

    You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:

    You've told us this page has a problem. Please tell us more about what's wrong:

    Thank you for helping to make the Unity documentation better!

    Your feedback has been submitted as a ticket for our documentation team to review.

    We are not able to reply to every ticket submitted.

    In This Article
    • How to create a Visual Effect
    • The Visual Effect Inspector
      • Rendering properties
      • Instancing properties
      • Properties
    • The Play Controls Window
    • Editing Properties with Gizmos
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)