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

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

761. 横竖屏切换,此引擎渲染有BUG [ 71%]

...olean): void { if (Laya.stage != null) { this.oldWith = Laya.Browser.clientWidth; this.oldheight= Laya.Browser.clientHeight; }  console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width = 1280; Laya.stage.height = 720; //Laya.stage.scaleMode = Laya.Stag...

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

762. 求助关于尺寸大小适配问题 [ 71%]

...小缩放。。。   因为laya.init的时候我可以根据laya.browser.width/(height)来根据实际尺寸设置,但是UI编辑器里做的UI并不可以,然后他们是会怎么处理? 2016-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

763. laya.ui.Panel [ 71%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  elasticEnabled : Boolean是否开启橡皮筋效果Panel filters : Array滤镜集合。可以设置多个...

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

764. HttpRequest感觉没有发成功 [ 71%]

...例 或者demo的没有?感觉官网上的有点太简单。 Sprite中的width,height和size(width,height)感觉没作用啊 FB playable Ad 上传zip成功到facebook,广告播放之后,demo不运行? 预加载图集成功了 ,但是渲染的时候找不图片资源。高手帮帮...

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

765. 在2.0里如何调用在编辑模式下创建的对话框 [ 71%]

...下: { "x":0, "type":"Dialog", "selectedBox":1, "selecteID":3, "props":{"width":640,"sceneColor":"#000000","height":480}, "nodeParent":-1, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":1, "child":[ { "x":15, "type":"Image", "props":{"y":0,"x":0,"w...

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

766. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 71%]

...drawToTexture,例如     onEnable(): void {         const { x, y, width, height } = this.box         Laya.loader.load('comp/image.png').then(v=>{             const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture             this.snapshot.texture = tex...

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

767. 官方的API为什么找不到pivot和pos? [ 71%]

...不到pivot和pos? var bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.height / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani);   上面pivot和pos都是什么意思?官方API为什么找到说明? 2018-05-09 添加评论 免费帖 --> ...

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

768. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 71%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(t...

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

769. 半透明的矩形鼠标穿透问题 [ 71%]

...is.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.width = 1440; this.addLabel.height = 170; this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true;   已经手动设置了,也是没有效果! 2017-07-26 0 1 分享 微博 QZONE 微...

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

770. 其他引擎的Demo-Example_04 [ 71%]

... 20); var sy = 1.0 + (Math.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); createText(); start(); })(); function start() { for (var i = 0; i w) { stars[i].x = stars[i].x - w; }...

来源: Laya_示例 发布时间: 20260303