Question by
Estecka · Sep 27, 2017 at 08:07 AM ·
inspectorsorting layers
SortingLayer Dropdown in Inspector
I'm trying to have a dropdown show on a custom component, to let me pick a sorting layer just like you would on the SpriteRenderer.
I assumed I'd simply need to declare a public SortingLayer
, but this doesn't show anything in the inspector. What type should I declare then?
Comment
Your answer

Follow this Question
Related Questions
How do you make a trail renderer adhere to the Sorting Layer settings? 0 Answers
Preprocessor conditional code for cleaner inspector options 1 Answer
Creating game objects from inspector 0 Answers
How do I bind the value of a public variable from the inspector to some other variable/constant? 0 Answers