Unload Resources

Let’s say i’ve a gameobject which has a compoment with a used resource.
I set the gameObject to inactive, but later i’d like to set it to active
I call


Does it delete the resource from the memory, and when i change the gameObject to active is it loaded?

I think that set a gameobject inactive didn’t allow to unload a resource.

But if you destroy, unload, and create again, the resource will be loaded. The UnloadAsset method give us a tip.

“If there are any references from game objects in the scene to the asset and it is being used then Unity will reload the asset from disk as soon as it is accessed.”