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

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

961. 请问下 再config.js中 使用alert(); 可以点确定后在触发某个方法吗?或者有其他方法吗 [ 51%]

...链接 提交 3 个回复 Monica - 知识达人 赞同来自: https://ask.layabox.com/question/10737 2018-01-16 0 1 分享 微博 QZONE 微信 浪货界扛把子 赞同来自: 用不了,求官方示例 2018-01-19 0 3 分享 微博 QZONE 微信 浪货界扛把子 赞同来自: 附件 app-release.ra...

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

962. 关于loader加载Loader.JSON的一些问题 [ 51%]

...问题 今天在处理本地JSON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res);   //放置方块 }), null, Laya.Loader.JSON); }   代码运行到这老是报错,报错原因是有不认识的字符,我想...

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

963. 如何获取unity导出的摄像机 [ 51%]

...找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 你场景加载好之后才能获取相机,这个加载是异步的,这代码就是没等加载成功就去获取,就会获取不到。 2018-08-08 0 8 分享 微博 QZONE 微信 苏栢 赞同来...

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

964. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 51%]

...应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya.Image; private skin_...

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

965. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 51%]

Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX ...

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

966. UNITY导出的模型旋转不了 [ 51%]

...各种方法,就是不能旋转。unity中很简单的一个box,通过laya插件导出的。 代码见附件 附件 : --> 1.rar 2020-06-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 GameMonkey 赞同...

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

967. 关于闭包的问题 [ 51%]

.../ letterList.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[pa...

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

968. 绘制形状时事件不触发 [ 51%]

... function myRing(x,y,r1,color1,r2,color2) {         this.sprite = new Laya.Sprite();     this.sprite.on('mousedown', this, on_down);     this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2);     this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0);     function on_down(e...

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

969. 为什么new不出Rectangle的类,提示not defined [ 51%]

为什么new不出Rectangle的类,提示not defined laya.core.js也引入了啊 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: 环境确定是好的?可以new 的啊 2018-0...

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

970. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 51%]

...好最近做到这一块,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.v...

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