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

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

251. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 45%]

...erableMap: Map>, skeletonMap: Map) { var animator: Animator = animatorRoot.addComponent(Animator); // animator 添加 渲染节点 队列 renderableMap.forEach(renderableArray => { //@ts-ignore animator._renderableSprites.push(...renderableArray); }); // 添加 animator clip // 在 Unity 中使用...

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

252. 自定义shader-边缘光照shader [ 45%]

... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChil...

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

253. laya.d3.core.Camera_API3.0 [ 44%]

...raRenderData addAllLayers addChild addChildAt addChildren addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getCom...

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

254. Resources already exist,is repeated loading 加载特效报重复加载 [ 44%]

....rotate(new Laya.Vector3( -15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);                      //添加光照         var directionLight= new Laya.DirectionLight();         this.scene.addChild(directionLight);         direct...

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

255. laya.d3.webxr.core.WebXRCamera_API3.0 [ 43%]

...raRenderData addAllLayers addChild addChildAt addChildren addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getCom...

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

256. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...内容的基类。 通过代码也可以添加组件,需要物体使用addComponent方法 //添加Rigidbody3D组件 let rigidBody = this.layaMonkeyParent.addComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderShape(1, 1, 1); //设置盒...

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

257. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...et sprite = ownerSprite.addChild(new Laya.Sprite3D()); let filter = sprite.addComponent(Laya.MeshFilter); let render = sprite.addComponent(Laya.MeshRenderer); // 设置相同的材质与网格 filter.sharedMesh = mesh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosit...

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

258. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...ble(): void { // 添加2D线渲染器组件 this.line2DRender = this.owner.addComponent(Laya.Line2DRender); // 设置线的宽度 this.line2DRender.lineWidth = 5; } // 鼠标按下时开始绘制 onMouseDown(evt: Laya.Event): void { this.isDrawing = true; // 记录起始点 this.lastMousePos[0] = ev...

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

259. 如何实现3d遮罩效果? [ 42%]

... 0.0); mesh1.transform.localScale = new Vector3(0.01, 0.01, 0.01); camera1.addComponent(CameraMoveScript); } private function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn...

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

260. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("idle", false); // 播放...

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