Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Object Data
  5. createObject

createObject

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Create object from the resources folder of the engine by name and get its index if successful

Parameters:

  • resource
    • A string value
  • x
    • A float value
  • y
    • A float value
  • z
    • A float value
  • UID Optional
    • An integer value

returns an Integer (whole number) value

Example:

1
obj.createObject(resource, x, y, z, UID)
Tags
Was this article helpful to you? Yes No

How can we help?