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

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

841. laya.ui.UIComponent [ 67%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

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

842. hitTestPrior点击穿透 [ 67%]

...[`hitTestPrior`] = () => { let box1 = new Laya.Box(); box1.width = box1.height = 500; let sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, box1.width, box1.height, `#999900`); box1.addChild(sp); box1.clickHandle = () => { lizheng.log(`点击了box1`); } box1.hitTestPrior = false; Laya.stage....

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

843. 微信小游戏,获取Laya.stage的宽高问题。 [ 67%]

...信小游戏,获取Laya.stage的宽高问题。 console.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不正...

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

844. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 67%]

...                 tex = new Texture2D(data.width, data.height, 1, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;                 ...

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

845. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 66%]

...) _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)...

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

846. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 66%]

...enderTexture = Laya.RenderTexture.createFromPool(viewPort.width,viewPort.height,Laya.RenderTextureFormat.R8G8B8A8,Laya.RenderTextureDepthFormat.DEPTHSTENCIL_NONE);         //将RenderTexture设置为渲染目标         buf.setRenderTarget(renderTexture);         //清楚...

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

847. 物理引擎-牛顿摆 [ 66%]

...bGL = Laya.WebGL; var Render = Laya.Render; var stageWidth = 800; var stageHeight = 600; var Matter = Browser.window.Matter; var LayaRender = Browser.window.LayaRender; var mouseConstraint; var engine; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(stageWidth, stageHeight, WebGL);...

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

848. 鼠标穿透问题 [ 66%]

...ngBg = new Sprite(); _loadingBg.graphics.drawRect(0, 0, _list.width, _list.height, "#000000"); _loadingBg.alpha = .7; _loadingBg.size(_list.width, _list.height); _loadingBg.mouseThrough = true; return _loadingBg; } } } import laya.display.Sprite; class RecordItem extends Sprite { public function Rec...

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

849. GlowFilter和TimeLine/Tween一起用的问题 [ 66%]

...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(this, setup))...

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

850. 急急急,如何设置按钮点击加载ani [ 66%]

...raphicBounds();             ani.pivot(bounds.width / 2, bounds.height / 2);                          ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);                          Laya.stage.addChild(ani);       } } }     2018-07-25 ...

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