I’ve written a script that creates a Texture2D from a byte array, using the LoadImage function, which is then used to create a Sprite, using Sprite.create.
The problem is that when this sprite is created, it is automatically set to use a “bilinear filter,” the “pixel to units” is defaulted to 100, and color is set to “compressed,” which is all normally found in the “import settings” of an image, but how can I access these programmatically?