Scripting

Search The Documentation:

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

addAccessory

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Add an accessory with a unique name, and optional texture, position, rotation, and scale relative to parent.

Accessories are 3D billboard photo attachments that can be used to simulate animations and special effects on an object through code.

They can also be linked together for advanced interactions.

Parameters:

  • name
    • A string value
  • texture Optional
    • A string value
  • position Optional
    • A string value
  • rotation Optional
    • A string value
  • scale Optional
    • A string value

Example:

1
obj.addAccessory(name, texture, position, rotation, scale)
Tags
Was this article helpful to you? Yes No

How can we help?