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

大约有 179 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

31. List组件拖动浏览时item会出现重叠的现象 [ 76%]

...ID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, ListDataSourceItem.HEI); this.addChild(this._lb); // this._img = new Image(); // this._img.size(ListDataSo...

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

32. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 74%]

...Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传...

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

33. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 74%]

..., texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerrainSprite3...

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

34. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 74%]

...     return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){          var layaMaxUI_Path = workSpaceDir + "/src/ui/layaMaxUI.ts"     let fileContent = readFile(layaMaxUI_Path);     console.log("读取文件",fileContent) ...

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

35. cannot read property '1'of null [ 73%]

cannot read property '1'of null 点击导出之后,然后回到ide,然后点击任何添加组件都会报这个错误!!!有人遇到过么,在线急需帮助..... 附件 : --> 2022-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

36. laya.display.Graphics [ 72%]

... drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制圆形。 Graphics  drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Graphics  drawLine(fromX:Number, fromY:Number, toX:N...

来源: laya_api 发布时间: 20170929

37. laya.net.Loader_API3.0 [ 71%]

...会缓存下载的内容。 成功则返回下载的数据,失败返回null。 Type parameters K: keyof ContentTypeMap Parameters url: string contentType: K Optional onProgress: ProgressCallback Optional options: Readonly<ILoadOptions> Returns Promise<ContentTypeMap[K]> getRes getRes(u...

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

38. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 71%]

...s s3d;//s3d.instantiate(x.s3ds[id]); }   static loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); }  我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate方法加...

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

39. laya.display.Graphics [ 71%]

... drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics  drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):DrawCurvesCmd 绘制一系列曲线。 Graphics  drawImage(texture:Textur...

来源: Laya2.0_api 发布时间: 20190513

40. laya.physics.js:430 Cannot read property 'GetType' of null [ 69%]

laya.physics.js:430 Cannot read property 'GetType' of null Uncaught TypeError: Cannot read property 'GetType' of null     at box2d.b2Fixture.GetType (laya.physics.js:430)     at box2d.b2ContactFactory.Create (laya.physics.js:576)     at box2d.b2ContactManager.AddPair (laya.physics.js:586)   ...

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