- Home /
Gizmos DrawIcon NOT located in Gizmos folder
ok i've been trying to add an Icon for a gameObject, that is NOT located in the Gizmos folder, but in Resources for example.
Is there any way to do that? I can't use Gizmos.DrawGUITexture, cuz it uses Rect, for position, so if i pass the position of the transform, it moves only in 2D plane (There is no input for the Z)...
If you add
void OnDrawGizmos()
{
}
And in Unity you go to "GIzmoz", under Scripts, there is the name of the script, that is drawing the Gizmo. From there i can pick an Icon that is everywhere in the Assets (Not just in Gizmos folder).
So how can i replicate that from code...
Your answer
![](https://koobas.hobune.stream/wayback/20220612051939im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
where are the icons for Gizmos.DrawIcon? 5 Answers
Drawing a Range Icon in 3D Space 0 Answers
Special folders in subfolders ? 1 Answer
Unity3d how to access Gizmos Tab in scene view via code 0 Answers
How to draw a gizmo on a Canvas ? 2 Answers