Here are the examples of the csharp api UnityEngine.GameObject.GetComponent(bool) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : GameObject.cs
with MIT License
from zios
with MIT License
from zios
public static bool HasComponent<T>(this GameObject current,bool includeInactive=false) where T : Component{
if(current.IsNull()){return false;}
return !current.GetComponent<T>(includeInactive).IsNull();
}