Skip to content

Format

typescript
Gizmos.DrawIcon(center, texture, allowScaling, tint)

class: Gizmos

Description

Draw an icon.

Parameters

param_nametypedescription
centerVector3The center coordinate.
textureTexture2DThe texture.
allowScalingboolean?Whether scaling is allowed.
tintColor?The tint color.

Return

typedescription
void

Code Example

typescript
OnUpdate(): void {

    let center = new Vector3(1,1,1);
    let texture = Resources.Load<Texture2D>(Texture2D,"62668CC7519248E5AD994D96F80C6BBB");
    Gizmos.DrawIcon(center,texture);
}