Unity tip - OnDrawGizmosSelected (Patreon)
Published:
2022-06-07 07:42:14
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
You can use 𝗢𝗻𝗗𝗿𝗮𝘄𝗚𝗶𝘇𝗺𝗼𝘀𝗦𝗲𝗹𝗲𝗰𝘁𝗲𝗱() method from MonoBehaviour class to show a gizmo only 𝘄𝗵𝗲𝗻 𝘁𝗵𝗲 𝗼𝗯𝗷𝗲𝗰𝘁 𝗶𝘀 𝘀𝗲𝗹𝗲𝗰𝘁𝗲𝗱.
It might be useful when you want to create some tools for your project that you will use in the editor :)
Take care!
-Peter
Files
Previews only