- Home /
Set Camera icon per script
It is great that since 3.4 it is possible to manually select an icon for any GameObject. However, I would like to do this by script. OnDrawGizmos() works well if the object you want to apply your icon to does not come with a predefined one.
But what about, say, a camera? If you change the icon in the inspector by hand, it works. If you use OnDrawGizmos, both your defined icon and the default camera icon show up. I don't want to change dozens or even hundreds of camera icons by hand, so is there a way to do it by scriptand hiding the default one?
Your answer
Follow this Question
Related Questions
Why my Roguelike 2D graphics are naughty in devices? 1 Answer
Reuse Logger icons 0 Answers
Camera behavior the same as the unity editor has 2 Answers
Draw Camera to Editor Window 1 Answer
Why does Viking Village Water move with camera in Editor? 0 Answers