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

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

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

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

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

782. 关于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

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. [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

785. 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

786. 当手机锁屏或者切换应用,部分文字背景会变黑,甚至会消失不见 [ 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

787. 圆环不跟随 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

788. 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

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

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

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

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

...aya.Browser.createElement('canvas');     //设置大小     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);  ...

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