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

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

3021. 图片显示好奇怪 [ 55%]

...AirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addC...

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

3022. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 55%]

...on Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new S...

来源: Laya2.0_文档 发布时间: 20210714

3023. 有关PathFinding.js [ 55%]

..., 0], ]; var grid = PF.core.Grid(matrix);   然后就报错了 TypeError: this._buildNodes is not a function at Object.Grid (file:///D:/Layabox/PathFinding/bin/libs/laya.pathfinding.js:41:19) at LayaAir3D.pathFindingTest (file:///D:/Layabox/PathFinding/bin/js/LayaAir3D.js:39:33) at new LayaAir3D (f...

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

3024. 如何获取脚本组件中动效模板实例对象? [ 55%]

...例啊?如果是UI类,可以通过设置var变量,在UI类中直接this.动效模板名字使用,但是脚本组件中怎么办呢?脚本组件中,即使设置了var变量,也是无法获取到这个动效模板对象的啊?求解? 2021-01-25 添加评论 免费帖 --> 分享 微...

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

3025. mac系统下 TypeScript 语言 ,声音无法播放? [ 55%]

...赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{               console.log("load light.mp3");               Laya.SoundManager.playMusic("res/sounds/light.mp3");                 Laya.SoundManager.playSound("res/sound...

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

3026. 如何在加载图片同时使其在舞台居中? [ 55%]

...时使其在舞台居中? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); 因为我之前1.0可以使用以上方法,但切换到2.0发现complete不触发,这让我如何是好? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

3027. TS怎么获取json中的数据? [ 55%]

...3 不行啊, 拿不到数据啊 Laya.loader.load(fileURL, Handler.create(this, null), null, Laya.Loader.JSON); let strJson: JSON = Laya.loader.getRes(fileURL); strJson: undefined

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

3028. 请问在HTMLDivElement中onclick属性应当怎么用呢? [ 55%]

...怎么用呢? <img src="30.png" style="width:100;height:100" onclick="this.style.display='none';" />   例如如上代码,有onclick属性,但是具体如何使用呢? 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

3029. ios safari横屏下,鼠标点击不正确,且旋转屏幕时显示错位 [ 55%]

...wser.window.orientation; if (orientation !=null && orientation !=_$this._previousOrientation && _me._isInputting()){ Input["inputElement"].target.focus=false; } _$this._previousOrientation=orientation; if (_me._isInputting())return; if (Browser.onSafari) _me._safariOffsetY=Browser.cl...

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

3030. When asking questions, remember these two tips: [ 55%]

...and the error message alongside the error stacktrace.Use a picture to show this information. 2017-12-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 本提示面向外国友人 2017-12-2...

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