Hello.
I want to create strategy game. When player clicks place in plane, I want to image appear at this place.
I have created canvas with world space and attached camera to its attributes. Then I have rotated and placed it so my plane and canvas are in same position.
Question: How to make some image appear in place of canvas where I click with my mouse?
Kiwasi
2
Your in luck. I just recorded a tutorial on a very similar concept. In essense you want to create your image as a prefab then Instantiate it at the mouse position.
I have found solution:
RectTransform rectTransform = pointer.GetComponent<RectTransform>();
rectTransform.position = position;
Since my Canvas is World Space, I just needed to set position depending on raycast hit.