public bool Entity.TryGetComponent<T>(out T component) where T : Component, new()
Attempts to retrieve component using the supplied arguments.
componentT- Receives component.
Returns: True when the request succeeds; read any out parameters only after checking the result.