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

大约有 296 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0025 秒)

1. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 100%]

.../scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, heightMap, 6.574996471405029, 10.000000953674316); //更新terrainSprite世界矩阵(为可行走区域世界矩...

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

2. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 99%]

.../scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, heightMap, 6.574996471405029, 10.000000953674316); //更新terrainSprite世界矩阵(为可行走区域世界矩...

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

3. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 99%]

...ypescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点...

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

4. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 99%]

...ypescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点...

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

5. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 99%]

...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...

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

6. 动画多层混合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 99%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

7. 动画多层混合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 99%]

...。 ```typescript //在混合模式的按钮监听事件中改变播放层 this.blendType++; //在切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为...

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

8. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 99%]

...ructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { con...

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

9. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 98%]

...Map;       // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口   private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init(); /...

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

10. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 98%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3: Text = th...

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