C# 클래스 SimpleSprite, marblemadness

상속: MonoBehaviour
파일 보기 프로젝트 열기: MtvnGames/marblemadness 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
lowerLeftPixel Vector2
pixelDimensions Vector2

보호된 프로퍼티들

프로퍼티 타입 설명
nullCamera bool

공개 메소드들

메소드 설명
Clear ( ) : void
Copy ( SpriteRoot, s ) : void

Copies all the attributes of another sprite.

Create ( string name, Vector3 pos ) : SimpleSprite,

Creates a GameObject and attaches this component type to it.

Create ( string name, Vector3 pos, Quaternion rotation ) : SimpleSprite,

Creates a GameObject and attaches this component type to it.

DoMirror ( ) : void
GetDefaultPixelSize ( PathFromGUIDDelegate guid2Path, AssetLoaderDelegate loader ) : Vector2
GetStateIndex ( string stateName ) : int
InitUVs ( ) : void
SetLowerLeftPixel ( Vector2 lowerLeft ) : void

Sets the lower-left pixel of the sprite. See lowerLeftPixel

SetLowerLeftPixel ( int x, int y ) : void

Sets the lower-left pixel of the sprite. See lowerLeftPixel

SetPixelDimensions ( Vector2 size ) : void

Sets the pixel dimensions of the sprite. See pixelDimensions

SetPixelDimensions ( int x, int y ) : void

Sets the pixel dimensions of the sprite. See pixelDimensions

SetState ( int index ) : void
Setup ( float w, float h, Vector2 lowerleftPixel, Vector2 pixeldimensions ) : void

Sets up the essential elements of a sprite.

Setup ( float w, float h, Vector2 lowerleftPixel, Vector2 pixeldimensions, Material material ) : void

Sets up the essential elements of a sprite.

Start ( ) : void

보호된 메소드들

메소드 설명
Awake ( ) : void
Init ( ) : void

메소드 상세

Awake() 보호된 메소드

protected Awake ( ) : void
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Copy() 공개 메소드

Copies all the attributes of another sprite.
public Copy ( SpriteRoot, s ) : void
s SpriteRoot, A reference to the sprite to be copied.
리턴 void

Create() 정적인 공개 메소드

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos ) : SimpleSprite,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
리턴 SimpleSprite,

Create() 정적인 공개 메소드

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos, Quaternion rotation ) : SimpleSprite,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
rotation Quaternion Rotation of the object.
리턴 SimpleSprite,

DoMirror() 공개 메소드

public DoMirror ( ) : void
리턴 void

GetDefaultPixelSize() 공개 메소드

public GetDefaultPixelSize ( PathFromGUIDDelegate guid2Path, AssetLoaderDelegate loader ) : Vector2
guid2Path PathFromGUIDDelegate
loader AssetLoaderDelegate
리턴 Vector2

GetStateIndex() 공개 메소드

public GetStateIndex ( string stateName ) : int
stateName string
리턴 int

Init() 보호된 메소드

protected Init ( ) : void
리턴 void

InitUVs() 공개 메소드

public InitUVs ( ) : void
리턴 void

SetLowerLeftPixel() 공개 메소드

Sets the lower-left pixel of the sprite. See lowerLeftPixel
public SetLowerLeftPixel ( Vector2 lowerLeft ) : void
lowerLeft Vector2 Pixel coordinate of the lower-left corner of the sprite.
리턴 void

SetLowerLeftPixel() 공개 메소드

Sets the lower-left pixel of the sprite. See lowerLeftPixel
public SetLowerLeftPixel ( int x, int y ) : void
x int X pixel coordinate.
y int Y pixel coordinate.
리턴 void

SetPixelDimensions() 공개 메소드

Sets the pixel dimensions of the sprite. See pixelDimensions
public SetPixelDimensions ( Vector2 size ) : void
size Vector2 Dimensions of the sprite in pixels.
리턴 void

SetPixelDimensions() 공개 메소드

Sets the pixel dimensions of the sprite. See pixelDimensions
public SetPixelDimensions ( int x, int y ) : void
x int X size in pixels.
y int Y size in pixels.
리턴 void

SetState() 공개 메소드

public SetState ( int index ) : void
index int
리턴 void

Setup() 공개 메소드

Sets up the essential elements of a sprite.
public Setup ( float w, float h, Vector2 lowerleftPixel, Vector2 pixeldimensions ) : void
w float The width, in local space, of the sprite.
h float The height, in local space, of the sprite.
lowerleftPixel Vector2 The coordinate of the lower-left pixel of the desired sprite on the sprite atlas.
pixeldimensions Vector2 The X and Y dimensions, in pixels, of the sprite.
리턴 void

Setup() 공개 메소드

Sets up the essential elements of a sprite.
public Setup ( float w, float h, Vector2 lowerleftPixel, Vector2 pixeldimensions, Material material ) : void
w float The width, in local space, of the sprite.
h float The height, in local space, of the sprite.
lowerleftPixel Vector2 The coordinate of the lower-left pixel of the desired sprite on the sprite atlas.
pixeldimensions Vector2 The X and Y dimensions, in pixels, of the sprite.
material Material The material to use for the sprite.
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

프로퍼티 상세

lowerLeftPixel 공개적으로 프로퍼티

Position of the lower-left pixel of the sprite when no animation has been played.
public Vector2 lowerLeftPixel
리턴 Vector2

nullCamera 보호되어 있는 프로퍼티

protected bool nullCamera
리턴 bool

pixelDimensions 공개적으로 프로퍼티

Dimensions, in pixels, of the sprite when no animation has been played.
public Vector2 pixelDimensions
리턴 Vector2