Hi Guys. Working on a web player app. Using materials and textures that are entirely within the project (i.e. in my assets folder) and getting this error when I click BAKE on my lightmap:
SecurityException: Reading from the screen is not allowed when you have used a downloaded texture without proper crossdomain.xml authorization
UnityEngine.Texture2D.ReadPixels(Rect source, Int32 destX, Int32 destY)
UnityEditor.TextureInspector.RenderStaticPreview(Int32 width, Int32 height)
UnityEditor.AssetPreviewUpdater.CreatePreviewForAsset(UnityEngine.Object obj)
UntiyEditor.AssetPostprocessingInternal.GenerateAssetPreview(UnityEngine.Object asset)
On my webserver, my crossdomain.xml is:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
In my Editor settings under WWW Security Emulation settings I even put in the full URL for where the file would
be hosted and still no dice.
Now, I do download textures in a different scene at runtime, but that should no way be involved with some action I’m doing in the editor when I’m not even running the project (I’m literally just trying to bake lightmaps). Even so, none of those textures are involved with this scene whatsoever (they’re used for dynamic moving things, not static scene).
This seems like a huge bug to me as it seems to be coming from unity itself and not any of my code.
Any thoughts?
Thanks in advance.