Problem with Event Attributes.

No matter what I do, I can’t seem to get anything to work. I just want to set the spawn location of my particles. The documentation on this is legendarily poor, I’ve even read the ebook and there’s just barely anything.
I’ve tried:

  • passing it in as a custom attribute and setting it in the Initialise event.

  • passing it in as a custom attribute and setting it in the Spawn event.

  • passing it in as the position attribute.

  • passing it in as the position attribute and inheriting from source in my init.

My code looks like this:
VFXEventAttribute eventAttribute = pullVfx.CreateVFXEventAttribute();
eventAttribute.SetVector3(“position”, hitPoint.Value);
pullVfx.SendEvent(“PullTrigger”, eventAttribute);

And my vfx graph looks like this:

Hello,

It seems like there is an issue with your uploaded screenshot.

Indeed, this information is difficult to find in documentation.The starter point is probably SendEvent API documentation or C# Component API page.

Meanwhile, you can find a simple boiler plate in @Qriva “how to” page:

Additionally, there is more content about direct link in this thread .

Hi, reimporting the visual effect graph package seems to have solved my issue. Thank you for the reply. Qriva’s resource is indeed very useful, as is the visual effect ebook (which seems to have a lot of content that would be useful in the docs). It would be nice if the vfx graph could also be cleaned up, a lot of stuff just isn’t packaged into a nice UX, especially the whole attributes system. There’s a big lack of tooltips. You can also connect “Get Source Attribute” nodes to the “Spawn” section which causes a huge number of errors in the console like “Error: code 492 not found”.

P.S. I am curious, is there no redirect node in vfx graph? I’d assume shader graph and vfx graph are built on the same foundation, it’s weird it’s not in vfx graph but is in shader graph.