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

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

1351. Laya2.0 的3d截图 [ 65%]

...   let sp:Laya.Sprite = new Laya.Sprite();         let w: number = gl.drawingBufferWidth;         let h: number = gl.drawingBufferHeight;         let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false);       ...

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

1352. Windows扩展 · LayaAir3.4 · 引擎文档 · LAYABOX [ 65%]

...名为TestLib.ts,添加如下代码: interface ITestLib { nativeAdd(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添加代码: import { testLib } from "./TestLib"; const { regClass, property } = Laya; @regCla...

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

1353. 微信小游戏渲染开放域卡顿处理 [ 65%]

... any;         private $running: boolean;         private $runTime: number = 0;   // 已运行时间         private $lastTime: number;      // 上一次时间         /**          * 默认状态就是创建一个每一帧刷新一次的计时器          * @param call ...

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

1354. 我看到这段话后,我 [ 65%]

... ageazrael • 2020-04-20 15:06 export class XClass { public get XValue(): number { return 100; } public set XValue(v: number) { console.log(v); } } var x = new XClass(); x["XValue"] = 100; 你运行一下看看呢、这能覆盖函数吗? ageazrael • 2019-08-05 15:22 dataSource你们...

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

1355. 动画不显示 [ 65%]

...e var m_IsMoving:Boolean = false;         private var m_MovStartTime:Number = 0;         private var m_MovNeedMs:Number = 0 ;          private var m_speed:Number = 150; //每秒移动像素         private var m_curdirection:int = 0 ;         private var m_curaniname:S...

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

1356. matter.js mouseconstraint在微信小游戏中无效 [ 65%]

...parseInt(this.style.fontSize, 10) * this.innerHTML.length;      return Number.isNaN(ret) ? this.width : ret;      }      }, {      key: 'clientHeight',      get: function get() {      var ret = parseInt(this.style.fontSize, 10);      return Number.isNaN(ret) ? this.height...

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

1357. (有demo)2d和3d结合,正交相机下,ui节点显示错位,与预期不符,且舞台不刷新 [ 65%]

...示也会恢复正常。 游戏参数: GameConfig{     static width:number=750;     static height:number=1334;     static scaleMode:string="showall";     static screenMode:string="vertical";     static alignV:string="middle";     static alignH:string="center"; } windo...

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

1358. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 65%]

...rticleShuriKen/module/shape/BaseShape.ts:26 是否启用。 radius radius: number Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:12 发射器半径。 randomDirection randomDirection: number = 0 Inherited from BaseShape.randomDirection Defined in laya/d3/core/particleShuriKen/m...

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

1359. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 65%]

...rticleShuriKen/module/shape/BaseShape.ts:26 是否启用。 radius radius: number Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:13 发射器半径。 randomDirection randomDirection: number = 0 Inherited from BaseShape.randomDirection Defined in laya/d3/core/particleShuriK...

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

1360. tab 是否可以做到左右滑动切换view呢? [ 64%]

...is, this.onMouseUp);              }     private onMouseDownX : number;     private onMouseDownY : number;     private isMove : boolean ;     onMouseDown(e : laya.events.Event):void{         console.log("MOUSE_DOWN");         this.on(laya.events.Event.MOUSE_MOVE ,this...

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