Jump to content

Proper way to get assets into resouces folder?


Recommended Posts

Posted

With the new API introduced a few client versions back, the proper approach without downloading from the web would be:

In the local script project:
- Create a 'resources' package/folder in the root (not in a sub-package)
- Put resource files in this folder
- Get the resources using Script#getScriptResourceAsStream (provide relative path, eg. "resources/image.png")

On the SDN:
- Put the resources folder at the root level of your script directory

> ScriptName
--> src
----> scriptname.mainpackage
--> resources
----> image.png
----> font.ttf


 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...