Currently I have a 2D game object (Cannon) that contains another UI object (Slider) as a child…
When I start the game in Play mode, The Cannon appears correctly in its right position as supposed.
However the child Slider is always centered in the screen.
Shouldn’t the slider inherit its position from its parent? so it appears relative to it
My slider is in a Canvas… And the Canvas is a child of the Cannon game object (Prefab)…So when the Cannon game object is spawned the slider should appear beneath it.
However, what happens is that the Cannon is spawned in the right position but the slider is always centered in the screen (Not below the Cannon)
Just so we’re totally clear, the Canvas component is indeed set to “World Space”, and it looks correct if you just drag it out into the scene? It’s possible the event camera needs to be assigned after instantiation.