GetColor

GetColor(string, Color)

public Color GetColor(string name, Color defaultValue) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
name Name.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetColor(string)

public Color GetColor(string name) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
name Name.

Returns

The value of the parameter. If there is no parameter, it returns Color.white.

GetColor(int, Color)

public Color GetColor(int id, Color defaultValue) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
id ID.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetColor(int)

public Color GetColor(int id) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
id ID.

Returns

The value of the parameter. If there is no parameter, it returns Color.white.

GetColor(string, out Color)

Obsolete public bool GetColor(string name, out Color value) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
name Name.
value The value you get.

Returns

The true when there parameters of the specified name.

GetColor(int, out Color)

Obsolete public bool GetColor(int id, out Color value) ;

Description

Get the value of the Color type.

Parameters

Parameter Name Description
id ID.
value The value you get.

Returns

The true when there parameters of the specified name.