Method HasAnyComponent
|
Improve this Doc
View Source
HasAnyComponent(GameObject, params Type[])
Check if GameObject has any of the specified components.
Declaration
public static bool HasAnyComponent(this GameObject gameObject, params Type[] components)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
Type[] |
components |
|
Returns
|
Improve this Doc
View Source
HasAnyComponent(GameObject, params string[])
Check if GameObject has any of the specified components.
Declaration
public static bool HasAnyComponent(this GameObject gameObject, params string[] componentNames)
Parameters
Type |
Name |
Description |
GameObject |
gameObject |
|
string[] |
componentNames |
|
Returns