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

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

391. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 51%]

....aa.shuchu();//输出这个组件num,结果为2,是LayaSample.bb的num console.info(s); }, 1000); } } class Child{ private _num:string; public num(n:string){ this._num = n; } public shuchu(){ return this._num; } } new LayaSample(); 2018-08-05 3 0 分享 微博 QZONE 微信 手撕腊鸭 赞同来...

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

392. 骨骼动画-换装 [ 51%]

...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; Laya.stage.addC...

来源: Laya2.0_示例 发布时间: 20251209

393. [临时解决]bug?加载sk问题 [ 50%]

...rototype;      _proto.preload = function (complete) {         console.log("preload..." + (++this.numPreloadCalls));          if (this.dragon_sk._templet) {             complete();         } else {             Laya.timer.frameOnce(1, this, this.pr...

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

394. Laya中Button等组件lose skin的问题 [ 50%]

...der.getRes(this._skin);         if (!img){             console.log("lose skin",this._skin);             return;         };         var width=img.sourceWidth;         var height=img.sourceHeight / this._stateNum;         img.$_GID || (im...

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

395. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 48%]

...ial = customMaterial; mesh.meshRender.sharedMaterial = customMaterial2; // console.log(mesh4.meshRender.sharedMaterial); shaderDemo.zip 2017-05-25 0 0 分享 微博 QZONE 微信 ebaww 赞同来自: 我按你说的改了一下CustomMaterial.js,效果正确了,现在我想不用代码,直接改....

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

396. 自己写了个label继承官方的label,出现了问题,求指导~ [ 48%]

...String(rightMargin); _indent = String(indent); _leading = String(leading); console.log("font==="+_font, "size==="+_fontSize, "color==="+_color, "bold==="+_bold, "italic==="+_italic, "underline==="+_underline,"leftMargin==="+_leftMargin, "rightMargin==="+_rightMargin); } } } 附件 : --> DemoLabel.zi...

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

397. ios14新系统问题 [ 47%]

...的webgl项目,其他引擎的项目 把LayaSample.max.js简化为一个console.log('xxx')能跑么 另外你怎么升级的14.2 jason: • 2020-09-24 17:28 @郭兆奎:ios14.2还是beta版本,没有正式推送,还挺多BUG的,腾讯视频什么的都打不开,某些问题是可以忽略...

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

398. 针对2.0.0 beta5 setLoadingPage 做增强 [ 47%]

...ass page2 extends Laya.Scene { constructor() { super() } onOpened (args) { console.log(args) } }   附件 : --> 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 感谢分享~! ...

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

399. 骨骼动画-Spine事件 [ 46%]

...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; this.mArmature....

来源: Laya2.0_示例 发布时间: 20251209

400. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...

来源: Laya3.0_文档 发布时间: 20251010