handcircus / Unity-Resource-Checker

Editor utility for unity to help check resources in the current scene (including active textures, their sizes, materials, meshes and which objects are using them)
1.02k stars 290 forks source link

Compile errors on Unity 2017.4.2f2 with v2.1 #25

Open Firemaw opened 6 years ago

Firemaw commented 6 years ago

Has the following compile errors on Unity 2017.4.2f2. Resource Checker v2.1.

Assets/Editor/ResourceChecker.cs(286,23): error CS0117: UnityEngine.TextureFormat' does not contain a definition forATF_RGB_DXT1' Assets/Editor/ResourceChecker.cs(287,23): error CS0117: UnityEngine.TextureFormat' does not contain a definition forATF_RGBA_JPG' Assets/Editor/ResourceChecker.cs(288,23): error CS0117: UnityEngine.TextureFormat' does not contain a definition forATF_RGB_JPG' Assets/Editor/ResourceChecker.cs(783,10): error CS0103: The name ac' does not exist in the current context Assets/Editor/ResourceChecker.cs(796,26): error CS0103: The namecnt' does not exist in the current context Assets/Editor/ResourceChecker.cs(805,29): error CS0103: The name m' does not exist in the current context Assets/Editor/ResourceChecker.cs(807,29): error CS0103: The namem' does not exist in the current context

handcircus commented 6 years ago

Should be fixed up in latest commit - can you let me know if this works ok? (Im not running 2017.4 here)

woistjadefox commented 6 years ago

I tested it with 2017.4.2f2. It works, only the "Material" tab makes the Editor hang and I had to force quit. Happens always I press on the tab.

Firemaw commented 6 years ago

New version you uploaded has no compile errors and works now, thank you @handcircus

handcircus commented 6 years ago

@woistjadefox Is this happening every time/every scene for you? (ie does this happen in an empty scene with just the skybox material). Is this happening only after you hit calculate?

woistjadefox commented 6 years ago

No it's not happening in an empty scene. It happens right after I press on the Materials tab. I don't have to press the "Calculate" button.

I just tried a smaller scenery (I have a multi scene setups) and it worked without errors / crash, but the editor lags as hell while I'm on the Material tab. When I press another tab then, everything fast and fluent again.