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

大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0078 秒)

921. 人物行走图动画 [ 62%]

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

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

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

923. 加载-销毁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_示例 发布时间: 20241001

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

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

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

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

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

来源: laya_api 发布时间: 20170422

926. 动画-旧版骨骼动画 [ 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_示例 发布时间: 20241001

927. TiledMap加载报错 relativePath为空 [ 62%]

..."name":"\u5757\u5c42 2", "opacity":1, "type":"tilelayer", "visible":true, "width":25, "x":0, "y":0 }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206,...

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

928. laya.particle.Particle2D [ 62%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  emitter : EmitterBase[read-only] 获取粒子发射器 Particle2D filters : Array滤镜集合。可以设...

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

929. laya.ui.Box [ 62%]

...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

930. laya.ui.TextInput_API3.0 [ 62%]

...性 y 的值,用于控制 textInput 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布...

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