Click or drag to resize

ControlGetColor Method

Returns a color from assigned Theme with given name and associated with Control of given node_type.

func _ready():
    modulate = get_color("font_color", "Button") #get the color defined for button fonts

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Color GetColor(
	string name,
	string nodeType = ""
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:Godot.Control.GetColor(System.String,System.String)"]

nodeType (Optional)
Type: SystemString

[Missing <param name="nodeType"/> documentation for "M:Godot.Control.GetColor(System.String,System.String)"]

Return Value

Type: Color

[Missing <returns> documentation for "M:Godot.Control.GetColor(System.String,System.String)"]

See Also