大约有 2,539 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1916) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...Child(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disabl...
来源: Laya3.0_文档 发布时间: 20251010
...Script extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置...
来源: Laya3.0_文档 发布时间: 20251024
...官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function(){ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECTIONLIGHT"...
来源: Laya2.0_文档 发布时间: 20210714
... at e.i.event (http://stand.alone.version/lib ... 1:9147) at i.n._endLoad (http://stand.alone.version/lib ... 186404) ...
来源: Laya_社区 发布时间: 20180129
...请问官方API中有反余弦的方法吗? layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 【BUG】升级了Laya2.0.2新版LayaAir.d.ts和js库API对不上!! 问题状态 最新活动: 2016-12-28 17:18 浏览: 3169 关注: 4 人 183*****755 • 2016-1...
来源: Laya_社区 发布时间: 20161215
...s.d.ts", "node_modules/@types/node/domain.d.ts", "node_modules/@types/node/events.d.ts", "node_modules/@types/node/fs.d.ts", "node_modules/@types/node/http.d.ts", "node_modules/@types/node/http2.d.ts", "node_modules/@types/node/https.d.ts", "node_modules/@types/node/module.d.ts", "node_modules/@type...
来源: Laya_社区 发布时间: 20190227
...a.stage.height, "#0ef604"); guideContainer.addChild(maskArea); //EventManager.add(MyEvent.PLAYER_MOVE,this,playerMoveFun); playerMoveFun(); //EventManager.add(MyEvent.MYRESIZE,this,sizeHandler); sp=new Sprite(); sp.blendMode = "destination-out"; // var range:Image=new Image(); //...
来源: Laya_社区 发布时间: 20171213
...| Methods Packagelaya.physicsClasspublic class PhysicsInheritancePhysics EventDispatcher Object 2D物理引擎,使用Box2d驱动 Public Properties PropertyDefined By allowSleeping : Boolean 设置是否允许休眠,休眠可以提高稳定性和性能,但通常会牺牲准确性 Physics ...
来源: Laya2.0_api 发布时间: 20190513
...a.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = ...
来源: Laya_社区 发布时间: 20171108
...= girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播放对应的动画 this._animator.play("idle"); } else { this._animator.play("run"); } this._isRun = !this._isRun; } } 二、刚体动画...
来源: Laya3.0_文档 发布时间: 20251010