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

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

2471. 使用百度地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

2472. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...Script extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹窗之后,需要用代码将Dialog与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置...

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

2473. Shader预编译(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 42%]

...官方边缘光照(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

2474. LayaNative 是不是不支持3D啊 [ 42%]

...                                             at e.i.event (http://stand.alone.version/lib ... 1:9147)                                                 at i.n._endLoad (http://stand.alone.version/lib ... 186404)                              ...

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

2475. laya.d3.utils.Utils3D的convert3DCoordTo2DScreenCoord这个接口api描述是不是错了? [ 41%]

...请问官方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

2476. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 41%]

...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

2477. destination-out 叠加模式问题 [ 41%]

...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

2478. laya.physics.Physics [ 41%]

...| Methods Packagelaya.physicsClasspublic class PhysicsInheritancePhysics EventDispatcher Object 2D物理引擎,使用Box2d驱动 Public Properties PropertyDefined By  allowSleeping : Boolean 设置是否允许休眠,休眠可以提高稳定性和性能,但通常会牺牲准确性 Physics ...

来源: Laya2.0_api 发布时间: 20190513

2479. 请大家帮助优化一下这个抛物线的代码 [ 41%]

...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

2480. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...= 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