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

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

731. 关于laya生成的canvas定位问题导致内部事件不正确 [ 72%]

...="UTF-8"> <title></title> <meta name="viewport" content="width=750, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <style> *{margin: 0; padding: 0;} body{background: #0099FF;} body,html{height: 100%;} .layaDiv{width: 300px;height: 300px;margin:...

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

732. 加载TiledMap 不显示 [ 72%]

...edMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));     }      private onStageClick(): void {         var p: Point = new Point(0, 0);         ...

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

733. laya.js.exe的outlaya=true是什么作用 [ 72%]

...看一下这种遮罩bar的进度条设了遮罩不起作用 Sprite中的width,height和size(width,height)感觉没作用啊 小游戏的后台切换事件名是什么?? 问题状态 最新活动: 2017-07-19 12:15 浏览: 2224 关注: 4 人 cuixueying • 2017-07-19 14:14 可以用,你...

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

734. laya的drawToTexture太坑 [ 72%]

...ounds = view.getSelfBounds(); let texture = view.drawToTexture(bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y) as laya.resource.Texture; shadow.graphics.drawTexture(texture, bounds.x, bounds.y, bounds.width, bounds.height, null, 0.3); shadow.pos(view.x, view.y);...

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

735. Animation设置pivot导致动画模糊问题 [ 72%]

...明显变模糊,如: this.animation.pivot(this.animation.getBounds().width / 2,this.animation.getBounds().height / 2); 如果this.animation.getBounds().width / 2为非整数,动画就会变模糊,像下面带有小数点就会模糊 this.animation.pivot(100.5,100.5); 发现带小数点的...

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

736. laya.physics.BoxCollider_API3.0 [ 72%]

...ensity destroyed enabled friction height hideFlags id isSensor restitution width x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors constructor new BoxCollider(): BoxCollider I...

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

737. 关于panel的scroll怎么修改滚动条的位置及样式 [ 72%]

...r.scaleX=1.5;类似这样去改变看看,你可以改变它的scale值,width、height,,但是位置无法改变,因为滚动条的位置是跟随panel的位置适配好的   2017-07-03 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

738. laya.map.TileAniSprite_API3.0 [ 72%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

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

739. [LayaAir3]3.3版本绘制矢量图有BUG [ 72%]

...         const sp = new Laya.Sprite();         sp.size(Laya.stage.width, Laya.stage.height);         sp.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, '0xff0000');         Laya.stage.addChild(sp); 附件 : --> 2025-07-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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

740. 关于HitArea的问题 [ 71%]

...是全屏,给了引导容器 maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 重点来了,这里设置了可点击区域,范围也是全屏,给了舞台 hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 最后,在背景的click事...

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