- Home /
how to make scripts show gizmos in the Gizmos menu?
i have a script with offset and size parameters. But i cannot find the gizmos checkbox in the gizmos menu. it only shows icon. just like below.
i want this can be checked , i can see the green outline for the size in the scene view, and then edit it.
can anyone help?
Answer by AskCarol · Dec 11, 2019 at 03:18 PM
In order for gizmos to appear, there are certain criterias that need to be met:
A. The Recently Changed section controls the visibility of the icons and gizmos for items that you’ve modified recently. It appears the first time you change one or more items. Unity updates the list after subsequent changes.
B. The Scripts section controls the visibility of the icons and gizmos for scripts that:
Have an icon assigned to them (see documentation on Assigning icons).
Implement the OnDrawGizmos function.
Implement the OnDrawGizmosSelected function.
Your answer
Follow this Question
Related Questions
Which is best for optimization 1 Answer
Input Field Characer Validation not changing 0 Answers
Enemy AI script works Only on 1 Player From my 2Player Game 0 Answers
Bullet in editor does not behave the same in build. 1 Answer
ANR details 0 Answers