Show / Hide Table of Contents

Method HasAllComponents

| Edit this page View Source

HasAllComponents(GameObject, params string[])

Check if GameObject has all of the specified components.
Declaration
public static bool HasAllComponents(this GameObject gameObject, params string[] componentNames)
Parameters
Type Name Description
GameObject gameObject
string[] componentNames
Returns
Type Description
bool
| Edit this page View Source

HasAllComponents(GameObject, params Type[])

Check if GameObject has all of the specified components.
Declaration
public static bool HasAllComponents(this GameObject gameObject, params Type[] components)
Parameters
Type Name Description
GameObject gameObject
Type[] components
Returns
Type Description
bool
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾