getMeshShadow

Platform Compatibility PC Mac OSX Oculus Quest X X X Get whether mesh casts a shadow returns a Boolean (true or false) value Example: 1obj.getMeshShadow()

setMeshShadow

Platform Compatibility PC Mac OSX Oculus Quest X X X Set whether mesh casts a shadow Parameters: _tf A boolean value Example: 1obj.setMeshShadow(_tf)

offsetTexture

Platform Compatibility PC Mac OSX Oculus Quest X X X Offset the texture by X and Y Parameters: x A float value y A float value Example: 1obj.offsetTexture(x, y)

textureOffset

Platform Compatibility PC Mac OSX Oculus Quest X X X Get texture offset X,Y returns a String (text) value Example: 1obj.textureOffset()

scaleTexture

Platform Compatibility PC Mac OSX Oculus Quest X X X Alter the scale of the texture by X and Y Parameters: x A float value y A float value Example: 1obj.scaleTexture(x, y)

textureScale

Platform Compatibility PC Mac OSX Oculus Quest X X X Get texture scale X,Y returns a String (text) value Example: 1obj.textureScale()

modifyMaterialFloat

Platform Compatibility PC Mac OSX Oculus Quest X X X Modify advanced parameters for a material, if it is a user created global material then it uses the Standard shader format eg: _GlossMapScale and _BumpScale Parameters: parameter A string value value A float value Example: 1obj.modifyMaterialFloat(parameter, value)

useGlobalMaterial

Platform Compatibility PC Mac OSX Oculus Quest X X X Parameters: name The string name of the global material to use Example: 1obj.useGlobalMaterial("MyMaterial") Learn how to Create a Global Material

loadGLTF

Platform Compatibility PC Mac OSX Oculus Quest X X X Parameters: name A string pointing to the .gltf (local) or .glb (local and web) file Example: 12–Load a GLTF model from the Internet obj.loadGLTF("http://macgrids.ca/BrainStem.glb") Advanced GLTF Manipulation

createObjChild

Platform Compatibility PC Mac OSX Oculus Quest X X X Create a child object of self or index from a .obj file in StreamingAssets Parameters: index Optional An integer value obj Optional A string value Example: 1obj.createObjChild(index, obj)