GetRigidbody2D

public Rigidbody2D GetRigidbody2D(string name, Rigidbody2D defaultValue) ;

Get the value of the Rigidbody2D type.

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

The true when there parameters of the specified name.

public Rigidbody2D GetRigidbody2D(int id, Rigidbody2D defaultValue) ;

Get the value of the Rigidbody2D type.

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

The true when there parameters of the specified name.

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

Get the value of the Rigidbody2D type.

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

The true when there parameters of the specified name.

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

Get the value of the Rigidbody2D type.

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

The true when there parameters of the specified name.