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

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

871. laya.ui.VBox_API3.0 [ 68%]

...gh name tag CENTER LEFT NONE RIGHT drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOp...

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

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

873. laya.ui.HBox_API3.0 [ 68%]

...gh name tag BOTTOM MIDDLE NONE TOP drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOp...

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

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

875. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 68%]

... info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void...

来源: Laya2.0_文档 发布时间: 20210714

876. 区块地图-等角地图 [ 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_示例 发布时间: 20251209

877. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 68%]

...rite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._body.height = this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(...

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

878. native打包的安卓包,韩文字体显示异常,IOS上是正常的(已解决) [ 68%]

...的问题,在安卓、韩文字体的情况下,这个方法返回的t.width的值一直为0,导致在计算韩文的文本渲染宽度时,韩文字符的宽度一直为0,因此所有的韩文就都叠在一起了,解决方法是在laya.webgl.js文件中的WebGLCharImage的构造函数中...

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

879. laya.ui.Dialog_API3.0 [ 68%]

...bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name...

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

880. 普通文本中文逗号导致异常换行 [ 68%]

...(); txt.font = "SimHei"; txt.leading = 3; txt.fontSize = 20; txt.width = 656; txt.wordWrap = true; //给文本的text属性赋值 txt.text = "1级:提高1000%攻击速度,召唤雷电攻击目标,每条雷电必定触发切割。对目标造成0.48%最大生命值伤害,并额...

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