unity – How one can set ordering between Sprites and Photos?

Bymarco_rocchinotti@hotmail.com

Aug 6, 2024 #a nice picture. ScoreUI is aimed to show current score, #above the ScoreUI. So when it is spawning to the map, #and drops to maps in a stable road moving on Y axis. Obviously, #and learned about Sorting Layers, #Background and ScoreUI. Background is just an image for background, #but it does not work on this problem because "as official Unity YT video" introduces, #but on Background. To more precise, #but should be on Background itself. Therefore, #but your one line comment probably can save me a day. Thanks in advance. Note: I tried adding Sprite Group to Images to provide Sorting Layer attribute. Did not work. I tried ScoreUI Z axis to be 10, #did not work. I tried to change the Render Mode of Canvas to World Space (previously, #from a single prefab. This prefab has a sprite, #Game, #Game Development, #gamewarp, #Gaming, #I instantiate lots of GameObjects, #I need to set the order within different types. Any help? I am sure this is a basic issue, #images, #it did not work., #it is for Sprites. However, #it should be under ScoreUI, #it shouldn't be shown on ScoreUI, #it shouldn't be visible. I searched for it, #it was Screen Space - Camera) as suggested in this answer Another GameDev.StackExchange Question, #naturally. That game object spawns outside of the camera, #ordering, #particularly at Y axis, #return a list of comma separated tags from this title: Assume that you have an Empty Object, #Set, #sprites, #think of it as rain. Rain starts very above from the screen, #time left etc. It is placed at top of the Background. In this game, #Unity, #video game, #Video games, #when rain moves in the ScoreUI area, #which holds a Canvas. This canvas has 2 Image component, #while others are Z=0

[ad_1]

Assume that you’ve got an Empty Object, which holds a Canvas. This canvas has 2 Picture element, Background and ScoreUI. Background is simply a picture for background, a pleasant image. ScoreUI is aimed to indicate present rating, time left and many others. It’s positioned at prime of the Background.

On this recreation, I instantiate plenty of GameObjects, from a single prefab. This prefab has a sprite, naturally. That recreation object spawns outdoors of the digicam, significantly at Y axis, above the ScoreUI. So when it’s spawning to the map, it must be below ScoreUI, however on Background. To extra exact, consider it as rain. Rain begins very above from the display, and drops to maps in a secure street transferring on Y axis. Clearly, it should not be proven on ScoreUI, however must be on Background itself. Subsequently, when rain strikes within the ScoreUI space, it should not be seen.

I looked for it, and discovered about Sorting Layers, nevertheless it doesn’t work on this drawback as a result of “as official Unity YT video” introduces, it’s for Sprites. Nevertheless, I have to set the order inside differing kinds.

Any assist? I’m positive this can be a primary difficulty, however your one line remark in all probability can save me a day. Thanks upfront.

Notice: I attempted including Sprite Group to Photos to supply Sorting Layer attribute. Didn’t work. I attempted ScoreUI Z axis to be 10, whereas others are Z=0, didn’t work. I attempted to vary the Render Mode of Canvas to World Area (beforehand, it was Display Area – Digital camera) as advised on this reply One other GameDev.StackExchange Query, it didn’t work.

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *