Closed mbaker3 closed 1 year ago
Add a convenience extension method that follows the bool Try...(out result) pattern.
bool Try...(out result)
The try pattern exists for ComponentDataFromEntity but not performing the same operation directly on the EntityManager.
ComponentDataFromEntity
EntityManager
Developers may call EntityManager.TryGetComponentData(Entity, out T data) now.
EntityManager.TryGetComponentData(Entity, out T data)
Add a convenience extension method that follows the
bool Try...(out result)
pattern.What is the current behaviour?
The try pattern exists for
ComponentDataFromEntity
but not performing the same operation directly on theEntityManager
.What is the new behaviour?
Developers may call
EntityManager.TryGetComponentData(Entity, out T data)
now.What issues does this resolve?
What PRs does this depend on?
Does this introduce a breaking change?