You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OfComponent extension has a constraint that T is a Component. That used to be a requirement for a call to GetComponent() but that is no longer the case. It is problematic as it does not allow to GetComponent() by its interface say we have:
class MyCompoenent : MonoBehaviour, IInteractable
{
}
it is valid to do gameObject.GetCompoenent() but currently not possible to do
gameObjects.OfComonent();
The text was updated successfully, but these errors were encountered:
Hi,
OfComponent extension has a constraint that T is a Component. That used to be a requirement for a call to GetComponent() but that is no longer the case. It is problematic as it does not allow to GetComponent() by its interface say we have:
it is valid to do gameObject.GetCompoenent() but currently not possible to do
gameObjects.OfComonent();
The text was updated successfully, but these errors were encountered: