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

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

2541. Unity导出插件导出的模型中Transform值有误 [ 66%]

...ionEuler是-90,0,0 导出成ls以后,通过打印节点:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图:   另外这个模型有点特殊,这个节点(XCD_zhaz...

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

2542. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 66%]

.../Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的。。跟文档...

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

2543. IOS微信内置浏览器陀螺仪问题 Laya2.4.0bate [ 66%]

...n', function(event)  {}) Laya.Gyroscope.instance.on(Laya.Event.CHANGE, thisthis.onDeviceorientation);  连接打开方式都由微信扫一扫打开,safari不支持此demo运行 查找到资料地址: https://caniuse.com/#search=deviceorientation ios测试微信浏览器页面地址: https:/...

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

2544. Graphics如何设置fillStyle和strokeStyle不同透明度 [ 66%]

...但是可以完全透明, 相应位置的参数为空即可   例如: this.graphics.drawPath(0, 0, Yu_path3, {fillStyle: "#ffffff"}, {"strokeStyle":"#E3E3E5","lineWidth":2}); 填充色为白色   this.graphics.drawPath(0, 0, Yu_path3, null, {"strokeStyle":"#E3E3E5","lineWidth":2}); 无填充...

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

2545. 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

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

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

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

2547. 怎么打开第二个工程 [ 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

2548. 加载预制体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

2549. 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

2550. 一个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