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

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

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

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

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

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

923. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 53%]

...0, null, true, true, null, 80/56, 80/56); let t2 = new Laya.Sprite(); Laya.stage.addChild(t2); let Texture = Laya.Texture.create(t, 0, 0, t.width, t.height); t2.graphics.drawImage(Texture, 0, 0, 56, 56); } 2025-09-23 0 0 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 肖亮亮 您好,我...

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

924. 发现一个问题Laya.Animation()创建后移除,再创建,位置会变 [ 53%]

...261 赞同来自: 创建的话如果不设置pos()位置的话默认为Stage的(0,0)点如果第一次创建设置了相应位置然后再移除后再次创建是不会存储你上次创建后设置的位置的,如果第二次创建没有重新设置位置的话,还是会默认创建...

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

925. tiledMap 官方示例都运行不了 [ 53%]

...      tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null);   调用后报错TypeError: Cannot read property 'split' of undefined     at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.j...

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

926. 微信小游戏内TextInput不能实现只输数字的功能 [ 52%]

... = [0, 4, 0, 4]; input.restrict = "0-9";//限制输入字符为数字 Laya.stage.addChild(input); 2019-02-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wu语 相关问题 关于微信小游戏关系链的问题 微信关系链:Laya...

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

927. laya.html.dom.HTMLDivElement对象设置自动换行导致栈溢出异常 [ 52%]

...AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</span>"; Laya.stage.addChild(html);试下这个! 2017-06-15 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 answerHom 相关问题 两个对象new了一个相同的对象,...

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

928. ui.list的高度如果是cell高度的3.5倍,但是repeatY只是1-2的时候还是会可以上下滑动 [ 52%]

...里面排行榜滑动无效,找不到原因。。跪求指导。。。 stage.height获取高度有bug吗 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! as3.0下3D引擎中通过滑动控制camera的问题 问题状态 最新活动: 2019-0...

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

929. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...据 tree.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var...

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

930. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 52%]

...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...

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