Format
typescript
Gizmos.DrawIcon(center, texture, allowScaling, tint)class: Gizmos
Description
Draw an icon.
Parameters
| param_name | type | description |
|---|---|---|
| center | Vector3 | The center coordinate. |
| texture | Texture2D | The texture. |
| allowScaling | boolean? | Whether scaling is allowed. |
| tint | Color? | The tint color. |
Return
| type | description |
|---|---|
void |
Code Example
typescript
OnUpdate(): void {
let center = new Vector3(1,1,1);
let texture = Resources.Load<Texture2D>(Texture2D,"62668CC7519248E5AD994D96F80C6BBB");
Gizmos.DrawIcon(center,texture);
}