GetRect

GetRect(string, Rect)

public Rect GetRect(string name, Rect defaultValue) ;

Description

Get the value of the Rect 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.

GetRect(string)

public Rect GetRect(string name) ;

Description

Get the value of the Rect type.

Parameters

Parameter Name Description
name Name.

Returns

The value of the parameter. If there is no parameter, it returns Rect(0, 0, 0, 0).

GetRect(int, Rect)

public Rect GetRect(int id, Rect defaultValue) ;

Description

Get the value of the Rect 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.

GetRect(int)

public Rect GetRect(int id) ;

Description

Get the value of the Rect type.

Parameters

Parameter Name Description
id ID.

Returns

The value of the parameter. If there is no parameter, it returns Rect(0, 0, 0, 0).

GetRect(string, out Rect)

Obsolete public bool GetRect(string name, out Rect value) ;

Description

Get the value of the Rect type.

Parameters

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

Returns

The true when there parameters of the specified name.

GetRect(int, out Rect)

Obsolete public bool GetRect(int id, out Rect value) ;

Description

Get the value of the Rect type.

Parameters

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

Returns

The true when there parameters of the specified name.