Can no longer use Render Textures in Sample Texture 2D node in Unity 2022?

Not sure if my Unity 2022 settings need tweaking, but I can’t seem to use any render textures as input for the Sample Texture 2D node in VFX Graph. In Unity 2020 and 2021, I am able to use render textures with this node–In fact, the VFX graph meteorite sample from Unity makes use of this. Has Unity removed this feature?

9442997--1324877--upload_2023-10-31_14-46-23.png

Hi,
This capability has not been removed, it seems you found an issue.
A bug entry has been created, here is the link to track its progress:

Thank you for your feedback.

1 Like

For anyone on 2022.3.X as a hotfix you can manually edit meta data of a VFX graph to link required render texture. Just look up render texture’s meta data with guid, fileFormatVersion and mainObjectFileID and put those values into changed field on a VFX graph.

What field is that? Just put regular 2d texture in required slot and see in version controll system what line has changed. This is the one you need to put data from render texture meta data.

Hope it helps.

1 Like

I’ve also found a simple temporary solution. Just use an exposed texture field property in VFX graph and then select the render texture inside the unity inspector.

9473071--1331524--upload_2023-11-15_9-16-35.png

9473071--1331521--upload_2023-11-15_9-16-1.png

1 Like

Hello,
Thank you for providing a workaround!
Hopefully the fix should be available soon.

Hello,
The fix has landed and will be available with Unity 2022.3.15f1.