• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0012 秒)

1. 加载-销毁Texture使用的图片资源 [ 100%]

...eUp(evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; this.isDestroyed = false; this.txt.text = "销毁"; } else { //通过设置 visible=false ,来停止渲染对象 this.spBg.vis...

来源: Laya2.0_示例 发布时间: 20241001

2. IDE-显示IDE创建的界面 [ 90%]

...st赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } private onListRender(item: Laya.Box, index: number): void { //自定义list的渲染方式 var label: Label = it...

来源: Laya2.0_示例 发布时间: 20200319

3. 混合模式-Lighter [ 75%]

... Tween(); this.setup(); } setup() { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } createPhoenixes() { let scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 混合模式的凤凰 le...

来源: Laya2.0_示例 发布时间: 20241001