Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

ĪWell, what you might have is another class, such as your character class unpack the addressable and then pass it to the paper doll using the set texture method. Or build a script whose sole job it is to unpack these and send it to paper doll then just attach that script to everything that needs it. Email address is bluemanafox@gmail.com, would love to see your final solution to the problem!

P.S. not sure if we're talking about the same thing or not. Addressables doesn't use a resource folder at all, instead it prevents an asset from being loaded until it's needed whereas resources load everything and keeps it in memory. It may not work, sounds like there's a potential flaw with the dedicated server design. Depending, it may be worth it to restructure it if that's possible.

(2 edits)

Got it working! :) I made a class called PaperDollAddressable. It works just like PaperDoll except you pass in a string name of the addressable you want to use instead of a resource texture. You'll be able to include it in your product without breaking the old PaperDoll and devs can just pick which one they want to use based on their usecase. I'll clean it up and email it over.

Regarding what I meant before about the Resource folder, when you try to convert a Resource texture to an addressable it will demand that you duplicate the folder as Resource_moved because Addressables cannot be in the Resource.

And, regarding my usecase I am trying to use FishNet + Edgegap for hosting, and their containers are 1 hour limit and 250MB memory constrained for evaluation and 2GB limited for pro. I hit the 250MB memory limit of the container very quickly because I own all the Mana Seed packs and had them in the Resources. And, when you build, Unity marks Resources as required and forces them into the dedicated server builds. I kept adding content and testing my network code which was working great up until I added too much content and the dedicated server stopped working because of the constraint. So, I want to move over to addressables to solve it.

Oh good! I am so glad to hear that solution worked for you. As I said before I believe addressables would 100% resolve your problems then I think for your project and get you away from the resources folder. It will also reduce the overhead and increase performance for your players ;)

Ya, plus it'll be nice to be able to remotely load content and provide updated versions of content. Sorry it took so long, sending the email now I just wanted to go over it with a fine tooth comb and make sure I'm releasing resources correctly etc.

What steps should I take to move to the addressables version... remove the old paperdoll scripts, load in the new, mark the spritesheets as 'Addressable'? And fill in the correct values on the paperdoll again?


Anything else? Thanks in advance!