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

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

581. 模仿教程里的打地鼠写的代码,运行报错 [ 52%]

...r = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_sup...

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

582. laya.ui.List [ 52%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler单元格鼠标事件处理器(默认返回参数e:Event,index:int)。List mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件的捕获...

来源: Laya2.0_api 发布时间: 20190513

583. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 52%]

...文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:...

来源: Laya2.0_文档 发布时间: 20210714

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

...d { //加载引擎需要的资源 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 = new TestView(); //Laya.stage.addChild...

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

585. laya.ui.DialogManager [ 52%]

...s的normal模式。建议优先使用cacheAs代替。 Sprite  closeEffectHandler : Handler全局默认弹出对话框效果,可以设置一个效果代替默认的弹出效果,如果不想有任何效果,可以赋值为nullDialogManager customRenderEnable : Boolean[write-only] 设置是否...

来源: laya_api 发布时间: 20170929

586. Animation创建销毁的问题 [ 52%]

...画 Laya.loader.load(["res/fish_1/stand.atlas","res/fish_1/attack.atlas"], Handler.create(this, this.onAnimAtlasLoaded)); } } private function onAnimAtlasLoaded():void { testAnim1 = new Animation(); testAnim1.loadAnimation("res/fish_1/fish_1.ani"); Laya.stage.addChild(testAnim1); testAnim1.play(0,tr...

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

587. 如何通过代码控制prefab上面的时间轴动画animation? [ 52%]

...n(Laya.Event.COMPLETE, this, this.onPlayComplete); } attack(callback?:Laya.Handler){ this.ani_show.play(); if (callback) // 甚至可以加上回调 this.ani_show.once(Laya.Event.COMPLETE, this, ()=>{ callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSol...

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

588. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 51%]

...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...

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

589. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 51%]

...pFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, this.onFontLoaded, [bitmapFont])); } /** * 位图字体加载完成后的回调方法 * @param bitmapFont 实例后的位图字体对象 */ onFontLoaded(bitmapFont: Laya.BitmapFont): void { //如果采用系统...

来源: Laya2.0_文档 发布时间: 20210715

590. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 51%]

...F/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机         let ca...

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