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

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

1101. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 71%]

...大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Laya.Handler(th...

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

1102. 微信小游戏,子域问题。 [ 71%]

...小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博 QZONE ...

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

1103. UI-Image [ 71%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("../../res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image();package { import laya.display.Stage; import l...

来源: Laya_示例 发布时间: 20251219

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

...//加载资源 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 (_super) { function ...

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

1105. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 71%]

...内容也是json的。 Laya.loader.create("prefab/car.json",Handler.create(this,onCar)); public function onCar(obj:Object):void{ var spr:Prefab = new Prafab();              spr.json=obj;             var car:Sprite = Pool.getItemByCreateFun("Car", this.spr.create, this.spr); ...

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

1106. 文本-单行输入 [ 71%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

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

1107. 请问这是原因? [ 71%]

...cs = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Laya.stage.m...

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

1108. layaBOX实时语音聊天与微信登陆接口分享 [ 71%]

... next) { var apiinfo = { appid: "123231", secret: "132321132" } var that = this; //获取TOEKN YIM.WXGetAccessToken(apiinfo, function (scope, data) { res.send(data); }); }); router.get('/code',function(req,res,next){ var appid = "123321" //获取CODE YIM.WXGetCode(appid,"http://app.aliiw.com/redirec...

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

1109. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 71%]

...onerror时没有重置customParse属性为false。 var res3DArr = [ { url: this.error_PATH }, { url: this.zombie_anim_path1 }, { url: this.zombie_anim_path2 }, { url: this.zombie_anim_path3 }, { url: this.zombie_anim_path4 }, { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader....

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

1110. 关于Timer中的loop方法 [ 71%]

...人 cike007 • 2017-08-27 16:20 var i=0; var t=new Laya.Timer(); t.loop(1,this, function () { i++; }) t.loop(1000,this, function () { console.log(i); i=0; }) 测试下 176*****233 • 2017-08-28 10:09 Timer是单例,不要实例它,直接使用Laya.timer.loop(); cike007 • 2017-08-28 13:32 @176***...

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