Scripting

Search The Documentation:

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

createAsset

Platform Compatibility

PC Mac OSX Oculus Quest
X X *
*When Asset Bundle is exported in Android format

Create an object from an asset bundle and get index if successful

Parameters:

  • assetbundle
    • A string value representing the name of the asset bundle
  • objName
    • A string value representing the object within the asset bundle to load
  • 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.createAsset(assetbundle, objName, x, y, z, UID)
Tags
Was this article helpful to you? Yes No

How can we help?