C# Class Borodar.ReorderableList.Internal.ReorderableListResources

Resources to assist with reorderable list control.
Mostra file Open project: PhannGor/unity3d-rainbow-folders

Public Methods

Method Description
CreatePixelTexture ( string name, Color color ) : Texture2D

Create 1x1 pixel texture of specified color.

GetTexture ( ReorderableListTexture name ) : Texture2D

Gets light or dark version of the specified texture.

Private Methods

Method Description
GenerateSpecialTextures ( ) : void

Generate special textures.

GetImageSize ( byte imageData, int &width, int &height ) : void

Read width and height if PNG file in pixels.

LoadResourceAssets ( ) : void

Read textures from base-64 encoded strings. Automatically selects assets based upon whether the light or dark (pro) skin is active.

ReadInt ( byte imageData, int offset ) : int
ReorderableListResources ( ) : System

Method Details

CreatePixelTexture() public static method

Create 1x1 pixel texture of specified color.
public static CreatePixelTexture ( string name, Color color ) : Texture2D
name string Name for texture object.
color Color Pixel color.
return UnityEngine.Texture2D

GetTexture() public static method

Gets light or dark version of the specified texture.
public static GetTexture ( ReorderableListTexture name ) : Texture2D
name ReorderableListTexture
return UnityEngine.Texture2D