大约有 6,867 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0116 秒)
Laya_社区(6327) Laya3.0_api(182) Laya2.0_文档(122) Laya2.0_api(94) Laya3.0_文档(74) laya_api(62) Laya2.0_示例(3) Laya_示例(3)
Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"]; Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show...
来源: Laya_社区 发布时间: 20181018
调用 Laya.Pool.getItemByCreateFun 报错 /** @prop {name:rolePrefabs, tips:"英雄角色", type:Vector, xCount:1, sType:Prefab}*/ public rolePrefabs: Laya.Prefab[]; //TODO 报错 let role2 = Laya.Pool.getItemByCreateFun("role", this.rolePrefabs[0].create, this.rolePrefabs[0]); 附件 : --> BugRea...
来源: Laya_社区 发布时间: 20190304
使用 js 开发继承 Image 后,没法调用公共类方法 本人小白,刚接触 JS 不久,在用 JS 开发时, 自定义类继承 Image后,没法使用实例调用公共方法,会报错 以下我的代码 附件 : --> 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180131
按照官网教程调用摄像头还是报错,但是用layaair调试就能打开 如题。 按照官网教程,发布web,使用https调用摄像头还是报错,但是用layaair调试就能打开 测试了chrome、firefox、手机微信等都不行 附件 : --> 2020-11-24 添加评论 免费...
来源: Laya_社区 发布时间: 20201124
调用Laya.Browser.window.location.reload在手机真机中会造成短暂闪烁 在手机APP环境中使用Laya.Browser.window.location.reload时,程序会将渲染停止,1-2秒后再重新启动游戏。但在安卓手机真机环境中,在这段重启的时间内,渲染层级在最顶层...
来源: Laya_社区 发布时间: 20220317
3d模型预加载后二次调用报错 使用Laya.loader.create 预加载,第一次用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 可以创建,第二次再调用Laya.Sprite3D.load("xxx.lh").getChildAt(0) 创建就返回undefined了,help~ 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180307
LayaAir引擎 2.10之后shader调用customRender,context.drawTarget无效 https://blog.csdn.net/qq_28936845/article/details/108579979 这篇文章里的方法,再2.9版本的laya可以正常使用,但是升级到2.10及以后版本就失效了 另外希望laya团队出些官方的shader教程...
来源: Laya_社区 发布时间: 20210202
请问如何在Laya中调用微信小游戏game.js中自定义函数? 如题,我在微信小游戏game.js中声明的函数或变量,在Laya中都无法直接使用__JS__("函数名")来引用,都报错找不到函数,请问正确的引用方式是? 2020-02-27 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20200227
为什么调用封装的原生画线api不显示? js封装function drawLine(layaCvs,startX,startY,toX,toY,lineWidth,strokeStyle,lineCap) { var layaCanvas = layaCvs; var oContext = layaCanvas.getContext("2d"); oContext.beginPath(); oContext.moveTo(startX, startY); oContext.lineTo(toX, toY); oConte...
来源: Laya_社区 发布时间: 20180409
2.0组件式开发Script间互相调用、通信的官方推荐方式是什么呢 比如Node1有Script1,Node2有Script2,在Script1中要调用Script2应该怎么处理呢? 1、Script2做成static instance? 2、findeNode(Node2).getComponent(Script2).doSomeThing()? 类似这样吗,Script...
来源: Laya_社区 发布时间: 20200311