Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. deleteGlobalMaterial

deleteGlobalMaterial

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Delete a global material so objects can’t use it, and/or to remake the material

Parameters:

  • name
    • A string to identify the material, must be unique

    Example:

    1
    obj.deleteGlobalMaterial("myMaterial")
    Tags
Was this article helpful to you? Yes No

How can we help?