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

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

1. 注册宏定义与使用宏(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 100%]

...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

2. 注册宏定义与使用宏(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 100%]

...**/ CustomTerrainMaterial.__init__(); .... } private _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

3. 注册宏定义与使用宏(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 99%]

...mTerrainMaterial.__init__(); .... } private function _setDetailNum(value){ switch (value) { case 1: this._shaderValues.addDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1); this._shaderValues.removeDefine(CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM2); this._shaderValues.removeDefine(CustomTer...

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

4. 动画多层混合(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 97%]

...放层 blendType++; //在切换动作的按钮监听事件中播放动作 switch (blendType) { case 0: if (motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 animator.cro...

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

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

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

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

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

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

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

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

... ```typescript function(e:Event) { this._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.gar...

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

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

...on)) ```typescript function(e: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(); b...

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

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

...cript function(e:Laya.Event):void { this._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.ga...

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

10. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 61%]

...对象 */ function updateColor(txt){ var c = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 ...

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