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

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

2101. LayaNative端使用.ttf字体 [ 67%]

... laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("hu....

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

2102. 文本-禁止编辑 [ 67%]

...tils.Browser; import laya.webgl.WebGL; public class Text_Editable { public function Text_Editable() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scal...

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

2103. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 67%]

...mage跟skin赋值的操作是不一样的。你这样调整下就行了: function showui() { showui.super(this); var arr2 = new Array(); arr2.push(this.dimg); this.dimg.on(Laya.Event.CLICK, this,apeclick2, arr2); } function apeclick2(that) { console.log("apeclick sucess"); that.skin = "../img/5.jp...

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

2104. 微信小游戏的位图字体加载报错! [ 67%]

...晰的解决方法! gameThirdScriptError t.getElementsByTagName is not a function TypeError: t.getElementsByTagName is not a function     at t.e.parseFont (http://127.0.0.1:63921/game/code.js:1:12413)     at e.s.onLoaded (http://127.0.0.1:63921/game/code.js:1:176642)     at e.u (http://127.0...

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

2105. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 67%]

...  Laya.stage.addChild(sp3);         Laya.timer.frameLoop(2,null,function()             {                 sp3.rotation = sp3.rotation+10;             }         ); 2019-11-12 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个sprite ...

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

2106. 微信小游戏分包加载libs/laya.physics3D.js,加载成功但不能使用 [ 67%]

... '3d', // name 可以填 name 或者 root             success: function (res) {                 console.log('res ----------> ',res);                 // 分包加载成功后通过 success 回调                 console.log("success");  ...

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

2107. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 66%]

...台事件  window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInputting()) Input["inputElement"].target.focus =...

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

2108. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 66%]

...现了,但觉得不应该这样弄,求指点:         private function showPic():void         {             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {        ...

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

2109. 使用Tween.to完成回调异常! [ 66%]

...:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结果执行次数很多之后,发现场景上有...

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

2110. 列表里的元素可以播放动画吗 [ 66%]

...接加载的动画然后逐一波放,你可以看一下!    public function StorePage()         {             this.storelist.array = HostData.array //对list进行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当l...

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