Unity工程中如何把html文件或html格式的字符串转换为图片?

Unity工程中如何把html文件或html格式的字符串转换为图片?

问题描述:

1.WebBrowser方式,Bitmap引入的dll冲突。
2.Aspose.HTML,在new HTMLDocument时报错:NotSupportedException: No data is available for encoding 10007. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. 引入System.Text.Encoding.CodePages并不能解决问题,仍然报这个错误。
3.HtmlRenderer方式未走通。

NotSupportedException不支持的异常操作。