Spawn a sprite as a child of a sprite (on top of sprite)
I'm having real issues doing something I think should be quite easy so I am probably doing something very wrong!
I have a sprite on top of a space background image which is sitting within a canvas which the camera is fixed over and can be moved around. This is the main scene.
I am at the point where I want the player to be able to add a room to the station.
This basically consists of another sprite which can slot into a space on top of the station sprite.
I can add the sprite to the image and see it on top of the station in the sprite view but I cannot see it in the game view while the game is running. I have tried:
Having a canvas which a gameoject can be Instantiated on and then setting the image to the new room image.
Adding the sprite to the base station sprite, making sure they are on the same layer and then changing the sorting layer and order in layer and I don't think I have done this properly.
The room sprite is a child of the station and I just cannot get it to show in game. Can anyone offer any suggestions as to things I may have missed?
Your answer
Follow this Question
Related Questions
Animated Sprites blocked by Canvas 1 Answer
2D RPG 3/4 top-down - Rendering order and elevation 0 Answers
Pre rendered game (Resident evil Final Fantasy etc) 0 Answers
2D animation recycle with exchanging gear and sprites 0 Answers
How Can I Get My Sprites To Overlay My Quads?,I Can't get my sprite to oberlay the quad? 1 Answer