SpriteManager 2
All
Classes
Functions
Variables
Enumerations
Enumerator
Properties
ISpriteMesh.cs
1
//-----------------------------------------------------------------
2
// Copyright 2010 Brady Wright and Above and Beyond Software
3
// All rights reserved
4
//-----------------------------------------------------------------
5
6
7
using
UnityEngine;
8
using
System.Collections;
9
10
11
// Provides a generic interface to an object
12
// that serves to encapsulate a sprite's mesh
13
// functionality. This allows a sprite to be
14
// either managed (use a shared mesh), or
15
// unmanaged (have its own mesh), without having
16
// to worry much about the difference.
17
public
interface
ISpriteMesh
18
{
19
SpriteRoot
sprite
20
{
21
get
;
22
set;
23
}
24
25
Texture texture
26
{
27
get
;
28
}
29
30
Material material
31
{
32
get
;
33
}
34
35
Vector3[] vertices
36
{
37
get
;
38
}
39
40
Vector2[] uvs
41
{
42
get
;
43
}
44
45
Vector2[] uvs2
46
{
47
get
;
48
}
49
50
bool
UseUV2
51
{
52
get
;
53
set;
54
}
55
56
void
Init();
57
58
void
UpdateVerts();
59
60
void
UpdateUVs();
61
62
void
UpdateColors(Color color);
63
64
void
Hide(
bool
tf);
65
66
bool
IsHidden();
67
}
SpriteRoot
The root class of all sprites. Does not assume any animation capabilities or atlas packing...
Definition:
SpriteRoot.cs:628
anbsoft
Documents
Projects
Atlas Builder
Assets
Plugins
Sprite Scripts
Support
ISpriteMesh.cs
Generated on Tue Mar 4 2014 13:20:39 for SpriteManager 2 by
1.8.6