Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Sprite
  5. loadSprite

loadSprite

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

This command is meant only for Sprite objects

Parameters:

  • name
    • A string pointing to the local or web file

Example:

1
obj.loadSprite("myLevel/my_picture.png")

Compatible Texture Formats

Tags
Was this article helpful to you? Yes No

How can we help?