大约有 1,761 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0170 秒)
Laya_社区(1141) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(45)
... const shape = new Laya.BoxShape2D(); shape.x = object.width / 2; shape.y = object.height / 2; shape.width = 1; shape.height = 1; rigidBody.shapes = [shape]; return rigidBody; } 附件 : --> 2025-04-03 添加评论...
来源: Laya_社区 发布时间: 20250403
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...
来源: laya_api 发布时间: 20170929
...面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg: Laya.Image; let arr: Arr...
来源: Laya_社区 发布时间: 20170508
...建input z_file.style="filter:alpha(opacity=0);opacity:0;width: 29%;height:11%;"; z_file.type ="file";//设置类型是file类型。 z_file.id ="z_sfz";//设置ID。 z_file.accept="image/*";//设置文件的格式为png; ...
来源: Laya_社区 发布时间: 20171128
... var htmc = this.paper.displayObject.drawToCanvas(this.paper.displayObject.width, this.paper.displayObject.height, 0,0); htmc.destroy(); --------》 __proto.destroy=function(){ this._ctx && this._ctx.destroy(); this._ctx=null; } 在这里,thi...
来源: Laya_社区 发布时间: 20181219
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize...
来源: Laya3.0_api 发布时间: 20231115
...uth/sp_right.png"); this._arrCheck[3] = true; } break; } sp_icon.pos(input.width + 10, -8); input.addChild(sp_icon); } /** * 占位符处理 * @param input TextInput */ private _setPlaceHolder(input: Laya.TextInput) { switch (input.name) { case "input_nickname": // input.changeText("限6个中文以...
来源: Laya_社区 发布时间: 20200410
...], args[2], args[3], args[4], args[5]._ctx._targets._glTexture.id, args[5].width, args[5].height);//这里的_ctx为undefined导致报错 } } ...... } 不知官方是否有收到过类似问题的反馈,该类问题是否有解决方案? 附件 : --> 2020-07-20 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20200720
...s/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, mapLoaded), null, new Point(1600, 800)); } function onStageClick() { var p = new Point(0, 0); layer.getTilePositionByScreenPos(Laya.stage.mouseX, Laya.stage.mouseY, p); layer.ge...
来源: Laya_示例 发布时间: 20260303
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...
来源: Laya2.0_api 发布时间: 20190513