C# Class SpriteManager, flixel4unity

Inheritance: MonoBehaviour
Afficher le fichier Open project: jminor/flixel4unity Class Usage Examples

Méthodes publiques

Свойство Type Description
allocBlockSize int
autoUpdateBounds bool
material Material
plane SPRITE_PLANE
sprites Zprite[]
winding WINDING_ORDER

Protected Properties

Свойство Type Description
UVs Vector2[]
activeBillboards ArrayList
activeBlocks ArrayList
availableBlocks ArrayList
boundUpdateInterval float
colors Color[]
colorsChanged bool
mesh Mesh
meshFilter MeshFilter
meshRenderer MeshRenderer
triIndices int[]
updateBounds bool
uvsChanged bool
vertCountChanged bool
vertices Vector3[]
vertsChanged bool

Méthodes publiques

Méthode Description
AddSprite ( GameObject client, float width, float height, Vector2 lowerLeftUV, Vector2 UVDimensions, bool billboarded ) : Zprite,
AddSprite ( GameObject client, float width, float height, int leftPixelX, int bottomPixelY, int pixelWidth, int pixelHeight, bool billboarded ) : Zprite,
Awake ( ) : void
CancelBoundsUpdate ( ) : void
GetSprite ( int i ) : Zprite
HideSprite ( Zprite sprite ) : void
LateUpdate ( ) : void
PixelCoordToUVCoord ( Vector2 xy ) : Vector2
PixelCoordToUVCoord ( int x, int y ) : Vector2
PixelSpaceToUVSpace ( Vector2 xy ) : Vector2
PixelSpaceToUVSpace ( int x, int y ) : Vector2
RemoveSprite ( Zprite sprite ) : void
ScheduleBoundsUpdate ( float seconds ) : void
SetBillboarded ( Zprite sprite ) : void
ShowSprite ( Zprite sprite ) : void
Start ( ) : void
Transform ( Zprite sprite ) : void
TransformBillboarded ( Zprite sprite ) : void
UpdateBounds ( ) : void
UpdateColors ( Zprite sprite ) : void
UpdatePositions ( ) : void
UpdateUV ( Zprite sprite ) : void

Méthodes protégées

Méthode Description
EnlargeArrays ( int count ) : int
InitArrays ( ) : void

Method Details

AddSprite() public méthode

public AddSprite ( GameObject client, float width, float height, Vector2 lowerLeftUV, Vector2 UVDimensions, bool billboarded ) : Zprite,
client GameObject
width float
height float
lowerLeftUV Vector2
UVDimensions Vector2
billboarded bool
Résultat Zprite,

AddSprite() public méthode

public AddSprite ( GameObject client, float width, float height, int leftPixelX, int bottomPixelY, int pixelWidth, int pixelHeight, bool billboarded ) : Zprite,
client GameObject
width float
height float
leftPixelX int
bottomPixelY int
pixelWidth int
pixelHeight int
billboarded bool
Résultat Zprite,

Awake() public méthode

public Awake ( ) : void
Résultat void

CancelBoundsUpdate() public méthode

public CancelBoundsUpdate ( ) : void
Résultat void

EnlargeArrays() protected méthode

protected EnlargeArrays ( int count ) : int
count int
Résultat int

GetSprite() public méthode

public GetSprite ( int i ) : Zprite
i int
Résultat Zprite

HideSprite() public méthode

public HideSprite ( Zprite sprite ) : void
sprite Zprite
Résultat void

InitArrays() protected méthode

protected InitArrays ( ) : void
Résultat void

LateUpdate() public méthode

public LateUpdate ( ) : void
Résultat void

PixelCoordToUVCoord() public méthode

public PixelCoordToUVCoord ( Vector2 xy ) : Vector2
xy Vector2
Résultat Vector2

PixelCoordToUVCoord() public méthode

public PixelCoordToUVCoord ( int x, int y ) : Vector2
x int
y int
Résultat Vector2

PixelSpaceToUVSpace() public méthode

public PixelSpaceToUVSpace ( Vector2 xy ) : Vector2
xy Vector2
Résultat Vector2

PixelSpaceToUVSpace() public méthode

public PixelSpaceToUVSpace ( int x, int y ) : Vector2
x int
y int
Résultat Vector2

RemoveSprite() public méthode

public RemoveSprite ( Zprite sprite ) : void
sprite Zprite
Résultat void

ScheduleBoundsUpdate() public méthode

public ScheduleBoundsUpdate ( float seconds ) : void
seconds float
Résultat void

SetBillboarded() public méthode

public SetBillboarded ( Zprite sprite ) : void
sprite Zprite
Résultat void

ShowSprite() public méthode

public ShowSprite ( Zprite sprite ) : void
sprite Zprite
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Transform() public méthode

public Transform ( Zprite sprite ) : void
sprite Zprite
Résultat void

TransformBillboarded() public méthode

public TransformBillboarded ( Zprite sprite ) : void
sprite Zprite
Résultat void

UpdateBounds() public méthode

public UpdateBounds ( ) : void
Résultat void

UpdateColors() public méthode

public UpdateColors ( Zprite sprite ) : void
sprite Zprite
Résultat void

UpdatePositions() public méthode

public UpdatePositions ( ) : void
Résultat void

UpdateUV() public méthode

public UpdateUV ( Zprite sprite ) : void
sprite Zprite
Résultat void

Property Details

UVs protected_oe property

protected Vector2[] UVs
Résultat Vector2[]

activeBillboards protected_oe property

protected ArrayList activeBillboards
Résultat ArrayList

activeBlocks protected_oe property

protected ArrayList activeBlocks
Résultat ArrayList

allocBlockSize public_oe property

public int allocBlockSize
Résultat int

autoUpdateBounds public_oe property

public bool autoUpdateBounds
Résultat bool

availableBlocks protected_oe property

protected ArrayList availableBlocks
Résultat ArrayList

boundUpdateInterval protected_oe property

protected float boundUpdateInterval
Résultat float

colors protected_oe property

protected Color[] colors
Résultat Color[]

colorsChanged protected_oe property

protected bool colorsChanged
Résultat bool

material public_oe property

public Material material
Résultat Material

mesh protected_oe property

protected Mesh mesh
Résultat Mesh

meshFilter protected_oe property

protected MeshFilter meshFilter
Résultat MeshFilter

meshRenderer protected_oe property

protected MeshRenderer meshRenderer
Résultat MeshRenderer

plane public_oe property

public SPRITE_PLANE plane
Résultat SPRITE_PLANE

sprites public_oe property

public Zprite[] sprites
Résultat Zprite[]

triIndices protected_oe property

protected int[] triIndices
Résultat int[]

updateBounds protected_oe property

protected bool updateBounds
Résultat bool

uvsChanged protected_oe property

protected bool uvsChanged
Résultat bool

vertCountChanged protected_oe property

protected bool vertCountChanged
Résultat bool

vertices protected_oe property

protected Vector3[] vertices
Résultat Vector3[]

vertsChanged protected_oe property

protected bool vertsChanged
Résultat bool

winding public_oe property

public WINDING_ORDER winding
Résultat WINDING_ORDER