I want to set Texture2D wrap mode to Repeat from script. Unfortunately this does not seem to work.
fillTexture.wrapMode = TextureWrapMode.Repeat; fillTexture.Apply(); EditorUtility.SetDirty(fillTexture); AssetDatabase.SaveAssets();
Texture will be for a short time in Repeat mode indeed, but then after reloading scene it will be shown in Clamp. It is in clamp mode in Editor.
What am i doing wrong? At first i tried only the first line of this code, but it does not work too.