puksometron
Member
Hi all,
So a common thing we all probably do is check if a component exists on a script and then get a reference to that component and use it where appropriate. Unity has the
So a common thing we all probably do is check if a component exists on a script and then get a reference to that component and use it where appropriate. Unity has the
TryGetComponent
function that is extremely useful in this case. Maybe Opsive.Shared.Game could get a TryGetCachedComponent
as part of a future update? Any further comments are welcome