Thank you hpjohn. I have saved using AssetDatabase.SaveAssets();
Still does not work, I can’t for the life of me figure this one out.
using UnityEditor;
using UnityEngine;
public class TextureProperties
{
// Add a menu item named "Do Something" to MyMenu in the menu bar.
[MenuItem("MyMenu/Do Something")]
static void DoSomething()
{
Texture2D test = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/test.png", typeof(Texture2D));
test.filterMode = FilterMode.Point;
AssetDatabase.SaveAssets();
}
}