Import assets

Home Forums Monkey 2 Programming Help Import assets

This topic contains 2 replies, has 2 voices, and was last updated by  Voidwalker 1 week, 4 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10316

    Voidwalker
    Participant

    Hi,

    I have a question about #Import. When importing assets I can later use load them using Image.Load( “asset::xyz.png” ) for instance. As far as I see in the resulting build all assets are put into the root folder below “assets”. Is there a way to keep the folder structure I have in my project?

    For instance:

    /assets/graphics/title.jpg

    will lead to:

    /assets/title.jpg in the build folder.

    #10319

    nerobot
    Participant

    Try to use

    #Import “assets/graphics/@/graphics/”

    It should copy all files from graphics folder to the same product folder.

    After @ symbol you can specify any dest folder name.

    #10320

    Voidwalker
    Participant

    Awesome, thanks!

    In case anyone searches for this as well:

    #Import “assets/@/”

    will import everything and put it into its original folder structure.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.