- Home /
parent child relation btwn gammeobject and a ui canvas and ui text positioning problem
I am making enemy kill score display i.e.,when i kill an enemy scores displays above it.For this i stored my ui text and canvas as a child of a empty game object and instantiating this empty game object at the position where my enemy is destroyed
My problem is i can see my enemy death score at a single point in my game its not according to enemy death position.
plz help me in this issue
Answer by Hunterb541 · Jan 09, 2018 at 10:27 AM
make sure the text displaying the enemy kill score is a child of the canvas and that the text is within the boundaries of the canvas ,Make sure that the text displaying the information is below the canvas........And if it is make sure its within the boundaries of the canvas
I had done what you have said but it is not still working the text is displaying correctly. but it should display at various points in the scene where enemy dies but it is only displaying at only one point in the scene
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
How to I make ui in world space look at the player? 2 Answers
Making canvas a child of another gameObject 2 Answers
Getting variable data from Parent 1 Answer
How do I find a child object in a hierarchy of children? 1 Answer