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

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

51. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 57%]

...xtends Laya.Script3D { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log...

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

52. 加了meshcollider的物体放大后meshcollider碰撞检测不到 [ 56%]

...后导出至laya。 使用时将模型生成出来后把 local scale 调成0.01。 这时候如果要放大到两倍的效果,就是把 local scale 调整为0.02即可,这时meshcollider的缩放仍然是正确的。 louis • 2019-07-12 13:44 @容垣:谢谢,我最后的办法是自己写了...

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

53. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 55%]

...毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress(): void { this.progressBar.value...

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

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

...移动的距离进行缩放 _camera.transform.translate(new Vector3(0, 0, -0.01 * (distance2 - distance))); distance = distance2; } } else if (0 === touchCount){ _text.text = "触控点归零"; first = true; lastPosition.x = 0; lastPosition.y = 0; first = true; isTwoTouch = false; } } ``` ![](img/4....

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

55. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 54%]

...e); if(!scene) return; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.ma...

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

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

...离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPosition.x = 0; this.lastPosition.y = 0; this.first = t...

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

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

...离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPosition.x = 0; this.lastPosition.y = 0; this.first = t...

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

58. 组件属性的代码使用 · LayaAir3.0文档 · LAYABOX [ 53%]

... cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D ...

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

59. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 53%]

...0, 0); //(500, 500, 0)改为(0,0,0) var rotation = new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(300, 300, 300); Laya.Utils3D.convert3DCoordTo2DScreenCoord(translate, translate); layaMonkey.transf...

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

60. 动画-旧版骨骼动画 [ 52%]

...s Laya.Scene; var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.01, 1000))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight: Laya.DirectionLight = scene.addChild(new Laya.Direc...

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