GetVector2

GetVector2(Vector2)

public Vector2 GetVector2(Vector2 defaultValue) ;

Description

Get the value of the Vector2 type.

Parameters

Parameter Name Description
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()

public Vector2 GetVector2() ;

Description

Get the value of the Vector2 type.

Returns

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