Namespace: | Sirenix.Utilities.Editor |
Assembly: | Sirenix.Utilities.Editor |
public static class TextureUtilities
public static Texture2D ConvertSpriteToTexture(Sprite sprite)
UnityEngine.Sprite | sprite |
UnityEngine.Texture2D |
public static Texture2D CropTexture(this Texture texture, Rect source)
UnityEngine.Texture | texture | |
UnityEngine.Rect | source |
UnityEngine.Texture2D |
public static Texture2D LoadImage(int width, int height, byte[] bytes)
System.Int32 | width | |
System.Int32 | height | |
System.Byte[] | bytes |
UnityEngine.Texture2D |
public static Texture2D ResizeByBlit(this Texture texture, int width, int height, FilterMode filterMode)
UnityEngine.Texture | texture | |
System.Int32 | width | |
System.Int32 | height | |
UnityEngine.FilterMode | filterMode |
UnityEngine.Texture2D |