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

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0080 秒)

811. timer无法执行 [ 89%]

...,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); }   public sho...

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

812. bug,ChainCollider.points第二次设置,会报错! [ 89%]

...建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80";     //****新增代码*****,需增加private _chain; } /**开始游戏...

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

813. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 89%]

...erDerivePhysicsTransformation(physicTransformOut, force) { var transform = this.owner._transform; if (force || this._getTransformFlag(Laya.Transform3D.TRANSFORM_WORLDPOSITION)) { var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = CannonPhysicsCompo...

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

814. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 89%]

...; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new Laya.Handler(this.onLoaded)); } private onLoaded():void { this.init(); } private init():void { this.mBitmapFont.setSpaceWidth(1...

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

815. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 89%]

...pt //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stag...

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

816. Image设置skin的Bug [ 89%]

...n = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加载完成后,回调设置皮肤资源找不到_bitmap /**      * @private      * 设置皮...

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

817. 区块地图-PerspectiveWall [ 89%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/per...

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

818. 子容器的事件问题 [ 89%]

....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewHeadViewTest(); //testUI.addChildAt(vhvt, 0); testUI.add...

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

819. dialog第一次可以正常调出,第二次无法正常popup出来 [ 89%]

...init函数     LoginView.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin);         this.dlg = new NormalDialog();         this.dlg.init();     };   附件...

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

820. box2d引擎报错问题 [ 89%]

..._update (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...

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