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

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

751. 问题10600的复现方式 [ 59%]

...0,WebGL); Laya.timer.callLater(this,onLater); Laya.timer.clearAll(this); } private function onLater():void{ trace("xxx"); } } } 2018-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...

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

752. timeline destroy的bug [ 59%]

timeline destroy的bug private numTimeLine: Laya.TimeLine;   release() {   this.numTimeLine.offAll();   this.numTimeLine.destroy(); } 我调用代码release时报错,发现core.js中先把_tweenDataList置null然后又引用了 附件 : --> 2017-06-10 添加评论 免费帖 --> 分享 微博 Q...

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

753. 怎么只用RegExp进行正则校验 [ 59%]

怎么只用RegExp进行正则校验 private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 我这样子写,直接传进去,运行报错 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

754. 设置音乐音量不能立即生效 [ 59%]

...1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 代码写错了: private function ChangeMusicVolume():void { SoundManager.setMusicVolume(0); } 用setMusicVolume就可以了! 2017-05-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

755. 浏览器接口 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...iniGame: boolean; /** 抖音小游戏*/ static onTTMiniGame: boolean; /** @private */ static onFirefox: boolean;//TODO:求补充 /** @private */ static onEdge: boolean;//TODO:求补充 /** @private */ static onLayaRuntime: boolean; 例如,我们可以这样在代码中判断: //如果是Chrome...

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

756. laya.ui.ProgressBar_API3.0 [ 58%]

...ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/pro...

来源: Laya3.0_api 发布时间: 20231115

757. 如何阻止 点击 继续传递 [ 58%]

...已邀请: 与内容相关的链接 提交 2 个回复 ssqhu 赞同来自: private function onPauseBtnClick(e:Event):void          {             //阻止后续节点的监听器             e.stopPropagation();     }   用这个方法就可以阻止后面的事件了。 ...

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

758. 分享:Graphics下cmds命令流的使用! [ 58%]

...','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=Loader.getRes('apes/...

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

759. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 58%]

...Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //this.text = new Laya.Label(); this.addChild(th...

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

760. 对象池使用报错 [ 58%]

对象池使用报错 private Board = new GiftBoard(); let board = Laya.Pool.getItemByClass("board",this.Board); 报下面这个错  cls is not a constructor 2017-12-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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