Hello, i managed how to set custom texture in code:
noiseTex = new Texture2D(pixWidth, pixHeight);
pix = new Color[noiseTex.width * noiseTex.height];
noiseTex.SetPixels(pix);
noiseTex.Apply();
MaterialPropertyBlock block = new MaterialPropertyBlock();
block.AddTexture("_MainTex", noiseTex);
GetComponent<SpriteRenderer>().SetPropertyBlock(block);
And my question is, how to set ‘point filter’ to this texture?
And how to make setting better