Learning Templates Sample Content
The Learning Templates sample is a collection of VFX assets designed to help you learn about VFX Graph concepts and features. This collection will be updated based on community feedback and new features. This page provides instructions on how to install the sample, a brief overview of the content, and how to make the most of it.
Requirements
This sample content is compatible with both URP and HDRP projects, for VFX Graph versions 16.0 and later.
Installing the VFX Learning Templates
To install this sample, first install the Visual Effect Graph, then:
Go to Window > Package Manager.
From the Package list view, select Visual Effect Graph.
If it is not there:
- From the Packages drop-down menu, select Unity Registry or In Project.
- Go to Edit > Project Settings > Package Manager
- In the Advanced Settings drop-down, enable Show Dependencies. Visual Effect Graph should now appear in the Packages list view.
In the main window that displays the package's details, find the Samples section.
To import the sample into your project, click Import. This creates a folder called
Samples
in your project, and imports the sample you selected into it. Unity imports any future samples into this folder.
VFX Learning Templates overview
To start exploring the content of this sample:
- In your Project window, navigate to the sample Scenes folder:
- Depending on the Render Pipeline used by your project, either select the HDRP or URP version of the VFX Learning template scene.
- Right-click the scene and select Open the Scene.
Scene overview
Hierarchy
Sample Showcase:
The
Sample_Showcase
GameObject has a script called Samples Showcase, which contains a custom Inspector and a dedicated window. Select this GameObject to view information and useful links relative to each VFX in the Inspector.VFX Prefabs:
- Each VFX instance is part of a prefab with a display mesh and some text information.
Scene Main Camera:
- This camera is used for the game view, and its viewpoint is controlled by the Showcase script. In Play mode, you can freely move the camera around.
Views
Scene View:
- You can use the Scene view to move around freely to find a VFX that interests you. Note that some visual effects require the Editor to be in Play mode.
Game View:
- You can use the Game view to focus on each VFX separately, via the Sample Showcase actions that control the camera. If you prefer to explore freely, you can use the Main Camera.
Inspector
Sample Showcase window:
- The Sample Showcase window displays useful information and documentation related to each VFX. You can also use this window to navigate between the various visual effects, and use the quick-access links to open them.
Inspecting a VFX
Each VFX covers a feature or aspect of VFX Graph, and illustrates what you can do with those features. Each VFX is accompanied by documentation and embedded explanations to help you in your learning journey.
Sample Showcase window
To open the Sample Showcase window:
- In the Hierarchy, select the Sample Showcase GameObject.
- In the Inspector, select Open in window.
Image key:
- Drop-down list and button to select which VFX to display in the Sample Showcase window.
- Links to either highlight the VFX in the Hierarchy, or open it in the VFX editor.
- Description of the current VFX, and information about the feature or key aspect illustrated by the VFX.
- The feature or key aspect of the VFX, with links to related documentation.
Opening a VFX asset
To open a VFX asset, you can do one of the following:
From the Project window:
- Navigate to the sample project's
VFX
folder:
Assets\Samples\Visual Effect Graph\17.xx\Learning Templates\VFX
- Select the desired VFX assets.
- Right-click the selected assets, and select Open.
- Navigate to the sample project's
From the Hierarchy window:
- Open the VFX Learning Templates scene.
- In the Hierarchy window, select the prefab that you're interested in.
- Unfold the Prefab hierarchy:
Prefab
>TurntableWithBackdrop_VFX
>VFXGameObjectName
- Select the VFX GameObject.
- In the Inspector, find the Visual Effect component.
- Select Edit.
From the Sample Showcase window:
- Open the Sample Showcase window.
- Use the drop-down menu or arrow button to select the desired VFX.
- Select Open VFX.
From the Template window:
- Open the Sample Showcase window.
- Use the drop-down menu or arrow button to select the desired VFX.
- Select Open VFX.
Inside a VFX
The best way to learn and understand how a VFX has been made is to look inside. Take a look at the different parts of the Graph and the embedded notes.