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

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

1471. [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

1472. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · 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

1473. [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

1474. 列表组件 · LayaAir3.4 · 引擎文档 · 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

1475. 艰难的历程 [ 31%]

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

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

1476. 自定义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_示例 发布时间: 20260303

1477. 插件开发说明 · LayaAir3.4 · 引擎文档 · 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

1478. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 31%]

...为 true;否则,值为 false。 */ hasListener(type: string) 例如: if( this.uiBtn.hasListener( Laya.Event.CLICK ) ) console.log("uiBtn有点击事件侦听"); 2.3 事件处理 Laya.Handler 当侦听到事件后,用来处理事件的处理器 处理器的属性包括: 1,caller: Object |...

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

1479. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 30%]

...physicsSimulation.rayCastAll(ray,this.outs); //如果射线碰撞到物体 if (this.outs.length !== 0) { for (let i = 0; i < this.outs.length; i++){ //在射线击中的位置添加一个立方体 this.addBoxXYZ(this.outs[i].point.x, this.outs[i].point.y, this.outs[i].point.z ); } } /* ……省...

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

1480. ProtocolBuffer通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...与客户端一致 protobuf.load("./protobuf.proto", (err, root) => { if (err) throw err; // 获取消息类型 const ChatMessage = root.lookupType("ChatMessage"); // 创建 WebSocket 服务器,并定义了8080端口,需要与客户端请求的端口保持一致 const wss = new WebSocket.Serv...

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