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

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

1561. Laya中的宏编译要怎么用啊 [ 36%]

... function multiLineMacroCompilationTest():void { var flag:Boolean; var msg:String; var result:int = 0; /*[IF-FLASH-BEGIN]*/ if (!flag) { msg = "AS3"; flag = true; } /*[IF-FLASH-END]*/ if (flag) { result = 100; } /*[IF-SCRIPT-BEGIN] else { msg = "JS"; } [IF-SCRIPT-END]*/ trace(msg + ", let's go! Resu...

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

1562. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 36%]

...(target); for(let i = 0; i < arr.length; ++i){ let layerStr = arr[i] as string; if(layerStr == 'all'){ this.addAllLayers(target); } else{ let bRemove = layerStr.indexOf('!') == 0; if(bRemove){ layerStr = layerStr.substr(1); } let layer = this._layerMap[layerStr]; if(layer === null || layer === un...

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

1563. 只要引入protobuf就会导致连接网络失败 [ 36%]

...8-02-05 14:27 public static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150**...

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

1564. laya.d3.component.hlod.HLOD_API3.0 [ 36%]

...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bounds ge...

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

1565. UI-RefreshList [ 36%]

...录 this.redHotStatus.splice(showRedHot, 1); // console.log("11111", JSON.stringify(this.redHotStatus)); } this.refreshList.refresh(); } onClickDel(index){ console.log("((((((((((((del------------"); //按索引删除 this.refreshList.array.splice(index, 1); //清除已纪录的打开状态 // this....

来源: Laya2.0_示例 发布时间: 20260303

1566. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 35%]

...销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResour...

来源: Laya2.0_文档 发布时间: 20210715

1567. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...量。 * @param name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let m...

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

1568. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this...

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

1569. laya.physics.joint.GearJoint_API3.0 [ 35%]

...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean destroyed...

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

1570. Shader预编译解决方案 [ 35%]

...debugSubShader._owner;     var deugDefines = ShaderPass._debugDefineString;     //将defineDatas抓换成宏定义数组     Shader3D._getNamesByDefineData(compileDefine, deugDefines);     if (!Config3D._config._multiLighting) {         var index = deugDefines.indexO...

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