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

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

781. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...

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

782. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...

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

783. laya.ui.AdvImage_API3.0 [ 70%]

...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation s...

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

784. 发光滤镜二次渲染bug [ 70%]

...              b = sprite.getBounds();                 if (b.width <= 0 || b.height <= 0) {                     return;                 }   同时,发现这里区域计算与第一次渲染不一致,以下是修改后的; //start                 ...

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

785. 关于video [ 70%]

...ce); reference.size(640, 960); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElement...

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

786. [LayaAirIDE3]laya3.3更新后,之前写好的拖拽地图无法使用 [ 70%]

...this.mapRect =new Laya.Rectangle(                 -4380+Laya.stage.width,                 -2375+Laya.stage.height,                 4380-Laya.stage.width+4380,                 2375-Laya.stage.height+2375             ); 2025-07-29 0 1 分享 微博 QZONE 微信 ...

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

787. laya有没有一个容器,他的长宽自动等于父容器长宽啊 [ 70%]

...这个也是最快捷方便的一个方法了(本来使用Laya。stage.width,发现,发现只要尺寸变换就要从新获取比较麻烦) 2018-07-24 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 设置 宽高等于 Laya.stage.width,  height  2018-07-23 0 1 分享 微博 QZONE 微...

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

788. 当手机锁屏或者切换应用,部分文字背景会变黑,甚至会消失不见 [ 70%]

...'middle'; contentText.height = 0; contentText.wordWrap = true; contentText.width = parseInt(trueWidth*0.9); contentBox.width = parseInt(trueWidth*0.9); contentBox.height = contentText.height+20; 附件 : --> 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

789. laya.ui.Panel_API3.0 [ 70%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCall...

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

790. 圆环不跟随 sprite 一起缩放? [ 70%]

...Point;  // 程序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle(...

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