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

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

771. [LayaAir3]3.3.0.beta.3 2d物理RigidBody代码生成问题 [ 69%]

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

772. laya.ui.VBox [ 69%]

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

来源: laya_api 发布时间: 20170929

773. 克隆sprite [ 69%]

...面的“   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

774. ios上input无法隐藏 [ 68%]

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

775. drawToCanvas真机资源无法释放 [ 68%]

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

776. laya.ui.ViewStack_API3.0 [ 68%]

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

777. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 68%]

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

778. LayaNative appLoader.js中偶发_targets为undefined的问题 [ 68%]

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

779. 区块地图-等角地图 [ 68%]

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

780. laya.ui.VBox [ 68%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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