大约有 1,132 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)
Laya_社区(627) Laya3.0_api(176) Laya2.0_api(106) Laya2.0_文档(99) laya_api(79) Laya_示例(41) Laya3.0_文档(3) Laya2.0_示例(1)
在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"], Laya.Handler.create(this, function(){ }), Laya.Handler.create(this, function(e){ c...
来源: Laya_社区 发布时间: 20180101
...引擎对上述两种分辨率做了封装。 设备像素分辨率:Laya.Browser.clientWidth,Laya.Browser.clientHeight; 设备物理分辨率:Laya.Browser.width,Laya.Browser.height; 像素比:Laya.Browser.pixelRatio; 默认从浏览器获得的clientWidth不是像素...
来源: Laya2.0_文档 发布时间: 20200307
...次手动输入时,会出现底部有个黑色块的问题 在执行到laya.core.js中第16443行代码的input.focus()后就会出现黑色块,在重新点击之后黑色块会消失,有点影响体验,但input.focus()我暂时没找到定义,在注释之后不会出现黑色块,但web...
来源: Laya_社区 发布时间: 20230111
...享 微博 QZONE 微信 Six.Sir 赞同来自: 现在还有这个问题,laya官方人员能改一下吗? 2018-08-20 0 0 分享 微博 QZONE 微信 。 赞同来自: 用laya自己的Laya.timer类就行了 2018-08-20 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180327
Laya3D场景加载问题 测试内容:加载3D场景 代码如下: export default class TestUI extends ui.test.TestSceneUI { private resource: Array<String> = [ "gate/Conventional/Test.ls", ]; constructor() { super(); } onAwake(): void { ...
来源: Laya_社区 发布时间: 20190925
...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: ebaww LayaAir 2.x修改方法: 如果是源码版是BlendMode.ts 找到 static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.DST_ALPHA,true); } 替换为: stat...
来源: Laya_社区 发布时间: 20200917
...r undefined, Common,Events undefined等等 * 其实主要原因在于 1. laya会根据index.html顺序把各种js写入code.js 2. matter.js在生成code.js后他定义的var Matter并不是全局的,因此导致后面需要调用Matter的地方都会报错 > 比如在LayaRender.js中 ,会...
来源: Laya_社区 发布时间: 20180516
...3版本,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手...
来源: Laya_社区 发布时间: 20191215
...。 发布生成的时候,会出现code.js,这个code.js里面把所有laya.core.js/laya.webgl.js,包括自己的所有js文件都放到一块了。 大家在code.js最下面应该能找到自己写的代码。 这样,写一个index2.html,把所有js已用都去掉,只引用code.js一...
来源: Laya_社区 发布时间: 20180603
...回复 archerxy 赞同来自: cuixueying 看到错误那行代码了,在laya.core.js里764行 var tPadding=tInfo[0].attributes["padding"].nodeValue; 找到最终问题了,fnt文件格式问题 2017-05-24 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个需要你...
来源: Laya_社区 发布时间: 20170523