C# Class exTextureHelper, ex2d-v1

Mostra file Open project: exdev/ex2d-v1

Public Methods

Method Description
ApplyContourBleed ( Texture2D _tex ) : Texture2D
ApplyPaddingBleed ( Texture2D _tex, Rect _rect ) : void
Fill ( Texture2D _dest, Vector2 _pos, Texture2D _src, Rect _rect, RotateDirection _rotDir, bool _useBgColor, Color _bgColor ) : void
GetTrimTextureRect ( Texture2D _tex ) : Rect
ImportTextureForAtlas ( Texture2D _tex ) : void
IsValidForAtlas ( Texture2D _tex ) : bool
SetReadable ( Texture2D _tex, bool _isReadable ) : void

Method Details

ApplyContourBleed() public static method

public static ApplyContourBleed ( Texture2D _tex ) : Texture2D
_tex UnityEngine.Texture2D
return UnityEngine.Texture2D

ApplyPaddingBleed() public static method

public static ApplyPaddingBleed ( Texture2D _tex, Rect _rect ) : void
_tex UnityEngine.Texture2D
_rect Rect
return void

Fill() public static method

public static Fill ( Texture2D _dest, Vector2 _pos, Texture2D _src, Rect _rect, RotateDirection _rotDir, bool _useBgColor, Color _bgColor ) : void
_dest UnityEngine.Texture2D
_pos Vector2
_src UnityEngine.Texture2D
_rect Rect
_rotDir RotateDirection
_useBgColor bool
_bgColor Color
return void

GetTrimTextureRect() public static method

public static GetTrimTextureRect ( Texture2D _tex ) : Rect
_tex UnityEngine.Texture2D
return Rect

ImportTextureForAtlas() public static method

public static ImportTextureForAtlas ( Texture2D _tex ) : void
_tex UnityEngine.Texture2D
return void

IsValidForAtlas() public static method

public static IsValidForAtlas ( Texture2D _tex ) : bool
_tex UnityEngine.Texture2D
return bool

SetReadable() public static method

public static SetReadable ( Texture2D _tex, bool _isReadable ) : void
_tex UnityEngine.Texture2D
_isReadable bool
return void