We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
LogError: GLTFImage.cs ToTexture2D() ERROR: Cannot connect to destination host
My code:
string path = Application.streamingAssetsPath; Importer.LoadFromFile(path + "/Lantern/glTF/Lantern.gltf");
My file: Lantern.zip
Error code:
#if !UNITY_EDITOR && ( UNITY_ANDROID || UNITY_IOS ) path = "File://" + path; #endif // TODO: Support linear/sRGB textures using(UnityWebRequest uwr = UnityWebRequestTexture.GetTexture(path, true)) { UnityWebRequestAsyncOperation operation = uwr.SendWebRequest(); float progress = 0; while (!operation.isDone) { if (progress != uwr.downloadProgress) { if (onProgress != null) onProgress(uwr.downloadProgress); } yield return null; } if (onProgress != null) onProgress(1f); if (uwr.isNetworkError || uwr.isHttpError) { Debug.LogError("GLTFImage.cs ToTexture2D() ERROR: " + uwr.error); } else { Texture2D tex = DownloadHandlerTexture.GetContent(uwr); tex.name = Path.GetFileNameWithoutExtension(path); onFinish(tex); } uwr.Dispose(); }
The text was updated successfully, but these errors were encountered:
Fix texture loading issue.
49dbf85
Siccity#56
No branches or pull requests
My code:
My file:
Lantern.zip
Error code:
The text was updated successfully, but these errors were encountered: