Scripting

Search The Documentation:

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

setAccessoryColor

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Set the color of the accessory in R,G,B or R,G,B,A (only for lit format!)

Parameters:

  • name
    • A string value
  • color
    • A string value

Example:

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

How can we help?