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

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

581. 关于设置动画轴心点问题 [ 58%]

...成后通过getBounds来获取Animation的宽高,设置pivot轴心点为width/2,height/2,同时设置pos值为pivot值的相反值即可。如果pos已经设置过,将pos现有值-(povot.x,pivot.y) 2017-01-19 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

582. mask的遮挡bug [ 58%]

...layabox小高 赞同来自: 遮罩刷新需要调用repaint,一般的x/y/width/height/visible这些改变都会自动调用,但rendertexture的更新无法感知,所以有这个需求的只能自己每帧调用。 2023-08-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

583. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...用到的资源),默认为false dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 isShowEffect 是否显示弹出效果,默认为开启状态。为f...

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

584. 自己写了个label继承官方的label,出现了问题,求指导~ [ 58%]

... true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; label.lx = 100; label.ly = 100; Laya.stage.addChild(label); //---------------------------------这是用官方的api,无问题------------------------------------------...

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

585. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; thi...

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

586. laya.resource.RenderTexture2D_API3.0 [ 58%]

...apCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy end event getData getIsReady gpuCompre...

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

587. 使用sprite的loadImage遇到的两个问题 [ 58%]

...ge设置的坐标,宽高,显示没问题,为什么获取sprite的x,y,width,height都和设置的不相符? 2、先loadImage加载图片,再设置宽高无效 2019-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

588. laya.resource.NativeRenderTexture2D_API3.0 [ 58%]

...apCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearReference _create _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData ...

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

589. 微信小游戏中iPhoneX的适配问题 [ 58%]

...V = Laya.Stage.ALIGH_MIDDLE; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; 然后掉微信的接口查System的信息判断是不是iPhone X 如果是的话在调用 Laya.stage.y = 150 强制调整stgae的y左边居中显示 xiao龙 • 2018-09-05 11:46 或者调整个适当的y值居中显...

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

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

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

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