Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Lights
  5. setLightCookie

setLightCookie

Platform Compatibility

PC Mac OSX Oculus Quest
X X

Load a texture to be the cookie for the light, useful for effects such as shadows of a light passing through a fence or windowframe

Parameters:

  • texture
    • A string value
  • index Optional
    • An integer value

Example:

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

How can we help?