C# Class TextureHelpers, tf_client

Static helper methods for working with textures
Inheritance: System.Object
ファイルを表示 Open project: wids-eria/tf_client Class Usage Examples

Public Methods

Method Description
Duplicate ( Texture2D tex ) : Texture2D

Return a duplicate of tex

FloodFill ( Texture2D tex, Color col, ApplyMode apply ) : void

Flood fill the specified texture with the specified color

FloodFill ( Texture2D tex, int x, int y, int width, int height, Color col, ApplyMode apply ) : void

Flood fill the specified block on the specified texture using the specified color

Method Details

Duplicate() public static method

Return a duplicate of tex
public static Duplicate ( Texture2D tex ) : Texture2D
tex UnityEngine.Texture2D /// A ///
return UnityEngine.Texture2D

FloodFill() public static method

Flood fill the specified texture with the specified color
public static FloodFill ( Texture2D tex, Color col, ApplyMode apply ) : void
tex UnityEngine.Texture2D /// A ///
col Color /// A ///
apply ApplyMode /// A ///
return void

FloodFill() public static method

Flood fill the specified block on the specified texture using the specified color
public static FloodFill ( Texture2D tex, int x, int y, int width, int height, Color col, ApplyMode apply ) : void
tex UnityEngine.Texture2D /// A ///
x int /// A ///
y int /// A ///
width int /// A ///
height int /// A ///
col Color /// A ///
apply ApplyMode /// A ///
return void