资源简介
基于dotween可直接在节点上挂载tweenanimation,设定动画类型,并可预览
可设置dotweenpath
可设置dotweenpath
代码片段和文件信息
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2018/07/13
#if true // MODULE_MARKER
using System;
using UnityEngine;
#if UNITY_5 || UNITY_2017_1_OR_NEWER
using UnityEngine.Audio; // Required for AudioMixer
#endif
#pragma warning disable 1591
namespace DG.Tweening
{
public static class DOTweenModuleAudio
{
#region Shortcuts
#region Audio
/// Tweens an AudioSource‘s volume to the given value.
/// Also stores the AudioSource as the tween‘s target so it can be used for filtered operations
/// The end value to reach (0 to 1)The duration of the tween
public static Tweener DOFade(this AudioSource target float endValue float duration)
{
if (endValue < 0) endValue = 0;
else if (endValue > 1) endValue = 1;
return DOTween.To(() => target.volume x => target.volume = x endValue duration).SetTarget(target);
}
/// Tweens an AudioSource‘s pitch to the given value.
/// Also stores the AudioSource as the tween‘s target so it can be used for filtered operations
/// The end value to reachThe duration of the tween
public static Tweener DOPitch(this AudioSource target float endValue float duration)
{
return DOTween.To(() => target.pitch x => target.pitch = x endValue duration).SetTarget(target);
}
#endregion
#if UNITY_5 || UNITY_2017_1_OR_NEWER
#region AudioMixer (Unity 5 or Newer)
/// Tweens an AudioMixer‘s exposed float to the given value.
/// Also stores the AudioMixer as the tween‘s target so it can be used for filtered operations.
/// Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer.
/// Name given to the exposed float to set
/// The end value to reachThe duration of the tween
public static Tweener DOSetFloat(this AudioMixer target string floatName float endValue float duration)
{
return DOTween.To(()=> {
float currVal;
target.GetFloat(floatName out currVal);
return currVal;
} x=> target.SetFloat(floatName x) endValue duration)
.SetTarget(target);
}
#region Operation Shortcuts
///
/// Completes all tweens that have this target as a reference
/// (meaning tweens that were started from this target or that had this target added as an Id)
/// and returns the total number of tweens completed
/// (meaning the tweens that
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 27231 2019-09-21 17:59 DOTweenPro\DOTweenAnimation.cs
文件 243 2019-09-21 17:59 DOTweenPro\DOTweenAnimation.cs.me
文件 15872 2019-09-21 17:59 DOTweenPro\DOTweenPro.dll
文件 2469 2019-09-21 17:59 DOTweenPro\DOTweenPro.dll.mdb
文件 155 2019-09-21 17:59 DOTweenPro\DOTweenPro.dll.mdb.me
文件 569 2019-09-21 17:59 DOTweenPro\DOTweenPro.dll.me
文件 2185 2019-09-21 17:59 DOTweenPro\DOTweenPro.xm
文件 158 2019-09-21 17:59 DOTweenPro\DOTweenPro.xm
文件 4084 2019-09-21 17:59 DOTweenPro\DOTweenProShortcuts.cs
文件 243 2019-09-21 17:59 DOTweenPro\DOTweenProShortcuts.cs.me
文件 22718 2019-09-21 17:59 DOTweenPro\DOTweenTextMeshPro.cs
文件 243 2019-09-21 17:59 DOTweenPro\DOTweenTextMeshPro.cs.me
文件 13743 2019-09-21 17:59 DOTweenPro\DOTweenTk2d.cs
文件 243 2019-09-21 17:59 DOTweenPro\DOTweenTk2d.cs.me
文件 35346 2019-09-21 17:59 DOTweenPro\Editor\DOTweenAnimationInspector.cs
文件 243 2019-09-21 17:59 DOTweenPro\Editor\DOTweenAnimationInspector.cs.me
文件 11363 2019-09-21 17:59 DOTweenPro\Editor\DOTweenPreviewManager.cs
文件 243 2019-09-21 17:59 DOTweenPro\Editor\DOTweenPreviewManager.cs.me
文件 28672 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.dll
文件 4053 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.dll.mdb
文件 155 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.dll.mdb.me
文件 569 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.dll.me
文件 542 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.xm
文件 158 2019-09-21 17:59 DOTweenPro\Editor\DOTweenProEditor.xm
文件 172 2019-09-21 17:59 DOTweenPro\Editor.me
文件 2439 2019-09-21 17:59 DOTweenPro\readme.txt
文件 158 2019-09-21 17:59 DOTweenPro\readme.txt.me
文件 9728 2019-09-21 17:59 DemiLib\Core\DemiLib.dll
文件 2517 2019-09-21 17:59 DemiLib\Core\DemiLib.dll.mdb
文件 155 2019-09-21 17:59 DemiLib\Core\DemiLib.dll.mdb.me
............此处省略262个文件信息
相关资源
- Introduction to Stochastic Processes 随机过程
- 红外遥控protuse仿真+keil程序
- VC工程重命名工具 VC Project Rename
- 基于单片机的dac0832阶梯波的proteus仿真
- ManageEngineNetFlowAnalyzerProfessionalKeygen.
- 用proteus设计仿真硬件电路图:用808
- 用proteus设计仿真硬件电路图:利用
- Compaq.Visual.Fortran.v6.6.Professional.iso
- Ansys.Products.2020R2第二部分用户手册
- SW_DVD5_Project_Pro_2010_64Bit_ChnSimp_MLF_X16
- VCLZipPro v4.51.1.zip
- 基于Proteus的数字钟设计及仿真.
- protel99se原创电路图PCB图 水温控制器
- protel99se原创电路图PCB图 PCM语音编解码
- protel99se原创电路图PCB图 8人表决器
- PROTEUS的光耦 NPN-4,TLP521,PC817的
- proe标准零件库的创建和定制
- RS485总线的proteus环境下仿真,实现1主
- 51单片机Proteus仿真320x240TFT彩屏.rar
- project2013模板包一共11个
- 51单片机的比赛计时计分系统Proteus仿
- proteus仿真buck电路
- 16x16点阵文字屏幕protues仿真图
- mcs 51单片机 proteus 仿真实用大全 集合
-
NFCLogical li
nk Control Protocol version 1. - AVPro Video 1.7
- protel99se辅助软件
- 金沙滩51单片机proteus文件
- 51单片机万年历程序及proteus仿真
- 51单片机DS18B20程序及proteus仿真
评论
共有 条评论