Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Built-In Functions
  5. onGlobalMessage

onGlobalMessage

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

onGlobalMessage triggers when a global message has been sent and this object receives it

Parameters:

  • data
    • A string containing data

Example:

1
2
3
4
5
function onGlobalMessage(data)
    if data == "activate" then
        --Do something
    end
end
Tags
Was this article helpful to you? Yes No

How can we help?