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

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

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

...electedBox":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,"width":640,"skin":"comp/img_bg.png",...

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

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

...Texture,例如     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 = texture ...

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

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

... 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 添加评论 免费帖 --> 分享 微博 QZONE ...

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

694. 半透明的矩形鼠标穿透问题 [ 70%]

...t(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 微信 为什么被折叠? 0 个...

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

695. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 70%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL);   Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;   Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628";   this.loadFont(); }   loadFont() { const  B...

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

696. 其他引擎的Demo-Example_04 [ 70%]

...ath.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; } else if (stars[i].x h)...

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

697. laya.map.MapLayer_API3.0 [ 70%]

...tPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

来源: Laya3.0_api 发布时间: 20231115

698. 2.3微信截图分享问题 [ 70%]

...r tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次...

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

699. SpineSkeleton 创建的骨骼动画,采用WebGL渲染模式,在置灰状态,不能完全灰化 [ 70%]

...状态,不能完全灰化 采用:Laya.init(Env.GAME_WIDTH, Env.GAME_HEIGHT),骨骼灰化正常的; 采用:Laya.init(Env.GAME_WIDTH, Env.GAME_HEIGHT, Laya.WebGL);骨骼动画无法完全灰化,如下图;   附件 : --> test_Laya.zip 2021-10-20 添加评论 免费帖 --> 分享 微博 ...

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

700. laya.ui.DialogManager_API3.0 [ 70%]

...kLayer mouseThrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

来源: Laya3.0_api 发布时间: 20231115