C# 클래스 TextureBogusExtension, mapa-de-calor

Add a feature to the Texture class which allows you to detect the case when you have attempted to download a bogus WWW Texture. by Matt "Trip" Maker, Monstrous Company :: http://monstro.us TODO could also use the filesystem cache to keep the example error image between runs. from http://unifycommunity.com/wiki/index.php?title=TextureBogusExtensions
파일 보기 프로젝트 열기: divisiondeariza/mapa-de-calor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ready bool

공개 메소드들

메소드 설명
Equivalent ( Array, bytes1, Array, bytes2 ) : bool

Compare two byte arrays.

Init ( MonoBehaviour, bhv ) : void

Get an example of whatever the current "error" texture is. (At the time of this writing, an "upside down red question mark on a white background".)

asPNGDeclaration ( Texture, tex ) : string

Express the texture in the form of the C# code that would be necessary to represent a PNG of it.

isBogus ( Array, png ) : bool
isBogus ( Texture, tex ) : bool

The easy way: compare to a saved version of the question mark image, expressed here as an array of bytes.

obtainExampleBogusTexture ( ) : IEnumerator,

메소드 상세

Equivalent() 공개 정적인 메소드

Compare two byte arrays.
public static Equivalent ( Array, bytes1, Array, bytes2 ) : bool
bytes1 Array, /// A ///
bytes2 Array, /// A ///
리턴 bool

Init() 공개 정적인 메소드

Get an example of whatever the current "error" texture is. (At the time of this writing, an "upside down red question mark on a white background".)
public static Init ( MonoBehaviour, bhv ) : void
bhv MonoBehaviour,
리턴 void

asPNGDeclaration() 공개 정적인 메소드

Express the texture in the form of the C# code that would be necessary to represent a PNG of it.
public static asPNGDeclaration ( Texture, tex ) : string
tex Texture, /// A ///
리턴 string

isBogus() 공개 정적인 메소드

public static isBogus ( Array, png ) : bool
png Array,
리턴 bool

isBogus() 공개 정적인 메소드

The easy way: compare to a saved version of the question mark image, expressed here as an array of bytes.
public static isBogus ( Texture, tex ) : bool
tex Texture, /// A ///
리턴 bool

obtainExampleBogusTexture() 공개 정적인 메소드

public static obtainExampleBogusTexture ( ) : IEnumerator,
리턴 IEnumerator,

프로퍼티 상세

ready 공개적으로 정적으로 프로퍼티

public static bool ready
리턴 bool