Search Issue Tracker
Won't Fix
Votes
0
Found in
3.5.3f1
Issue ID
483471
Regression
No
Unloading native unity assets produces a crash
Won't fix:
Developers responsible for the area decided not to fix this issue, because addding safeguard preventing from unloading assets created/owned by the editor/engine is quite non-trivial in this case and there is a proper workaround of clearing the references of resources and using UnloadUnusedAssets instead.
To reproduce:
1. Create new project
2. Create c# script with following content:
Object[] textures = Resources.FindObjectsOfTypeAll(typeof(Texture));
for(int i = 0; i < textures.Length; i++)
{
if(textures[i].name == string.Empty)
{
continue;
}
if(textures[i].name != "LOADING")
{
Debug.Log("UnloadAsset: textures[i].name = "+textures[i].name);
Resources.UnloadAsset( textures[i] );
}
3. Attach it to camera and run
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Add comment