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

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

301. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/layaAir.mp4").then(() => { this.video.play(); //播放视频 }); }) } } 如果是在LayaAir IDE中运行,则VideoNode无需通过事件触发播放。但是在Chrome中,自动播放只允许静...

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

302. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...ources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调...

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

303. 微信小游戏IDE加载位图字体,提示错误 [ 46%]

...nt.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17)     at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11)     at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15)     at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:...

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

304. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

305. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

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

...添加到舞台 Laya.stage.addChild(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); // 设置...

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

307. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 45%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

308. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 45%]

...tion.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core....

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

309. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100;...

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

310. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSlider)); } private placeHSlider(): void { let hs: Laya.Slider = new Laya.HSlider(); hs.skin = "hslider.png"; hs.width = 300; hs.pos(50, 500); hs.min = 0; hs.max = 100; ...

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