TryGetComponent

TryGetComponent(string, out Component)

public bool TryGetComponent(string name, out Component value) ;

Description

Get the value of the Component type.

Parameters

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

Returns

The true when there parameters of the specified name.

TryGetComponent(int, out Component)

public bool TryGetComponent(int id, out Component value) ;

Description

Get the value of the Component type.

Parameters

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

Returns

The true when there parameters of the specified name.

TryGetComponent<TComponent>(string, out TComponent)

public bool TryGetComponent<TComponent>(string name, out TComponent value) ;

Description

Get the value of the Component type.

Type Parameters

Type Parameter Name Description Type Constraints
TComponent Type of Component to get
  • Component

Parameters

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

Returns

The true when there parameters of the specified name.

TryGetComponent<TComponent>(int, out TComponent)

public bool TryGetComponent<TComponent>(int id, out TComponent value) ;

Description

Get the value of the Component type.

Type Parameters

Type Parameter Name Description Type Constraints
TComponent Type of Component to get
  • Component

Parameters

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

Returns

The true when there parameters of the specified name.