|
It seems that I cannot read produces: Is there any other way to access the log file? Specifically I am trying to extract and process the Size information produced during build.
(comments are locked)
|
|
You need to open the file with file sharing... FileMode fm = FileMode.Open; string contents = "";
(comments are locked)
|
|
I've heard you can use the WWW class to access files just about anywhere on the system if the URL starts with file:/// I've never tried it myself, but WWW is pretty easy to use. I do have a vague memory of a post where using two or three slashes makes a difference. This isn't the thread I'm thinking of, but it discusses using WWW to read files. http://answers.unity3d.com/questions/159765/reading-a-local-file-from-webplayer-i-know-it-viol.html I don't know if that will help you get around the fact that it's locked, though. Is there no way to access asset size information without reading the file? I guess you're talking about the editor and it may not use the same optimized Assets. I'll stop rambling now... Sorry, I specifically mean programmatically. I'll improve my title.
Sep 17 '11 at 12:07 AM
Waz
(comments are locked)
|
|
You could probably write a PostprocessBuildPlayer script that copies the log file somewhere else. You could copy it to your resources folder or your Assets folder and use it as a TextAsset. Copying requires reading the file, which is the thing that doesn't work.
Sep 17 '11 at 12:31 AM
Waz
(comments are locked)
|
