C# Class Sprite, NanoGUI

Inheritance: MonoBehaviour
Afficher le fichier Open project: hxflyer/NanoGUI Class Usage Examples

Protected Properties

Свойство Type Description
_texturRenderRotatePivot Vector2
_texture Texture
_textureRenderRect Rect
_textureSelfRect Rect

Méthodes publiques

Méthode Description
Sprite ( ) : System.Collections
Sprite ( Texture texture ) : System.Collections
Sprite ( Texture texture, float textureWidth, float textureHeight ) : System.Collections
destroy ( ) : void
hitTestMouseDispatch ( string type, Vector2 vec ) : bool
hitTestTouchDispatch ( string type, Touch touch ) : bool
hittest ( Vector2 vec ) : bool
render ( ) : void
setHotAreaSize ( float width, float height ) : void
setTexutre ( Texture texture, float textureWidth, float textureHeight ) : void
updateBoundRect ( ) : void

Method Details

Sprite() public méthode

public Sprite ( ) : System.Collections
Résultat System.Collections

Sprite() public méthode

public Sprite ( Texture texture ) : System.Collections
texture Texture
Résultat System.Collections

Sprite() public méthode

public Sprite ( Texture texture, float textureWidth, float textureHeight ) : System.Collections
texture Texture
textureWidth float
textureHeight float
Résultat System.Collections

destroy() public méthode

public destroy ( ) : void
Résultat void

hitTestMouseDispatch() public méthode

public hitTestMouseDispatch ( string type, Vector2 vec ) : bool
type string
vec Vector2
Résultat bool

hitTestTouchDispatch() public méthode

public hitTestTouchDispatch ( string type, Touch touch ) : bool
type string
touch Touch
Résultat bool

hittest() public méthode

public hittest ( Vector2 vec ) : bool
vec Vector2
Résultat bool

render() public méthode

public render ( ) : void
Résultat void

setHotAreaSize() public méthode

public setHotAreaSize ( float width, float height ) : void
width float
height float
Résultat void

setTexutre() public méthode

public setTexutre ( Texture texture, float textureWidth, float textureHeight ) : void
texture Texture
textureWidth float
textureHeight float
Résultat void

updateBoundRect() public méthode

public updateBoundRect ( ) : void
Résultat void

Property Details

_texturRenderRotatePivot protected_oe property

protected Vector2 _texturRenderRotatePivot
Résultat Vector2

_texture protected_oe property

protected Texture _texture
Résultat Texture

_textureRenderRect protected_oe property

protected Rect _textureRenderRect
Résultat Rect

_textureSelfRect protected_oe property

protected Rect _textureSelfRect
Résultat Rect