大约有 481 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
Laya_社区(255) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...ay.Animation; var Stage = laya.display.Stage; var Rectangle = laya.maths.Rectangle; var Loader = laya.net.Loader; var Browser = laya.utils.Browser; var Handler = laya.utils.Handler; var WebGL = laya.webgl.WebGL; var AniConfPath = "res/1.json"; Laya.loader.load(AniConfPa...
来源: Laya_社区 发布时间: 20160712
...age = this.list_rule.scrollBar.max / this.list_rule.totalPage; let index = Math.floor(value / page) if (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } e...
来源: Laya_社区 发布时间: 20180724
...xt 缓动对象 */ private updateColor(txt:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的...
来源: Laya2.0_文档 发布时间: 20210715
... */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ); this.tempRot...
来源: Laya_社区 发布时间: 20200707
....scaleTime += Laya.timer.delta / 1000 * this.scaleSpeed; const scale = 1 + Math.sin(this.scaleTime) * 0.5; // 增加缩放变化幅度 this.lightComp.lightScale.setValue(scale, scale); } } 运行的效果如动图3-1所示, (动图3-1) Copyright ©Layabox 2025 all right reserved,powered by L...
来源: Laya3.0_文档 发布时间: 20251010
... if (rect[2] == -1) rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX); } var dt_w = w != 0 ? w : 1; var dt_h = h != 0 ? h : 1; if(rect){ dt_w ...
来源: Laya_社区 发布时间: 20191017
...NativeBounds Properties Static MemoryBlock_size MemoryBlock_size: number = Math.max(6 * 8, 16 * 4) Defined in laya/d3/RenderObjs/NativeOBJ/NativeBounds.ts:13 native Share Memory Accessors max get max(): Vector3 set max(value: Vector3): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeBounds.ts:37 ...
来源: Laya3.0_api 发布时间: 20231115
...,否则会导致显示异常,其他child消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.p...
来源: Laya_社区 发布时间: 20170829
...会被保存到场景文件中 get degree() { return this._radian * (180 / Math.PI);//由于自己没有序列化保存,需要把_radian存下来的弧度反算回角度,用于IDE属性面板显示 } set degree(value: number) { this._radian = value * (Math.PI / 180);//把输入的角度值,转...
来源: Laya3.0_文档 发布时间: 20251010
...age = this.list_rule.scrollBar.max / this.list_rule.totalPage; let index = Math.floor(value / page) if (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } e...
来源: Laya_社区 发布时间: 20170215