Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Accessories
  5. accessoryCopyFrom

accessoryCopyFrom

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Copy an accessory from another object to ourselves, if it exists copy their values to ours

Parameters:

  • index
    • An integer value
  • name
    • A string value

Example:

1
obj.accessoryCopyFrom(index, name)
Tags
Was this article helpful to you? Yes No

How can we help?