Answer the question
In order to leave comments, you need to log in
How to add a component to the editor?
I ran into a problem with displaying layers, for example, for some reason the background always overlaps prefabs, on 3d prefabs the text is always below, and then I came across an article that describes how to add a SortingLayer component to any element
https://gist.github.com/nickgravelyn/7460288
I added it as everything was described, created these 2 scripts and placed them in the Editor folder, but I can’t add it to the object, I can’t see it, tell me why it’s not visible?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question