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

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

821. hitTestPrior点击穿透 [ 67%]

...tPrior window[`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_社区 发布时间: 20170918

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

...le.log("Laya.stage.height = ", Laya.stage.height); console.log("Laya.stage.width = ", Laya.stage.width);在加载完资源后,我打印了stage的宽高。在测试的时候,有一些机子出了问题。 正常的,安卓机测试 不正常,iphone7 ,用其他苹果手机测试也是行的。...

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

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

...new Laya.Sprite() _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(_...

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

824. 物理引擎-牛顿摆 [ 67%]

...= Laya.Browser; var WebGL = 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...

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

825. GlowFilter和TimeLine/Tween一起用的问题 [ 67%]

...tion() { // 不支持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...

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

826. 鼠标穿透问题 [ 67%]

...rite { _loadingBg = 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...

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

827. 鼠标交互-双指旋转(多点触控) [ 67%]

...tion() { // 不支持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"; setup(); })(); function setup() { createSp...

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

828. 在开放数据域/子域里list滑动事件偏移,重设矩阵没有用 [ 67%]

...显示范围正常 case "resizeShared": { Laya.Browser.window.sharedCanvas.width = message.data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tem...

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

829. laya里的所有单例都没有初始值 [ 67%]

...          if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);             trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader) ...

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

830. 屏幕适配模式选择scale_exactfit的话ui中的top,bottom,left,right怎么会无效啊? [ 67%]

...,会有黑边),根据屏幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ static SCALE_FIXED_AUTO: string; 2017-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 浪货界扛把子 相关问题 【屏幕适...

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