大约有 1,924 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)
...修改代码,如下所示: //初始化引擎 Laya.init(1280,720); //自定义文件名称 this.mFontName = "diyFont"; this.mBitmapFont = new Laya.BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 this.mBitmapFont.loadFont("font/test.fnt",new Laya.Handler(this,onLoaded));...
来源: Laya_社区 发布时间: 20170829
...ext() { GradientText.super(this); //自定义的脚本会有时序问题,所以在此添加一个延时 this.frameOnce(2, this, this.init); } Laya.class(GradientText, "effect.GradientText", _super); let _prot...
来源: Laya_社区 发布时间: 20180824
...象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //添加背景 var bg = new Background(); this.addChild(bg); //添加地板集合 var mapFloor = new...
来源: Laya_社区 发布时间: 20160728
...材本身也是循环的。但是不知道为什么会跳帧。 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 发布到vivo平台后,龙骨动画无法显示 问题状态 最新活动: 2018-04-06 10:48 浏览: 784 关注: 3 人
来源: Laya_社区 发布时间: 20180404
...运行报错 Uncaught Can not find scene:GameView.scene undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Cannot read property 'displayObject' of null Laya2.1.0 JS调用Java PlatformClass undefined [TMA][ER...
来源: Laya_社区 发布时间: 20180709
...](https://ke.qq.com/course/417469 ) ---------- LayaAir2.0开始,支持自定义脚本到编辑器,方便扩展已有组件功能  如果想在编辑器内展示脚本定义的属性,可用通过特殊注释来实现 比如下面的脚本类:  ...
来源: Laya2.0_文档 发布时间: 20201213
...锁定, 无法添加新回复 发起人 anlijames 相关问题 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? TextInput重写onFocus和onBlur...
来源: Laya_社区 发布时间: 20170517
...(Default层) this.mesh1Render.layer = 0; //设置mesh2位于1层(自定义的第一个层) this.mesh2Render.layer = 1; //让光的遮罩与指定的0和1层发生交互,只照亮0和1层 this.light1Render.layerMask = 1 << 0 | 1 << 1; } } 3.1.2 照亮所有层 假如,我们不...
来源: Laya3.0_文档 发布时间: 20251010
...e运行报错! 导微信小程序报错window.focus is not a function 自定义场景类导出layaMaxUI.ts有前缀导致报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undef...
来源: Laya_社区 发布时间: 20180110
...且还被拉伸了 请问laya有没有地图编辑器工具? 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:打地鼠 AS、JS、TS版本 Demo! 分享:适配LayaAir版本的PureMVC框架 如何通过命令行工具构建和发布项目 laya2的Scene默认是...
来源: Laya_社区 发布时间: 20201218