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) |