Click or drag to resize

EditorSpatialGizmoPluginCreateIconMaterial Method

Creates an icon material with its variants (selected and/or editable) and adds them to the internal material list. They can then be accessed with GetMaterial(String, EditorSpatialGizmo) and used in AddUnscaledBillboard(Material, Single, NullableColor). Should not be overridden.

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void CreateIconMaterial(
	string name,
	Texture texture,
	bool onTop = false,
	Color? color = null
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:Godot.EditorSpatialGizmoPlugin.CreateIconMaterial(System.String,Godot.Texture,System.Boolean,System.Nullable{Godot.Color})"]

texture
Type: GodotTexture

[Missing <param name="texture"/> documentation for "M:Godot.EditorSpatialGizmoPlugin.CreateIconMaterial(System.String,Godot.Texture,System.Boolean,System.Nullable{Godot.Color})"]

onTop (Optional)
Type: SystemBoolean

[Missing <param name="onTop"/> documentation for "M:Godot.EditorSpatialGizmoPlugin.CreateIconMaterial(System.String,Godot.Texture,System.Boolean,System.Nullable{Godot.Color})"]

color (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
See Also