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

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

61. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 59%]

...Controll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//...

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

62. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 58%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 使用了u3D导出来的粒子,不停的显示移除并销毁其克隆对象,统计面板的显存和内存就会显示成负数 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得...

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

63. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 58%]

...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...

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

64. 使用3DUI · LayaAir3.0文档 · LAYABOX [ 57%]

...uper(); Main.instance = this; } @property({ type: Laya.Sprite3D }) private target: Laya.Sprite3D; public animator: Laya.Animator; onAwake(): void { //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } } 最后来看看运行效果: (动图2-10) 到...

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

65. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 57%]

...Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); break; } /** * @private 销毁场...

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

66. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 56%]

...his._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; } /** * @pr...

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

67. 3D变换 · LayaAir3.0文档 · LAYABOX [ 56%]

...换,Transform3D中还有一些其他常用的方法和属性: lookAt(target: Vector3, up: Vector3, isLocal: boolean = false, isCamera: boolean = true): void:观察目标位置。 localPosition:Vector3:局部位置。 localMatrix:Matrix4x4:局部矩阵。 position:Vector3:世界位置。 ...

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

68. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 55%]

...hrome出现错误: Error processing launch: Error Could not attach to main target unity中的模型导出后在laya中显示不正常 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。...

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

69. laya可以转换flash补间动画成h5动画吗? [ 54%]

...otected function onCom(event:Event):void { var loaderInfo:LoaderInfo=event.target as LoaderInfo; var mc:MovieClip=loaderInfo.content as MovieClip; mc.play(); addChild(mc); }  3D补间目前还不支持!!! 2.如果不可以转的话,可以把补间动画导出成视频或者gif图片之类...

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

70. 模型资源设置 · LayaAir3.0文档 · LAYABOX [ 53%]

...的原数据,获得模型原始效果。 导入变形目标 import Morph Target 导入模型中的变形目标morph target(也叫混合形状Blend Shape)数据。 3.2 索引数据格式index Format 索引数据用于确定顶点在顶点缓冲区中的位置,从而构建几何体的形状。...

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