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

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

581. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...

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

582. createFromTexture应该怎么样调用 [ 58%]

...Laya。Texture。createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number)就可以了啊   2018-08-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Ming 相关问题 两个对象new了一个相同的对...

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

583. laya相机问题 [ 58%]

...2 0 0 分享 微博 QZONE 微信 McGee 赞同来自: new Laya.Viewport(x,y,width,height) 2019-07-12 0 0 分享 微博 QZONE 微信 快到我&碗里来 赞同来自: 同解! 2019-08-22 0 0 分享 微博 QZONE 微信 卡莉斯塔2014 赞同来自: new 一个viewport赋值给camera吧 2019-08-23 0 ...

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

584. mask的遮挡bug [ 58%]

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

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

585. 关于设置动画轴心点问题 [ 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

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

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

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

588. 自己写了个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

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

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

...场景类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默认为false。为模式窗口时,点击弹窗空白处,可自动关闭该弹窗 显示弹窗效果 isShowEffect 是否显示弹出效...

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