. Connect and share knowledge within a single location that is structured and easy to search. Texture2D tex ByteToTex2dbyteToImageurl.
In the scene you need to use Image game object instead of RawImage game object to load the sprite. For Texture2D objects there is a View Texture button at the top of the inspector which lets you view it and save it as a PNG file. Editor scripts must be separated into another assembly definitions with only Editor in includePlatforms field.