Game Development Reference
In-Depth Information
Why did we move the Gizmos folder outside the Chapter6 folder? Refer to the
following Unity document: https://docs.unity3d.com/Documentation/ScriptRefer-
ence/Gizmos.DrawIcon.html
We will see that the function Gizmos.DrawIcon() takes three parameters,
which are Vector3 for the position that the object will be drawn, string for
the name of the icon image, and boolean to allow scaling. Then, the last sen-
tence said the following:
"The image file should be placed in the Assets/Gizmos folder"
This simply means that if we want to have our custom icon image, we basically
need to put our image inside the folder mentioned earlier.
Search WWH ::




Custom Search