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

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

501. laya.ui.UIUtils [ 77%]

...换字符串中的转义字符 UIUtils  clearFilter(target:Sprite, filterType:Class):void[static] 移除目标显示对象的指定类型滤镜。 UIUtils  fillArray(arr:Array, str:String, type:Class = null):Array[static] 用字符串填充数组,并返回数组副本。 UIUtils  gray(traget...

来源: laya_api 发布时间: 20170929

502. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 77%]

...et item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } export class TestClass2 extends...

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

503. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 77%]

...是在LayaAir IDE下进行调试和开发的。通常情况不会接触到typescript的“编译”和bundle过程。这节我们要深入了解其中的过程,并剥离出来,能够在VsCode中直接运行项目,实时编译调试。   2.LayaAir的编译流程 打开LayaAirIDE的文件夹 La...

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

504. TS项目编译报错‘inspector.d.ts' not found’ [ 77%]

...ents/sports1/.laya/gulpfile.js [11:19:00] Starting 'default'... 出错了: TypeScript error: ../node_modules/@types/node/index.d.ts(34,22): Error TS6053: File '../node_modules/@types/node/inspector.d.ts' not found. 重装node.js 和 ts 都不行...求救~~ 2018-12-06 添加评论 免费帖 --> ...

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

505. 预加载图集文集在小游戏端导致内存过高 [ 77%]

...esArray: Array<any> = [ { url: hyip+"res/atlas/comp/01_shouye.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/02_zhujiemian.json", type: Loader.ATLAS }, { url: hyip+"res/atlas/comp/30_loading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onL...

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

506. laya.d3.core.pixelLine.PixelLineSprite3D [ 77%]

... Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode  addLine(startPosition:Vector3, endPosition:Vector3, startColor:Color, endColor:Color):...

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

507. laya.ui.Slider [ 77%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系...

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

508. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 77%]

...property instanceof Material) {                     switch (node.type) {                         case KeyFrameValueType.Float:                             property = property.getFloat(node.getPropertyByIndex(i));                             break;  ...

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

509. 网站不能正常访问的问题 [ 77%]

...是进入下载页还是出现问题 http://ldc.layabox.com/layadownload/?type=layaair 出现下面的报错 X-Frame-Options may only be set via an HTTP header sent along with a document. It may not be set inside <meta>. jquery.js?v=laya_20170705:9645 GET https://official.layabox.com/g ... 559...

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

510. protobuf使用 [ 77%]

...序之前引用还是在之后引用呀 <script src='res/protobuf.js' type='text/javascript'></script> <script src='res/bytebuffer.js' type='text/javascript'></script> <script src='LayaSample.max.js' loader='laya'></script> 有没有人能提供protobuf.js和byteb...

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