Hello.
I have tried to start using Visual Effect, but the VFX do not show up and I get the following error message .
Shader error in 'Hidden/VFX/New VFX/System/Output Particle Quad': undeclared identifier GetWorldToObjectMatrix'at/Unity/Sandbox02_21/Library/PackageCache/[email protected]/Shaders/VFXCommon.hlsl(87) (on d3d11)
[New VFX] [System (1)] Initialize Particle.compute: Kernel at index (0) is invalid
[New VFX] [System] Update Particle.compute: Kernel at index (0) is invalid
[New VFX] [System] CameraSort.compute: Kernel at index (0) is invalid UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
The operation I performed is as follows.
0. Create a project with a normal 3D template.
- Install
UniversalRP 11.0.0
from PackageManager. - Install
VisualEffectGraph 11.0.0
from PackageManager. - Create a new VFX file (
Create
→Visual Effects
→Visual Effect Graph
) in the Assets folder. - D&D the created VFX to Hierarchy.
- Play the scene. The above error message is output.
How can I create and run the VFX correctly?
The version of Unity is 2021.1.0b10
.
Create>Rendering>URP>Pipeline Asset(Forward Renderer) <--- I don't have these...
– ClausewitzThen install Universal Render Pipeline into an existing Project via Package Manager: Universal RP. https://docs.unity3d.com/Packages/[email protected]/manual/InstallURPIntoAProject.html
– ErskineMuch appreciated, worked perfectly after wandering around multiple threads.
– Mundayworked, thanks!
– Heavensent