C# Класс Sprite, NanoGUI

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_texturRenderRotatePivot Vector2
_texture Texture
_textureRenderRect Rect
_textureSelfRect Rect

Открытые методы

Метод Описание
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

Описание методов

Sprite() публичный Метод

public Sprite ( ) : System.Collections
Результат System.Collections

Sprite() публичный Метод

public Sprite ( Texture texture ) : System.Collections
texture Texture
Результат System.Collections

Sprite() публичный Метод

public Sprite ( Texture texture, float textureWidth, float textureHeight ) : System.Collections
texture Texture
textureWidth float
textureHeight float
Результат System.Collections

destroy() публичный Метод

public destroy ( ) : void
Результат void

hitTestMouseDispatch() публичный Метод

public hitTestMouseDispatch ( string type, Vector2 vec ) : bool
type string
vec Vector2
Результат bool

hitTestTouchDispatch() публичный Метод

public hitTestTouchDispatch ( string type, Touch touch ) : bool
type string
touch Touch
Результат bool

hittest() публичный Метод

public hittest ( Vector2 vec ) : bool
vec Vector2
Результат bool

render() публичный Метод

public render ( ) : void
Результат void

setHotAreaSize() публичный Метод

public setHotAreaSize ( float width, float height ) : void
width float
height float
Результат void

setTexutre() публичный Метод

public setTexutre ( Texture texture, float textureWidth, float textureHeight ) : void
texture Texture
textureWidth float
textureHeight float
Результат void

updateBoundRect() публичный Метод

public updateBoundRect ( ) : void
Результат void

Описание свойств

_texturRenderRotatePivot защищенное свойство

protected Vector2 _texturRenderRotatePivot
Результат Vector2

_texture защищенное свойство

protected Texture _texture
Результат Texture

_textureRenderRect защищенное свойство

protected Rect _textureRenderRect
Результат Rect

_textureSelfRect защищенное свойство

protected Rect _textureSelfRect
Результат Rect