C# 클래스 UWPalette, UnderworldExporter

Palette class for texture cycling effects. A cycled and default uncycled palette are stored.
상속: UWEBase
파일 보기 프로젝트 열기: hankmorgan/UnderworldExporter 1 사용 예제들

공개 메소드들

메소드 설명
ApplyPalette ( Texture2D SrcImage ) : Texture2D

Applies the cycled palette to a greyscale image

ApplyPaletteDefault ( Texture2D SrcImage ) : Texture2D

Applies the default palette to a greyscale image.

비공개 메소드들

메소드 설명
Awake ( ) : void
CyclePalette ( int start, int end ) : void

Cycles the palette.

GetPal ( int index ) : Color

Gets the color at the specified index of the cycled palette.

GetPalDef ( int index ) : Color

Gets the color at the index of the default palette.

SetPal ( int index, float Red, float Green, float Blue ) : void

Sets the palette values

UpdateAnimation ( ) : void
UpdatePal ( int index, float Red, float Green, float Blue ) : void

Updates the palette values

메소드 상세

ApplyPalette() 공개 메소드

Applies the cycled palette to a greyscale image
public ApplyPalette ( Texture2D SrcImage ) : Texture2D
SrcImage UnityEngine.Texture2D Source image.
리턴 UnityEngine.Texture2D

ApplyPaletteDefault() 공개 메소드

Applies the default palette to a greyscale image.
public ApplyPaletteDefault ( Texture2D SrcImage ) : Texture2D
SrcImage UnityEngine.Texture2D Source image.
리턴 UnityEngine.Texture2D