I’m trying to figure out how to get my particle effect object positioned right on top of a canvas image object. I have been unable to find the answer, most people want to position a canvas object to 3D object, but I need to do the opposite.
How do I find the actual Vector3 position of my canvas image object?
Never mind, the solution was just as simple as it should have been.
Vector3 pos = RectTransform.position;
I was wondering why do I keep having so much trouble with this, no matter what I tried. The problem I had was that the particle system was a child of another game object, and I was moving the parent. The Z-position of the child was not 0, which cause the particles to appear in wrong places when using orthographic camera. -_-