Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor/Resources items are built into the player, they shouldn't be #80

Open
doctorpangloss opened this issue May 1, 2019 · 2 comments

Comments

@doctorpangloss
Copy link

doctorpangloss commented May 1, 2019

According to Build Report Tool. I can confirm the size of the build increases with the images. I know it's just about 0.5 MB but I'm making a WebGL game carefully tuned to fit into 7.0 MB!

This might be a longstanding Unity issue. The workaround is to delete the files and commenting out the EditorGUI calls. Moving the files to Editor Default Resources also fixes the problem but creates another: the editor code needs to be updated to find the files there.

@tomkail
Copy link
Collaborator

tomkail commented Jul 26, 2019

Yeah we should resolve this. I've not got the time right now, but if anyone has time to resolve this I'll take the commit :) thanks!

@tomkail
Copy link
Collaborator

tomkail commented Aug 2, 2019

Hum so you cant use Editor Default Resources because that folder is unique, and must be in the root. Bit unsure what the correct way to go about this is!
We need to load a texture into a static class without using Resource/EditorResource Load

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants