Z
Z
Zefirot2021-05-21 11:44:11
Unity
Zefirot, 2021-05-21 11:44:11

How to add a layer to an image?

I have several prefabs, their design was originally like this

canvas (environment)
-- Object
---- Image
---- Text

After it became necessary for me to set a specific layer for each, I read that they then need a separate canvas and the design became like this
canvas (environment)
-- Object
---- canvas
------ Image
------ Text

layers are set and so far no problems (sort of), but how will it work when there are more than a hundred or even thousands of them, is it right to set them like that?
I emphasize that these prefabs are created statically (at the beginning, with layer 1) and dynamically (during the game, with layer 0, they fly to the target and are destroyed).
Is it correct to use them this way or should they be used differently? (otherwise everyone has their own canvas...)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question