Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Script Specific
  5. haveComponent

haveComponent

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Check if we have a type of component using shortcut names instead

Parameters:

  • component
    • A string value, for example “rigidbody”

returns a Boolean (true or false) value

Example:

1
obj.haveComponent(component)
Tags
Was this article helpful to you? Yes No

How can we help?