GetRigidbody2D

GetRigidbody2D(string, Rigidbody2D)

public Rigidbody2D GetRigidbody2D(string name, Rigidbody2D defaultValue) ;

Description

Get the value of the Rigidbody2D type.

Parameters

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

Returns

The true when there parameters of the specified name.

GetRigidbody2D(int, Rigidbody2D)

public Rigidbody2D GetRigidbody2D(int id, Rigidbody2D defaultValue) ;

Description

Get the value of the Rigidbody2D type.

Parameters

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

Returns

The true when there parameters of the specified name.

GetRigidbody2D(string, out Rigidbody2D)

Obsolete public bool GetRigidbody2D(string name, out Rigidbody2D value) ;

Description

Get the value of the Rigidbody2D type.

Parameters

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

Returns

The true when there parameters of the specified name.

GetRigidbody2D(int, out Rigidbody2D)

Obsolete public bool GetRigidbody2D(int id, out Rigidbody2D value) ;

Description

Get the value of the Rigidbody2D type.

Parameters

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

Returns

The true when there parameters of the specified name.