大约有 595 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(200) Laya2.0_示例(114) Laya3.0_文档(99) Laya2.0_api(91) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
... 代码示例: this.img = new Laya.Image(); this.img.loadImage("url"); const mask = new Laya.Sprite(); mask.graphics.drawCircle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加...
来源: Laya_社区 发布时间: 20170106
...0 ); 可以類似這樣寫 var Mesh_Boss = new MeshSprite3D( Mesh.load( Consts.Mesh_Boss01 ) ) as MeshSprite3D; Mesh_Boss.transform.localPosition = new Vector3( -7.36, -1.03, 0 ); 2017-07-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170726
...希望把Title预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { /...
来源: Laya3.0_文档 发布时间: 20251105
...!比如使用这个模式 /**寻址模式_不循环。*/ public static const FILTERMODE_TRILINEAR:int = 2; 或者对anisoLevel大小进行设置 filterMode 进行修改 具体效果需要你自己调试 这个一样可以达到控制远近效果的! 2018-10-27 0 1 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20181024
...转换时不要使用parent去做转换,把代码下面这样也行: const pos = (this.owner as Laya.Sprite).localToGlobal(new Laya.Point(0, 0)); 2025-08-15 1 1 分享 微博 QZONE 微信 Recovery 赞同来自: ??? 2025-08-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20250528
... All Classes | Index | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Properties PropertyDefined By x : ...
来源: Laya2.0_api 发布时间: 20190513
...All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Prope...
来源: Laya2.0_api 发布时间: 20190513
...png"; private readonly PathFly:string = "../../res/fighter/fighter.atlas"; constructor() { //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgCol...
来源: Laya_示例 发布时间: 20260303
...类,通过代码设定ColorPicker相关的属性。示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节...
来源: Laya3.0_文档 发布时间: 20251010
...经Laya2.7.1对比发现Laya2.8.0beta中Scene类中有一句this._setBit(Const.NOT_READY, true)换位置了,把Laya2.8.0beta的换成Laya2.7.1一样的位置这个问题就没了,麻烦Laya官方人员解答一下这个是bug还是故意这样设置的呢? 附件 : --> 1.png 2.png 2020-09-24 ...
来源: Laya_社区 发布时间: 20200924