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

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

761. 被遮罩的显示对象的子显示对象再添加遮罩,则子显示对象显示不正确 [ 90%]

...= new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, th...

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

762. ts项目 模块问题 [ 90%]

...export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this._size, this._color); } }   //a文件 import player from './player'; // 程序入口 class GameMain { constructor() { Laya.init(640, 9...

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

763. ios苹果手机,同时播放声音出现巨大杂音 [ 90%]

...引用方式,方便其他类引用         GameMain.instance = this;         //加载场景文件         this.loadScene("main_scene.scene");     }          setup(){         Laya.SoundManager.playMusic("music/d1.mp3", 1, new Laya.Handler(thisthis...

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

764. replaceSlotSkinName对于spine换肤不成功 [ 90%]

... m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private o...

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

765. 加载-单一类型资源加载 [ 90%]

...张png类型资源 Laya.loader.load("res/apes/monkey0.png", Handler.create(this, this.onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["res/apes/monkey0.png", "res/apes/monkey1.png", "res/apes/monkey2.png"], Handler.create(this, this.onAssetLoaded2)); } onAssetLoaded1(texture) { /...

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

766. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 90%]

...台             Laya.init(500, 300);             this.drawSomething();         }           private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);            //画...

来源: Laya2.0_文档 发布时间: 20210715

767. Laya2.7.0 beta cannon bug [ 90%]

... 微博 QZONE 微信 Chenyazhi 赞同来自: get angularVelocity() { if (this._btColliderObject) { var phtqua = this._btColliderObject.angularVelocity; this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); } return this._angularVelocity; } get totalForce() { if (this._btColliderObject) { var...

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

768. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 90%]

...接过时间后执行回调函数,但是之前的缓动画不会执行 this.bir.x = 0; this.bir.y = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change));     这里面会直接过两秒执行this.change,而前面x:0->200  y:0->200不...

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

769. 关于graphics._saveToCmd的问题 [ 90%]

关于graphics._saveToCmd的问题 this.sp.graphics._saveToCmd(this.test1,arr);   执行上面代码的代码后,会一直执行this.test1函数,如何让它只执行一次呢? 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

770. Laya.loader.load怎么停止回调 [ 90%]

Laya.loader.load怎么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete);...

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