Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Script Specific
  5. setUID

setUID

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

obj.setUID(value) accepts an integer (whole number) value that can be used to uniquely identify this object to other scripts.

It can also be set in the editor directly, but this command is useful for objects that are copied or otherwise spawned while playing a level.

Tags
Was this article helpful to you? Yes No

How can we help?