Deleting texture images in Asset folder?

Hello,

i have a iPhone and iPad project together in 1 Unity Project.

At start i detect if its iPhone or iPad. Then i destroy the unused GameObjects for the corresponding device to keep performance. Now i heared about, that the images in the asset folder which are not used also need Memory?
Is this true? And if it`s true, how can i delete the unused images?

Thanks for reply

no this is not true
Images in the unity assets folder that are not used are not even included in the build :slight_smile:

I would actually recommend to not go that way, create game objects to destroy them. instead create prefabs for them you put into the resources folder and load them from there depending on the device. this should be quite beneficial for loading time and ram requirements

ok thanks :slight_smile:

does an deactivated GameObject with SetActiveRecursively( false ); need Memory? and if its a prefab not?

Yes something thats deactivated still needs memory. It only stops requiring that much CPU time.

A prefab thats not instantiated takes no ram (it requires memory on disk / in app but thats of no importance in this case), once its instantiated its a game object like any other :slight_smile: