m4m.framework.rawImage2D

@meta4d/engine / Exports / m4m / framework / rawImage2D

Class: rawImage2D

m4m.framework.rawImage2D

language zh_CN

classdesc 2d图片组件

参照UGUI的思路,rawImage只拿整个图片来显示,不关心Sprite、九宫、填充等。这些统一都在iamge中处理

version m4m 1.0

Implements

Table of contents

Properties

Constructors

Methods

Accessors

Properties

color

color: color

language zh_CN

classdesc 颜色

version m4m 1.0

Defined in

framework/2d/component/rawimage.ts:67


transform

transform: transform2D

language zh_CN

classdesc 当前组件的2d节点

version m4m 1.0

Implementation of

IRectRenderer.transform

Defined in

framework/2d/component/rawimage.ts:329


ClassName

Static Readonly ClassName: string = "rawImage2D"

Defined in

framework/2d/component/rawimage.ts:17

Constructors

constructor

new rawImage2D()

Methods

getDrawBounds

getDrawBounds(): rect

language zh_CN

classdesc 获取渲染绘制矩形边界

version m4m 1.0

Returns

rect

Implementation of

IRectRenderer.getDrawBounds

Defined in

framework/2d/component/rawimage.ts:109


getMaterial

getMaterial(): material

language zh_CN

classdesc 获取rander 的材质

version m4m 1.0

Returns

material

Implementation of

IRectRenderer.getMaterial

Defined in

framework/2d/component/rawimage.ts:93


onPlay

onPlay(): void

Returns

void

Implementation of

IRectRenderer.onPlay

Defined in

framework/2d/component/rawimage.ts:310


setShaderByName

setShaderByName(shaderName): void

language zh_CN

classdesc 设置rander Shader名字

version m4m 1.0

Parameters

Name
Type

shaderName

string

Returns

void

Defined in

framework/2d/component/rawimage.ts:82

Accessors

image

get image(): texture

language zh_CN

classdesc 图片

version m4m 1.0

Returns

texture

Defined in

framework/2d/component/rawimage.ts:40

set image(_image): void

language zh_CN

classdesc 图片

version m4m 1.0

Parameters

Name
Type

_image

Returns

void

Defined in

framework/2d/component/rawimage.ts:44

Last updated