Is there a way to return an array of all assets of a given asset type?

Comments

2 comments

  • Justin McFall

    I'm not keen to do the old hacky method of abusing a big for-loop and font_exists(i) because that function will also return <true> for fonts added at runtime which, in this case, is undesirable.

    You could instead use a big for loop and asset_get_type. If it's a font added during runtime, it will be an unknown asset; otherwise it's a font.

    0
    Comment actions Permalink
  • Piotr Gnys

    I'm usually putting empty resource named obj_last/spr_last/something_last and then doing for(i=0; i<something_last; i++) to get all things except added in runtime.

    However that would be good to have a function like this.

    0
    Comment actions Permalink

Please sign in to leave a comment.