Свойство | Тип | Описание | |
---|---|---|---|
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 |
public Copy ( SpriteRoot, s ) : void | ||
s | SpriteRoot, | A reference to the sprite to be copied. |
Результат | void |
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, |
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, |
public GetDefaultPixelSize ( PathFromGUIDDelegate guid2Path, AssetLoaderDelegate loader ) : Vector2 | ||
guid2Path | PathFromGUIDDelegate | |
loader | AssetLoaderDelegate | |
Результат | Vector2 |
public GetStateIndex ( string stateName ) : int | ||
stateName | string | |
Результат | int |
public SetLowerLeftPixel ( Vector2 lowerLeft ) : void | ||
lowerLeft | Vector2 | Pixel coordinate of the lower-left corner of the sprite. |
Результат | void |
public SetLowerLeftPixel ( int x, int y ) : void | ||
x | int | X pixel coordinate. |
y | int | Y pixel coordinate. |
Результат | void |
public SetPixelDimensions ( Vector2 size ) : void | ||
size | Vector2 | Dimensions of the sprite in pixels. |
Результат | void |
public SetPixelDimensions ( int x, int y ) : void | ||
x | int | X size in pixels. |
y | int | Y size in pixels. |
Результат | void |
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 |
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 |