GetVector2

GetVector2(string, Vector2)

public Vector2 GetVector2(string name, Vector2 defaultValue) ;

Description

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

GetVector2(string)

public Vector2 GetVector2(string name) ;

Description

Get the value of the Vector2 type.

Parameters

Parameter Name Description
name Name.

Returns

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

GetVector2(int, Vector2)

public Vector2 GetVector2(int id, Vector2 defaultValue) ;

Description

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

GetVector2(int)

public Vector2 GetVector2(int id) ;

Description

Get the value of the Vector2 type.

Parameters

Parameter Name Description
id ID.

Returns

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

GetVector2(string, out Vector2)

Obsolete public bool GetVector2(string name, out Vector2 value) ;

Description

Get the value of the Vector2 type.

Parameters

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

Returns

The true when there parameters of the specified name.

GetVector2(int, out Vector2)

Obsolete public bool GetVector2(int id, out Vector2 value) ;

Description

Get the value of the Vector2 type.

Parameters

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

Returns

The true when there parameters of the specified name.