C# Class Sprite, NanoGUI

Inheritance: MonoBehaviour
Mostrar archivo Open project: hxflyer/NanoGUI Class Usage Examples

Protected Properties

Property Type Description
_texturRenderRotatePivot Vector2
_texture Texture
_textureRenderRect Rect
_textureSelfRect Rect

Public Methods

Method 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 method

public Sprite ( ) : System.Collections
return System.Collections

Sprite() public method

public Sprite ( Texture texture ) : System.Collections
texture Texture
return System.Collections

Sprite() public method

public Sprite ( Texture texture, float textureWidth, float textureHeight ) : System.Collections
texture Texture
textureWidth float
textureHeight float
return System.Collections

destroy() public method

public destroy ( ) : void
return void

hitTestMouseDispatch() public method

public hitTestMouseDispatch ( string type, Vector2 vec ) : bool
type string
vec Vector2
return bool

hitTestTouchDispatch() public method

public hitTestTouchDispatch ( string type, Touch touch ) : bool
type string
touch Touch
return bool

hittest() public method

public hittest ( Vector2 vec ) : bool
vec Vector2
return bool

render() public method

public render ( ) : void
return void

setHotAreaSize() public method

public setHotAreaSize ( float width, float height ) : void
width float
height float
return void

setTexutre() public method

public setTexutre ( Texture texture, float textureWidth, float textureHeight ) : void
texture Texture
textureWidth float
textureHeight float
return void

updateBoundRect() public method

public updateBoundRect ( ) : void
return void

Property Details

_texturRenderRotatePivot protected_oe property

protected Vector2 _texturRenderRotatePivot
return Vector2

_texture protected_oe property

protected Texture _texture
return Texture

_textureRenderRect protected_oe property

protected Rect _textureRenderRect
return Rect

_textureSelfRect protected_oe property

protected Rect _textureSelfRect
return Rect