Hello.
Is there a way to change variables in a script with VFX?
Declare what variable means. I assume you mean change value from inside the graph.
PlayerPosition property? No
Position attribute? Yes
What I meant was, is there a node in VFX or something I could attach to the first picture that can be used to affect a script
It’s not possible. The problem is VFX is running on GPU with compute shader and there is no way to send event back to C# like this. There is also no readback or anything that could allow to retrive simulation data, so sadly there is no way to implement it this way. The only available interaction is CPU event, but it runs only during initialiation.