How to move a 3D object to canvas object position?
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?
Answer by Pinsukka · May 05, 2018 at 09:57 PM
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. -_-
Your answer
![](https://koobas.hobune.stream/wayback/20220612162058im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I get the Bounds of a canvas? 0 Answers
Moved GameObject under Canvas (Parent), transform.position vector coordinates mismatch 0 Answers
How To Duplicate Canvas To Follow Player 0 Answers
place an object between two vectors? 1 Answer
How do I return a float value between 1 and -1 based on a camera's rotation? 1 Answer