Visual Effect Graph does not work with URP

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/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 (CreateVisual EffectsVisual 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.

1 Like

Solved it myself:

  1. Go to ProjectSettingsPlayerOtherSettings and change ColorSpace to Linear.
  2. CreateRenderingURPPipeline Asset(Forward Renderer) in any folder in the Project window.
  3. Attach the created file to the top item in ProjectSettingsGraphics.
  4. Reimport the VFX file.
1 Like

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

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?

I had the following error at first!
Shader error in ‘Hidden/VFX/…’ redefinition of ‘PackHeightMap’

This error has been resolved via the link below.

( I’ll leave a link because someone with the same error as me can read it. )

Then, the above error occurred more than 999 times.
I solved the error with the solution you suggested.
Thank You, very very very much :slight_smile:

1 Like

I had the following error at first!
Shader error in ‘Hidden/VFX/…’ redefinition of ‘PackHeightMap’

This error has been resolved via the link below.

( I’ll leave a link because someone with the same error as me can read it. )

Then, the above error occurred more than 999 times.
I solved the error with the solution you suggested.
Thank You, very very very much :slight_smile:

Bendede her yer aynı renk oldu ama çözemedim. Lütfen açıklama yapar mısınız ?