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

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

2551. Laya3D init error,must support webGL [ 66%]

...方式:在LayaAirIDE根目录\resources\app\out找到main.js,打开在this.app.once("ready")这行上面加一行: this.app.commandLine.appendSwitch("ignore-gpu-blacklist"); 保存,重启IDE再试试(我试过是可以的 ) 2019-04-13 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

2552. 转换2D屏幕坐标系统到3D正交投影下的坐标系统位置偏差 [ 66%]

... _camera.convertScreenCoordToOrthographicCoord(new Vector3(800, 700, 0), this.orthographicPos); 附件 : --> 2022-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Fred 赞同来自: 您可以参考下面...

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

2553. 怎么打开第二个工程 [ 66%]

...{ public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.style.position ="absolute";//设置布局定位。这个不能少。 iframe.style.zIndex =...

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

2554. 加载预制体json,返回值不统一 [ 66%]

... 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj)...

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

2555. Animation的createFrames为何加载不了有的图集资源 [ 66%]

...{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():void { //Animation.createFrames(["res/atlas/monsterbeattack/0.png","res/atlas/monsterbeattack/1.png","res/atlas/monsterbeattack/2.png"], "aa") Animation.createF...

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

2556. 一个list钟我添加了renderHandler回调但是里面的初始化回调执行了两次!!! [ 66%]

...r Handler = laya.utils.Handler; seltInf._list0.renderHandler = new Handler(this, onListRender1); function onListRender1(item,index) { var btn=item.getChildByName('btn_true'); trace(btn); btn.on(Laya.Event.CLICK,this,function(){ trace("dadasdads"); }); } cuixueying • 2017-08-04 11:36 把...

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

2557. 分享:SWF LABEL标签的使用! [ 66%]

...EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.addLabel("label01",19); mc.addLabel("label02",39); mc.addLabel("label03",59); mc.on(Event.LABEL,this,onLabel);//运行到对应的帧数,会...

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

2558. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 66%]

...2018-03-28 10:33 var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/...

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

2559. 绘制图形的BUG [ 66%]

...常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{rotation:360},3000); } override public function get width():Number{ return _shape.width; } override public function get height():Number{ return _shape.height; } } } BUG2:package ui.test { import laya.display.Sprite; impo...

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

2560. List数据源的格式问题导致无法响应List的SelectHandler [ 66%]

...hange(eventType:String, property:String, value:Object):void { var data:* = this[property]; this[property] = value; if (value != data) { var result:Boolean = event(eventType , {oldValue:data , newValue:value}); } } }现在问题就出在Data这个类上面,如果将Data修改为继承Obejct,则Li...

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