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

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

431. 人物行走图动画 [ 44%]

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

432. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 44%]

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

433. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 43%]

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

434. 2.0版本可用的CameraMoveScript.ts [ 43%]

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

435. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

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

436. 2.3.0beta 各种bug [ 43%]

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

437. laya.d3.renderobjs.nativeobj.NativeBounds_API3.0 [ 43%]

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

438. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 43%]

...,否则会导致显示异常,其他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

439. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...会被保存到场景文件中 get degree() { return this._radian * (180 / Math.PI);//由于自己没有序列化保存,需要把_radian存下来的弧度反算回角度,用于IDE属性面板显示 } set degree(value: number) { this._radian = value * (Math.PI / 180);//把输入的角度值,转...

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

440. 请问laya有没有类似翻页容器(pageView)的组件? [ 42%]

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