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

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

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

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

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

712. 关于video [ 70%]

...ze(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.fitDOMElementInArea, [videoEle...

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

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

...centerY components 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 ri...

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

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

...       -4380+Laya.stage.width,                 -2375+Laya.stage.height,                 4380-Laya.stage.width+4380,                 2375-Laya.stage.height+2375             ); 2025-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

715. 关于缓动函数from的一些问题记录 [ 70%]

...Text(); letterText.text ="hello world"; letterText.width = 400; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +offsetPos.offsetX; lette...

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

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

...序入口 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() { this._rootS...

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

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

...url autoSize 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 displayedInS...

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

718. 怎么任意裁切一张图片作为一个image [ 70%]

...于目标Texture的y位置。 * @param width 截取的宽度。 * @param height 截取的高度。 * @return 返回一个新的Texture。 */ public static function createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture 这个也是截取矩形的 Texture类里的...

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

719. 在2.0中如何将Browser.createElement('canvas')转为可用的Texture [ 70%]

...  //设置大小     canvas.width = Laya.stage.width;     canvas.height = Laya.stage.height;     ctx = canvas.getContext('2d');     Laya.stage.graphics.clear(false);//清空绘制命令。     var textture = new Laya.Texture(canvas);     textture.bitmap.alwaysChange = true;...

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

720. 微信排行榜无法滑动的问题 [ 70%]

...wx.postMessage({type: "resizeShared", url: "", data: {width: subW * mat.a, height: subH * mat.d, matrix: mat}, isLoad: false});   子域接收消息的地方:var openMatrix = new Laya.Matrix(); openMatrix.a = mainMatrix.a; openMatrix.b = mainMatrix.b; openMatrix.c = mainMatrix.c; openMatrix.d = m...

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