Z
Z
Zimaell2020-12-29 13:51:01
Unity
Zimaell, 2020-12-29 13:51:01

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

1 answer(s)
G
GFX Data, 2020-12-30
@ShockWave2048

You only need to add SortingLayerExposed. The custom editor should pull itself up.
And it is better to remove SortingLayerExposed from the Editor folder, this is a normal component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question