大约有 63 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0066 秒)
...ted from Resource.cpuMemory Defined in laya/resource/Resource.ts:124 内存大小。 Returns number destroyed get destroyed(): boolean Inherited from Resource.destroyed Defined in laya/resource/Resource.ts:138 是否已销毁。 Returns boolean gpuMemory get gpuMemory(): number Inherited from Resour...
来源: Laya3.0_api 发布时间: 20231115
...age提供几种适配模式,不同的适配模式会产生不同的画布大小,画布越大,渲染压力越大,所以要选择合适的适配方案。 Stage提供不同的帧率模式,帧率越高,渲染压力越大,越费电,合理使用帧率甚至动态更改帧率有利于改进...
来源: Laya3.0_api 发布时间: 20231115
...text 的文本显示为粗体。 text.fontSize = 30;//设置 text 的字体大小。 text.wordWrap = true;//设置 text 的文本自动换行。 text.x = 100;//设置 text 对象的属性 x 的值,用于控制 text 对象的显示位置。 text.y = 100;//设置 text 对象的属性 y 的值,用...
来源: Laya3.0_api 发布时间: 20231115
...色。 passwordLabel.fontSize = 20;//设置 passwordLabel 的文本字体大小。 Laya.stage.addChild(passwordLabel);//将 passwordLabel 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 onInit(); funct...
来源: Laya3.0_api 发布时间: 20231115
...rom Text.fontSize Defined in laya/display/Text.ts:406 指定文本的字体大小(以像素为单位)。 默认为20像素,可以通过 Config.defaultFontSize 设置默认大小。 Returns number Inherited from Text.fontSize Defined in laya/display/Text.ts:410 指定文本的字体大小(以...
来源: Laya3.0_api 发布时间: 20231115
...畅; Sprite:统计所有渲染节点(包括容器)数量,它的大小会影响引擎进行节点遍历、数据组织和渲染的效率。其值越小,游戏运行效率越高; DrawCall:此值是决定性能的重要指标,其值越小,游戏运行效率越高。Canvas模式下...
来源: Laya3.0_api 发布时间: 20231115
...本显示为粗体。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.x = 100;//设置 textInput 对象的属性 x 的值,用于控制 textInput 对象的显示位置。 textInput.y = 100;//设置 textInp...
来源: Laya3.0_api 发布时间: 20231115
...显示为粗体。 textArea.fontSize = 20;//设置 textArea 的文本字体大小。 textArea.wordWrap = true;//设置 textArea 的文本自动换行。 textArea.x = 100;//设置 textArea 对象的属性 x 的值,用于控制 textArea 对象的显示位置。 textArea.y = 100;//设置 textArea 对...
来源: Laya3.0_api 发布时间: 20231115
...的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事件,会自动打开自己以及所...
来源: Laya3.0_api 发布时间: 20231115
...a/ui/ScaleBox" ScaleBox Class ScaleBox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior ...
来源: Laya3.0_api 发布时间: 20231115