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

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

921. laya.map.GridSprite [ 63%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

922. 求问为什么找不到Laya这个问题? [ 63%]

...t;title>www.layabox.com</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' /> <meta name="renderer" content="webkit"/> <meta name='apple-mobile-web-app-capable' content='yes' /> <meta name='f...

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

923. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 63%]

...enderOrder = tJsonData.renderorder;             _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                        ...

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

924. 人物行走图动画 [ 63%]

....log(ani.index);  var bounds = ani.getGraphicBounds();  ani.pivot(bounds.width / 2, bounds.height / 2);    ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);  console.log(ani.index);  Laya.stage.addChild(ani);  console.log(ani.index); }   json代码如下 {"frames": [ {  "filename": "wal...

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

925. viewportPointToRay产生的射线始终有偏差,是为什么? [ 63%]

...orld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height   // let singleX = (Laya.Browser.width - clientW...

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

926. 加载-销毁Texture使用的图片资源 [ 62%]

..../../res/fighter/fighter.atlas"; //初始化引擎 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"; this.init(); //显示性能统计信息 St...

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

927. 2D节点使用3D · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...属性面板中,会显示属性信息,如图2-2所示。 (图2-2) Width:渲染纹理的像素宽度。 Height:渲染纹理的像素高度。 Color Format:渲染纹理的颜色格式。 Depth Format:渲染纹理的深度格式。 Generate Mipmap:如果勾选了,则自动生成多...

来源: Laya3.0_文档 发布时间: 20251010

928. 关于微信小游戏渲染子域图的问题 [ 62%]

...以不用设置成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite);   }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来...

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

929. laya.d3.core.scene.BaseScene [ 62%]

...,默认为true。如果设置不可见,节点将不被渲染。Sprite width : Number 表示显示对象的宽度,以像素为单位。 宽度默认为0,可以手动设置,或者通过getbounds获取实际宽度。设置此宽度只用来做鼠标碰撞使用,改变后并不影响显示...

来源: laya_api 发布时间: 20170422

930. 动画-旧版骨骼动画 [ 62%]

...xelRatio, Laya.Browser.pixelRatio); this.changeActionButton.pos(Laya.stage.width / 2 - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.z...

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