C# Class Invert.Common.TexturesExtensions

Show file Open project: InvertGames/uFrame.Editor

Public Methods

Method Description
CutTextureBottomBorder ( this texture, int cutSize ) : Texture2D
Gradient ( this texture, Color colorSource, Color colorDestination ) : Texture2D
Rotate180 ( this texture ) : Texture2D
Rotate90 ( this texture ) : Texture2D
Rotate90CW ( this texture ) : Texture2D
Tint ( this texture, Color color ) : Texture2D

Method Details

CutTextureBottomBorder() public static method

public static CutTextureBottomBorder ( this texture, int cutSize ) : Texture2D
texture this
cutSize int
return UnityEngine.Texture2D

Gradient() public static method

public static Gradient ( this texture, Color colorSource, Color colorDestination ) : Texture2D
texture this
colorSource UnityEngine.Color
colorDestination UnityEngine.Color
return UnityEngine.Texture2D

Rotate180() public static method

public static Rotate180 ( this texture ) : Texture2D
texture this
return UnityEngine.Texture2D

Rotate90() public static method

public static Rotate90 ( this texture ) : Texture2D
texture this
return UnityEngine.Texture2D

Rotate90CW() public static method

public static Rotate90CW ( this texture ) : Texture2D
texture this
return UnityEngine.Texture2D

Tint() public static method

public static Tint ( this texture, Color color ) : Texture2D
texture this
color UnityEngine.Color
return UnityEngine.Texture2D