大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0079 秒)
....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
....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
...itingPrettyPrinted error:&error]; NSString *jsonString; if (!jsonData) { NSLog(@"%@",error); } else { jsonString = [[NSString alloc]initWithData:jsonData encoding:NSUTF8StringEncoding]; } NSMutableString *mutStr = [NSMutableString strin...
来源: Laya_社区 发布时间: 20201209
...出插件出错 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
...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
...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
...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
...,不知时日过. 慢慢的,开始尝试自己写代码 从最开始的if else 到switch 从table 到div 从只能在一个页面上写写改改,到使用框架尝试制作一个网站 期间遇到过无数问题,其中苦难只有自己知道 从变量到数组、循环、还有花了...
来源: Laya_社区 发布时间: 20180524
...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
...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