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

大约有 830 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)

811. laya.ui.List_API3.0 [ 42%]

...了一个 List 实例。 package { import laya.ui.List; import laya.utils.Handler; public class List_Example { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load([...

来源: Laya3.0_api 发布时间: 20231115

812. laya.ui.Tab_API3.0 [ 42%]

...建了一个 Tab 实例。 package { import laya.ui.Tab; import laya.utils.Handler; public class Tab_Example { public function Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], H...

来源: Laya3.0_api 发布时间: 20231115

813. 报无法找到资源,未升级ide之前不报错 [ 41%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls&...

来源: Laya_社区 发布时间: 20230713

814. 为什么会出现报错 ani not found:ufo1_down [ 41%]

...this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1...

来源: Laya_社区 发布时间: 20170525

815. AI编码环境:CodingMCP · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...` 前缀**访问所有引擎类和静态方法。 ✅ `Laya.Sprite`, `Laya.Handler.create(...)` ❌ `Sprite`, `Handler` --- ## 入口规范 (Entry.ts) 入口函数结构固定,禁止修改: ```typescript export async function main() { /* 正式初始化逻辑 */ } ``` ❌ 禁止提交测试代...

来源: Laya3.0_文档 发布时间: 20260128

816. 【简单跑酷--JS版】---Lv.6 终篇 [ 39%]

...播放动画 Tween.to(item, {y : -10, scaleX : 0.1, alpha : 0}, 300, null, Handler.create(this, this.itemTweenComplete, [item])); this.updateScore(); } } } } //人物如果踩到地板了 就把人物的坐标设置到地板上面 this.player.y = floor.y; //如果到地板上面的 就得重置跳...

来源: Laya_社区 发布时间: 20160803

817. 为什么会出现报错 ani not found:ufo1_down [ 39%]

...this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1...

来源: Laya_社区 发布时间: 20170525

818. 预制体模块 · LayaAir3文档 · LAYABOX [ 38%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效...

来源: Laya3.0_文档 发布时间: 20241014

819. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效...

来源: Laya3.0_文档 发布时间: 20251105

820. laya.ui.TextInput_API3.0 [ 37%]

...e { import laya.display.Stage; import laya.ui.TextInput; import laya.utils.Handler; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load...

来源: Laya3.0_api 发布时间: 20231115