I was looking for tutorials or sth on google and youtube on this but didnt find any.
I want to create a particle effect that connects 2 GameObjects. Those GOs will not always have the same distance, so I must make the particle system somehow variable. But what is the best way to do this?
And btw: is there a way to easily scale particle effects with multiple nested particle effects?
I’ve done this several times via scaling and rotation.
In your script you’ll need (rename at your leisure):
fPos Vector3 ;; Particle is coming FROM, give this some centered location like a specific “particle” gameobject position
tPos Vector3 ;; Same as fPos, but where you want it to go TO.
ftDist Float ;; The distance in worldspace between the two positions
Now create a particle that displays your graphic. Find its distance unit, be it 1, 10, 100, whatever.
Instantiate that particle on top of fPos, rotate it towards tPos, scale it to match, and play the effect.