GetRigidbody2D
GetRigidbody2D(Rigidbody2D)
public Rigidbody2D GetRigidbody2D(Rigidbody2D defaultValue) ;
Description
Get the value of the Rigidbody2D 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.