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

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

941. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 61%]

...; sprite_.graphics.drawRect(100, 50, 200, 90); sprite_.graphics.endFill(); addChild(sprite_); 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: package { import laya.display.Sprite...

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

942. 关于闭包的问题 [ 61%]

...t.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })...

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

943. Laya.Handler.create 回调参数问题 [ 61%]

...a.stage.bgColor = "#999911";  ape = new Laya.Sprite();     Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,graphicsImg,ag));   graphicsImg(ag); }  function graphicsImg(args) { console.log(args); }   //loadIma...

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

944. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 61%]

...ruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; ...

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

945. U3D导出两个相同的特效。有一个不显示 [ 61%]

...w LoginPanel(); // loginPanel.init(); var s = new Laya.Scene(); Laya.stage.addChild(s); s.addChild(Laya.Sprite3D.load("res/h5/LayaScene_camera/camera.lh")); Laya.Sprite3D.instantiate(Laya.loader.getRes("res/h5/LayaScene_Effect/Effect.lh"),s,true); Laya.Sprite3D.instantiate(Laya.loader.getRes("res/h5...

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

946. 为什么我的hello laya是这样的 [ 61%]

...new Laya.Text(); txt.text="Hello World"; txt.color = "#ffffff"; Laya.stage.addChild(txt); 就这么两行啊 附件 : --> 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Xq 赞同来自: 你把没...

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

947. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 61%]

...    this.skeleton = this.templet.buildArmature();         Laya.stage.addChild(this.skeleton);         this.skeleton.pos(laya_width/2,laya_height/2);         this.skeleton.scale(0.5, 0.5);         this.skeleton.on(Event.STOPPED, this, this.play);         this.play();     }   ...

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

948. 添加了MouseJoint没有效果 [ 61%]

...a.physics.RigidBody); ropePart.addComponentIntance(mouseJoint); Laya.stage.addChild(ropePart); 2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

949. List 组件做的手风琴Demo [ 61%]

...BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.renderHandler =new Laya.Handler(this,this.updateItem);         this.listArr.push(list); //----------------------------------------------------...

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

950. Image [ 61%]

...age()             image.source = img___             Laya.stage.addChild(image)         } 舞台上没有图   2017-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 佟掌柜 赞同来自: var ...

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