Search Issue Tracker
Not Reproducible
Votes
0
Found in
2019.1.0f1
2019.2.0b3
Issue ID
1156090
Regression
Yes
Missing method when invoking UnityEngine.Texture2D.EncodeToPNG
This Asset store package is using Texture2D.EncodeToPNG() in one of their DLLs.
After 19.1, this error keeps appearing when running their example scenes:
MissingMethodException: byte[] UnityEngine.Texture2D.EncodeToPNG()
Adinmo.AdinmoDownloader+<DownloadImage>d__13.MoveNext () (at <d5fbebea95934262acb0d16ffb8cc7c5>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
This does not occur in 18.3. Also, I have tried making a very simple projects that uses Texture2D.EncodeToPNG() in a c# script, and that seems to work, so it might be related with calling the function from the DLL...
To repro:
- download this project
- play the ExampleDialogue scene
Reproducible in 2019.1.0f1, 2019.2.0b3 , 2019.3.0a3
Cannont repro in 2018.3.5f1, 2019.1.0b10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GetSceneGUID when building a scene
- ComputeShader compilation is executed sequentially, resulting in subpar performance
- Crash on UnityObjectToString(Object*) when an object has a field with a type mismatch and an active Animator
- Visual Effect Graph Node creation folder colors are not set to default by default
- The Attach button is active and shows the Attached to Visual Effect" tooltip when the Visual Effect Graph is no longer attached
Add comment