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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Memory leak warnings are constantly thrown when Generating Font Atlas in Font Asset Creator with 4096x8192 Atlas Resolution
Add comment