GetRigidbody

public Rigidbody GetRigidbody(string name, Rigidbody defaultValue) ;

Get the value of the Rigidbody type.

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

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

public Rigidbody GetRigidbody(int id, Rigidbody defaultValue) ;

Get the value of the Rigidbody type.

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

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

Obsolete public bool GetRigidbody(string name, out Rigidbody value) ;

Get the value of the Rigidbody type.

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

The true when there parameters of the specified name.

Obsolete public bool GetRigidbody(int id, out Rigidbody value) ;

Get the value of the Rigidbody type.

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

The true when there parameters of the specified name.