- Home /
Visual Effect Graph does not work with URP.
Hello.
I have tried to start using VisualEffect, 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/com.unity.visualeffectgraph@11.0.0/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.
1.Install UniversalRP 11.0.0 from PackageManager.
2.Install VisualEffectGraph 11.0.0 from PackageManager.
3.Create a new VFX file (Create>VisualEffects>Visual Effect Graph) in the Assets folder.
4.D&D the created VFX to Hierarchy.
5.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.
Answer by sh0ou · Mar 12, 2021 at 05:31 AM
Self solved.
1. Go to ProjectSettings>Player>OtherSettings and change ColorSpace to Linear.
2. Create>Rendering>URP>Pipeline Asset(Forward Renderer) in any folder in the Project window.
3.Attach the created file to the top item in ProjectSettings>Graphics.
4.Reimport the VFX file.
Create>Rendering>URP>Pipeline Asset(Forward Renderer) <--- I don't have these...
Then install Universal Render Pipeline into an existing Project via Package Manager: Universal RP. https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.2/manual/InstallURPIntoAProject.html
Much appreciated, worked perfectly after wandering around multiple threads.
Answer by AbandonedCrypt · Mar 11, 2021 at 10:53 AM
You are using one of the earliest beta versions of Unity 2021, errors are to be expected. Beta versions of unity should generally not be used productively.
When working with unity betas, you should at least have read through the Unity Beta testing guide
Thank you for your answer. I tried it with Unity 2020.2.7f1, but the same thing happened and the VFX didn't work properly.
yes i curretly use 2020 version i have same error, now i'm trying this man's solved answer. I will be back
Answer by bg_argonaut · Jun 01 at 05:10 PM
When I made this step: Attach the created file to the top item in ProjectSettings>Graphics. - the whole of my world (every object and character and terrain) go to be in magenta colour. How can I fix it?
Your answer
Follow this Question
Related Questions
Invalid Il Code Error (IL_000f: call 0x0a00000d),Invalid Il code Error (IL_000f: call 0x0a00000d) 0 Answers
Different Spectrum Data Displays 0 Answers
Changing the layer of a Visual Effect from the Visual Effects Graph Package 2 Answers
Difference between SDF and Point cache bake tool (VFX Graph) 0 Answers
VFX not showing in editor window 1 Answer