Reflection would be the very last resort I would ever take. I don't want to have to disable their Gizmos in the SceneView settings one by one on a per project basis! Even the provided script seems like a vast hackaround. But imagine I have like 25 different modules and various different icons each. This is not happening using the approach I use currently with the Gizmos folder!īecause this was suggested in this answer: I also know that I could do that and turn them off via the Gizmos settings of the SceneView. in this post or here and even by Unity - Assign Icons ) or using OnDrawGizmos or DrawGizmo. This is caused by either selecting the icon for this script via the Inspector as in Figure 5 (as allways suggested e.g. Show the Icon also in the SceneView for all GameObjects having those components attached (e.g. Preferably scripted and reusing ONE single icon file instead of having the same icon in multiple differently named files.Īnd/or also Where/How are those icons defined for the scripts coming from the PackageManager? Is there any better way to have those icons for scripts/components? so apparently the icon is configured somehow else for them. But also external Packages coming from the new PackageManager have built-in icons and sometimes a Gizmos folder but it is not following the above naming rule. Most Unity build-in Behaviours and Components have a unique icon. Also if I rename a class I always have to rename the according icon file as well. This makes the project/UnityPackage unnecessarily huge. However, I wondered if there is really no better way having to have a unique Icon file for each script. and until now the only way how I could achieve that (having in mind the below section What I definitely do NOT want). Figure 1)įor each component/class that shall have the icon I have an accroding Icon file in the folderĪnd in the Import Settigns set TextureType to Editor GUI and Legacy GUI Figure 2 and Figure 3) and the ProjectView (e.g. Use a custom icon for specific components/scripts in the Inspector (e.g. I know this was asked a lot of times probably.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |