大约有 12 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0109 秒)
...//在切换动作的按钮监听事件中播放动作 switch (blendType) { case 0: if (motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 animator.crossFade(motions[motio...
来源: Laya2.0_文档 发布时间: 20210715
...切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(thi...
来源: Laya2.0_文档 发布时间: 20210715
...切换动作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(thi...
来源: Laya2.0_文档 发布时间: 20210715
...Material.__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(CustomTerrainMaterial.SHAD...
来源: Laya2.0_文档 发布时间: 20210715
...Material.__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(CustomTerrainMaterial.SHAD...
来源: Laya2.0_文档 发布时间: 20210714
...__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(CustomTerrainMaterial.SHAD...
来源: Laya2.0_文档 发布时间: 20210714
...nction 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 缓动对象 */ function ...
来源: Laya2.0_文档 发布时间: 20210715
...:Laya.Text):void{ var c:number = 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 缓动对象 */ private c...
来源: Laya2.0_文档 发布时间: 20210715
...: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.garbageCollection(); break; ...
来源: Laya2.0_文档 发布时间: 20210715
...eColor(txt:Text):void { var c:int = parseInt(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; } } } /** * 缓动完成后的回调方法 * @param txt 缓动对...
来源: Laya2.0_文档 发布时间: 20210715