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

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

1921. Hbox Vbox 创建的数量多了后不是按创建的顺序显示 [ 66%]

...乱,需要你预先设置下x方向的值,VBox同理: var hbox:HBox=new HBox(); Laya.stage.addChild(hbox); for(var i:int=0;i<20;i++) { var label:Label=new Label(); label.text='label:'+i; label.y=i*10; label.x=i*20; hbox.addChild(label); } 懒懒 • 2017-06-21 10:29 @cuixueying:建议能按...

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

1922. 使用mask动画出现内存泄露问题(附重现示例DEMO) [ 66%]

...的链接 提交 2 个回复 Laya_Aaron 赞同来自: 我看代码在一直new sprite ,这不是泄露原因吗? 2019-03-06 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 嗯,已经确认是有泄露 2019-03-06 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

1923. 求助,屏幕旋转后滚动条没有跟随旋转 [ 66%]

...structor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t.fontSize = 25; t.wordWrap = true; t.color = "#976A4F"; t.overf...

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

1924. Tween.to 执行失败 [ 66%]

...竖着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.l...

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

1925. [LayaAir3]LAYAAIR 3.3 和 LAYANATIVE 的VIDEO 支持 M3U8文件吗? [ 66%]

...。附件提供了第三方库。使用参考代码:var videoTexture = new Laya.VideoTexture(); var video = videoTexture.video; var m3u8url = "https://xxxx.m3u8"; var hlsxx; var HLS = window["Hls"]; if (HLS && HLS.isSupported()) { var hls = new HLS({ debug: false, }); hls.loadSource(m3u8ur...

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

1926. 这种进度条怎么实现? [ 66%]

...mber = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(...

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

1927. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 66%]

...到问题了,是因为加载bmfont引起的,         let blueFnt = new Laya.BitmapFont();         blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => {             Laya.Text.registerBitmapFont("number_blue", blueFnt);         })); 但具体原因不清楚 能...

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

1928. 3D模型x方向角度不为0,时。挂刚体和碰撞器。在rotate y方向时。模型会乱转,不挂就没问题 [ 66%]

...tAngle = this.owner.transform.rotationEuler.y; this.owner.transform.rotate(new Vector3(0, angle - this.lastAngle, 0), false, false) 打印出来看到y方向角度一直在变。   如果直接赋值到rotationEuler就没问题 // this.owner.transform.rotationEuler = new Vector3(-90, angle, 0); 附...

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

1929. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 65%]

...ource is not a function     使用代码如下:var rankTexture:Texture = new Texture(Laya.Browser.window.sharedCanvas); var image:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image);     附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微...

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

1930. 加载-错误处理和进度 [ 65%]

...: " + progress); } onError(err) { console.log("加载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor(...

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