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

大约有 615 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

441. LayaAir使用AS语言能直接挂断点吗? [ 45%]

...比较弱,所以容易出现这种错误:最简单的例子:var a =200; var b ="1";var c= a b;你可能期望c是201,但实际上它是"2001",这个错误在强类型语言中决不会出现。然而正是因为JavaScript没有这些约束,所以可以很方便地拼接数字和字符...

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

442. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 45%]

...i=new ItemUi() Laya.stage.addChild(tempItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new Point(0,-20),0); } }   然后这是itemUI类里的方法 private var animate:Boolean; public function setAnimated(b:Boolean):void { animate=b ...

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

443. 无法触发浏览器文件上传框 [ 45%]

...ton; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): L...

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

444. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 45%]

...加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } } ``` 运行效果如图1所示 ![图1](img/1.png) (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点,而这个节点开发者不用管(用于引擎...

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

445. app构建IOS包 进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 [ 45%]

...orage/logo.swf 2018-01-09 20:50:15.798 ZhuaWawa[2531:1863805] Download end:200 2018-01-09 20:50:15.798 ZhuaWawa[2531:1863805] Downloaded http://h5.catcher.magicbone.co ... 7.101 s=0 l=84 Creating context 1024, 768, 22018-01-09 20:50:15.843 ZhuaWawa[2531:1863829]  download end 2018-01-09 20:50:15.86...

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

446. laya.ui.Dialog [ 45%]

...的 x,y,width,heith 值,用逗号连接为字符串。 例如:"0,0,100,200"。 Dialog filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值(会叠加父亲节点的缩放值)。 Sprite globalScaleY...

来源: laya_api 发布时间: 20170929

447. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 44%]

...点,在手机上用微信扫一扫二维码打开项目,频繁出现的200+ms的间隔,这种情况Laya引擎无法处理? layabox小高 • 2023-08-07 15:13 小游戏平台不支持视频纹理,这个需要自己处理了。 追命 • 2023-08-07 15:25 可Laya主页上的蓝亚宇宙中...

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

448. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 44%]

...tyle)return; this.style._type |=/*laya.display.css.CSSStyle.ADDLAYOUTED*/0x200; var tArray=Layout.layout(this); if (tArray){ if (!this._$P.mHtmlBounds)this._set$P("mHtmlBounds",new Rectangle()); var tRectangle=this._$P.mHtmlBounds; tRectangle.x=tRectangle.y=0; tRectangle.width=this.context...

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

449. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 44%]

...制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height - dragHeightLimit >> 1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( this...

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

450. Panel初始化BUG [ 44%]

...00, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos(100, 0); panel.addChild(image); panel.hScrollBarSkin = ""; panel.refresh(); panel.scrollTo(150, 0); } Laya_Fred • 2021-11...

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