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

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

1461. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 34%]

....png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = wi...

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

1462. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 34%]

....png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = wi...

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

1463. [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 [ 34%]

...itingPrettyPrinted error:&error];     NSString *jsonString;       if (!jsonData) {         NSLog(@"%@",error);     } else {         jsonString = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding];     }       NSMutableString *mutStr = [NSMutableString strin...

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

1464. [LayaAir3]LayaAir3.0UnityPlugin 导出出错 [ 33%]

...出插件出错 GUI Error: Invalid GUILayout state in LayaAir3D view. Verify that all layout Begin/End calls match UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)  MissingReferenceException: The object of type 'SkinnedMeshRenderer' has been destroyed but you are still trying to access it...

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

1465. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...der2D, enableInstancing:true, supportReflectionProbe:true, shaderType:2, uniformMap:{ u_gradientDirection: {type: Vector2, default:[1,1]}, // 渐变方向 u_gradientStartColor: {type:Vector4, default:[1,1,1,1]}, // 渐变起始颜色 u_gradientEndColor: {type:Vector4, default:[1,1,1,1]} // 渐变结...

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

1466. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 33%]

...ainAbility/MainAbility.ts:4:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared. WARN: ArkTS:WARN File: /Users/HonestQiao/...

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

1467. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 32%]

...g function getListItemResource(index:number) { let msg = _messages[index]; if (msg.fromMe) return "url1.lh"; else return "url2.lh"; } 然后设置这个函数为列表的item提供者: aList.itemProvider = getListItemResource; 对于横向流动、竖向流动和分页的列表,与非虚拟列...

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

1468. 艰难的历程 [ 31%]

...,不知时日过.   慢慢的,开始尝试自己写代码 从最开始的if else   到switch  从table  到div 从只能在一个页面上写写改改,到使用框架尝试制作一个网站   期间遇到过无数问题,其中苦难只有自己知道 从变量到数组、循环、还有花了...

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

1469. 自定义shader-地形shader [ 31%]

...mMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); customMaterial.setSplatAlphaTexture(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/s...

来源: Laya_示例 发布时间: 20251219

1470. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...itor { private _c: IEditorEnv.IGizmoCircle; onDrawGizmosSelected(): void { if (!this._c) { let manager = IEditorEnv.Gizmos2D.getManager(this.owner); this._c = manager.createCircle(10); this._c.fill("#ff0"); } this._c.setLocalPos(10, 10); } } 实现效果如下: 十一、自定义配置 插件开...

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