Announcement

Collapse
No announcement yet.

Best way to create array of sprites?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Best way to create array of sprites?

    I want to create an array of Paper2D sprites that will be read-only once the array is created.

    After creation I want to use this array within any blueprint to quickly pull the sprite from it.

    My first thought was to use a tileset and use tile indexes but from what I can tell you can't extract sprites from tile indexes.

    Unpopular Minion on the Play Store (Released: January 31, 2016)

    #2
    You could create a struct with your sprites and any other properties you wanted. Then create an array of that struct in the game instance class and manually add each entry. That's probably the simplest way. Or create a blueprint function library that creates/retrieves the array. You could also create a Data table with that struct and store your sprites in there as well.
    Columbus Ohio Unreal Meetup
    @OCGameStudio | Sphere Complex | twitch.tv/WFMOz

    Comment


      #3
      Best way may be to create a function to pull the data. Was thinking that was going to be the case but wanted to be sure as my game is going to rely heavily on this.

      Unpopular Minion on the Play Store (Released: January 31, 2016)

      Comment

      Working...
      X