WhiteTexture() public static method

public static WhiteTexture ( ) : Texture2D
return Texture2D
		public static Texture2D LoadDefaultSplatTexture()
		{
			Texture2D texture = LoadAssetTexture(HEU_PluginSettings.TerrainSplatTextureDefault);
			if (texture == null)
			{
				texture = HEU_MaterialFactory.WhiteTexture();
			}
			return texture;
		}
示例#2
0
		public static Texture2D LoadAssetTexture(string path)
		{
			Texture2D texture = HEU_MaterialFactory.LoadTexture(path);
			if (texture == null)
			{
				Debug.LogErrorFormat("Unable to find the default Terrain texture at {0}. Make sure this default texture exists. Using default white texture instead.", path);
				texture = HEU_MaterialFactory.WhiteTexture();
			}
			return texture;
		}
示例#3
0
		public static Texture2D LoadDefaultSplatTexture()
		{
			string defaultSplatTexturePath = HEU_PluginSettings.TerrainSplatTextureDefault;
			Texture2D texture = HEU_MaterialFactory.LoadTexture(defaultSplatTexturePath);
			if (texture == null)
			{
				Debug.LogErrorFormat("Unable to find the default Terrain texture at {0}. Make sure this default texture exists. Using default white texture instead.", defaultSplatTexturePath);
				texture = HEU_MaterialFactory.WhiteTexture();
			}
			return texture;
		}