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

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

3021. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 41%]

...t.body.appendChild(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();...

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

3022. 1.7.17beta,微信小游戏预览加载问题 [ 41%]

... 测试代码为: var scene = Laya.Scene.load("res/testScene.ls"); Laya.stage.addChild(scene); 真机预览报错为: request:fail invalid url "res/testScene.ls" 测试机型为:iPhoneX 2018-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

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

...nt.body.appendChild(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(); t...

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

3024. Spine动画使用(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 41%]

...Skeleton对象 var skeleton = new Laya.Skeleton(); //添加到舞台 Laya.stage.addChild(skeleton); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示 ![动图8](img\8.gif) (动图8)

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

3025. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 41%]

...者需要自己去加载分包和资源 ``` onConfigLoaded(): void { Laya.stage.on(Laya.Event.CLICK, this, this.toPage2) } toPage2(): void { my.redirectTo({ url: "/subpackage1/page2/index", success: function () { console.log("success") }, fail: function (err) { console.log("2222", err) } }) } ``` ...

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

3026. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 41%]

...景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.r...

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

3027. laya加载unity插件导出的场景 physics3D is not a function [ 41%]

...aya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Lay...

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

3028. Shader预编译(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 41%]

...例改自官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ let arr; for(let i = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["D...

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

3029. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 40%]

...nt.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Logo this.img_TianMao.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(hre...

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

3030. 分享:简单聊天室 [ 40%]

...his,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送inpu...

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