1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 01:06:02 +08:00

- Added DOTween50 library (with specific stuff for Unity 5.x)

- Added AudioMixer shortcuts (DOSetFloat)
This commit is contained in:
Daniele Giardini 2015-03-21 19:20:29 +01:00
parent d11ccc6374
commit 0a7dc5affd
66 changed files with 838 additions and 1 deletions

View File

@ -0,0 +1,103 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOTween50</name>
</assembly>
<members>
<member name="T:DG.Tweening.ShortcutExtensions">
<summary>
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
These, as all DOTween50 methods, require Unity 5.0 or later.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSetFloat(UnityEngine.Audio.AudioMixer,System.String,System.Single,System.Single)">
<summary>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.</summary>
<param name="floatName">Name given to the exposed float to set</param>
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Audio.AudioMixer)">
<summary>
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 don't have infinite loops and were not already complete)
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Audio.AudioMixer,System.Boolean)">
<summary>
Kills 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 killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Audio.AudioMixer)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of 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 flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Audio.AudioMixer,System.Single,System.Boolean)">
<summary>
Sends to the given position 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 involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Audio.AudioMixer)">
<summary>
Pauses 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 paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Audio.AudioMixer)">
<summary>
Plays 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Audio.AudioMixer)">
<summary>
Plays backwards 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Audio.AudioMixer)">
<summary>
Plays forward 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Audio.AudioMixer)">
<summary>
Restarts 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 restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Audio.AudioMixer)">
<summary>
Rewinds 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 rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Audio.AudioMixer)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of 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 involved.
</summary>
</member>
</members>
</doc>

View File

@ -0,0 +1,103 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOTween50</name>
</assembly>
<members>
<member name="T:DG.Tweening.ShortcutExtensions">
<summary>
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
These, as all DOTween50 methods, require Unity 5.0 or later.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSetFloat(UnityEngine.Audio.AudioMixer,System.String,System.Single,System.Single)">
<summary>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.</summary>
<param name="floatName">Name given to the exposed float to set</param>
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Audio.AudioMixer)">
<summary>
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 don't have infinite loops and were not already complete)
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Audio.AudioMixer,System.Boolean)">
<summary>
Kills 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 killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Audio.AudioMixer)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of 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 flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Audio.AudioMixer,System.Single,System.Boolean)">
<summary>
Sends to the given position 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 involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Audio.AudioMixer)">
<summary>
Pauses 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 paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Audio.AudioMixer)">
<summary>
Plays 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Audio.AudioMixer)">
<summary>
Plays backwards 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Audio.AudioMixer)">
<summary>
Plays forward 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Audio.AudioMixer)">
<summary>
Restarts 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 restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Audio.AudioMixer)">
<summary>
Rewinds 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 rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Audio.AudioMixer)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of 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 involved.
</summary>
</member>
</members>
</doc>

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 011d3116e0e87e3468e30ecd026d2dbc
timeCreated: 1426960365
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
fileFormatVersion: 2
guid: a7c56c2a7b6aa7249960e3bdc39b6981
timeCreated: 1426960377
licenseType: Pro
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Any:
enabled: 1
settings: {}
Editor:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,103 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOTween50</name>
</assembly>
<members>
<member name="T:DG.Tweening.ShortcutExtensions">
<summary>
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
These, as all DOTween50 methods, require Unity 5.0 or later.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSetFloat(UnityEngine.Audio.AudioMixer,System.String,System.Single,System.Single)">
<summary>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.</summary>
<param name="floatName">Name given to the exposed float to set</param>
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Audio.AudioMixer)">
<summary>
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 don't have infinite loops and were not already complete)
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Audio.AudioMixer,System.Boolean)">
<summary>
Kills 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 killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Audio.AudioMixer)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of 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 flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Audio.AudioMixer,System.Single,System.Boolean)">
<summary>
Sends to the given position 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 involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Audio.AudioMixer)">
<summary>
Pauses 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 paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Audio.AudioMixer)">
<summary>
Plays 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Audio.AudioMixer)">
<summary>
Plays backwards 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Audio.AudioMixer)">
<summary>
Plays forward 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Audio.AudioMixer)">
<summary>
Restarts 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 restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Audio.AudioMixer)">
<summary>
Rewinds 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 rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Audio.AudioMixer)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of 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 involved.
</summary>
</member>
</members>
</doc>

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3a6814e095786e74faa2c054ea887651
timeCreated: 1426960377
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 557ce7cf46dec3d4d9c3b520c17c3540
timeCreated: 1426957742
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,23 @@
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2015/03/21 17:57
using System.Collections;
using DG.Tweening;
using UnityEngine;
using UnityEngine.Audio;
public class AudioMixerTweens : BrainBase
{
public AudioMixerGroup mixerGroup;
void Start()
{
mixerGroup.audioMixer.DOSetFloat("volume", -80, 2).SetEase(Ease.InQuart).SetAutoKill(false).Pause();
}
void OnGUI()
{
if (GUILayout.Button("Fade Out")) mixerGroup.audioMixer.DOPlayForward();
if (GUILayout.Button("Fade In")) mixerGroup.audioMixer.DOPlayBackwards();
}
}

View File

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: d961552df607f1a46b71be5969e71721
timeCreated: 1426957375
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 05d27c49a42468d47a4a9950631a86ae
timeCreated: 1426956976
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: ec84ca6b27a289948bfa83b1c5894d56
folderAsset: yes
timeCreated: 1426957434
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,21 @@
fileFormatVersion: 2
guid: c35aa28ba0768544b95421659894f3c9
timeCreated: 1426961907
licenseType: Pro
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 0
compressionFormat: 1
quality: .639999986
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 1
preloadAudioData: 1
loadInBackground: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,2 @@
Loop by Frankum
https://www.freesound.org/people/frankum/sounds/171266/

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f18d26bf230620843a058072ee8b6921
timeCreated: 1426957632
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DOTweenProEditor", "DOTween
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DOTween46", "DOTween46\DOTween46.csproj", "{AC1E5A23-CE58-419C-B165-EB1CD39AB433}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DOTween50", "DOTween50\DOTween50.csproj", "{930C3B07-B00A-44B8-A8E5-452A8FD125C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -43,6 +45,10 @@ Global
{AC1E5A23-CE58-419C-B165-EB1CD39AB433}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AC1E5A23-CE58-419C-B165-EB1CD39AB433}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AC1E5A23-CE58-419C-B165-EB1CD39AB433}.Release|Any CPU.Build.0 = Release|Any CPU
{930C3B07-B00A-44B8-A8E5-452A8FD125C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{930C3B07-B00A-44B8-A8E5-452A8FD125C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{930C3B07-B00A-44B8-A8E5-452A8FD125C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{930C3B07-B00A-44B8-A8E5-452A8FD125C7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -21,7 +21,7 @@ namespace DG.Tweening
public class DOTween
{
/// <summary>DOTween's version</summary>
public static readonly string Version = "1.0.317";
public static readonly string Version = "1.0.325";
///////////////////////////////////////////////
// Options ////////////////////////////////////

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{930C3B07-B00A-44B8-A8E5-452A8FD125C7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DG.Tweening</RootNamespace>
<AssemblyName>DOTween50</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\bin\DOTween50.xml</DocumentationFile>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\bin\DOTween50.xml</DocumentationFile>
<NoWarn>1573</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>C:\Program Files\_Design\Unity 5\Editor\Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ShortcutExtensions.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DOTween\DOTween.csproj">
<Project>{DE17C145-3E8D-45D6-BBB6-D06BD7D80A55}</Project>
<Name>DOTween</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set BinDir=bin.Global\DOTween
set DestinationDir=$(SolutionDir)..\..\%25BinDir%25
set BinDirNoMeta=bin.Global_no_meta\DOTween
set DestinationDirNoMeta=$(SolutionDir)..\..\%25BinDirNoMeta%25
set BinDirUnityTests=UnityTests.Unity4\Assets\Demigiant\DOTween
set DestinationDirUnityTests=$(SolutionDir)..\%25BinDirUnityTests%25
set BinDirUnity5Tests=UnityTests.Unity5\Assets\Demigiant\DOTween
set DestinationDirUnity5Tests=$(SolutionDir)..\%25BinDirUnity5Tests%25
set BinDirCompatibilityTests=UnityCompatibilityTests.Unity35\Assets\Demigiant\DOTween
set DestinationDirCompatibilityTests=$(SolutionDir)..\%25BinDirCompatibilityTests%25
echo %25DestinationDir%25
echo Deleting TMPs...
DEL $(TargetDir)\*.tmp
CD $(TargetDir)
echo Converting PDB to MDB and deleting PDB...
"c:\Program Files\_Design\Unity 4.6\Editor\Data\MonoBleedingEdge\lib\mono\4.0\pdb2mdb.exe" $(TargetFileName)
DEL $(TargetName).pdb
echo Exporting Assembly to %25DestinationDir%25
echo Copying files to Destination...
echo f | xcopy "$(SolutionDir)\bin" %25DestinationDir%25 /Y /I /E
echo Exporting Assembly to %25DestinationDirNoMeta%25
echo f | xcopy "$(SolutionDir)\bin" %25DestinationDirNoMeta%25 /Y /I /E
echo Exporting Assembly to %25DestinationDirUnityTests%25
echo f | xcopy "$(SolutionDir)\bin" %25DestinationDirUnityTests%25 /Y /I /E
echo Exporting Assembly to %25DestinationDirUnity5Tests%25
echo f | xcopy "$(SolutionDir)\bin" %25DestinationDirUnity5Tests%25 /Y /I /E
echo Exporting Assembly to %25DestinationDirCompatibilityTests%25
echo f | xcopy "$(SolutionDir)\bin" %25DestinationDirCompatibilityTests%25 /Y /I /E</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DOTween50")]
[assembly: AssemblyDescription("DOTween shortcuts for Unity 5.0 or later")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Demigiant")]
[assembly: AssemblyProduct("DOTween50")]
[assembly: AssemblyCopyright("Copyright © Daniele Giardini, 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("807e068c-2a0e-4c81-a303-4b4fd3924511")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,154 @@
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2015/03/21 18:43
using UnityEngine.Audio;
namespace DG.Tweening
{
/// <summary>
/// Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
/// These, as all DOTween50 methods, require Unity 5.0 or later.
/// </summary>
public static class ShortcutExtensions
{
#region AudioMixerGroup
/// <summary>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.</summary>
/// <param name="floatName">Name given to the exposed float to set</param>
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
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);
}
#endregion
#region Operation Shortcuts
/// <summary>
/// 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 don't have infinite loops and were not already complete)
/// </summary>
public static int DOComplete(this AudioMixer target)
{
return DOTween.Complete(target);
}
/// <summary>
/// Kills 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 killed.
/// </summary>
/// <param name="complete">If TRUE completes the tween before killing it</param>
public static int DOKill(this AudioMixer target, bool complete = false)
{
// int tot = complete ? DOTween.CompleteAndReturnKilledTot(target) : 0;
// return tot + DOTween.Kill(target);
return DOTween.Kill(target, complete);
}
/// <summary>
/// Flips the direction (backwards if it was going forward or viceversa) of 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 flipped.
/// </summary>
public static int DOFlip(this AudioMixer target)
{
return DOTween.Flip(target);
}
/// <summary>
/// Sends to the given position 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 involved.
/// </summary>
/// <param name="to">Time position to reach
/// (if higher than the whole tween duration the tween will simply reach its end)</param>
/// <param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
public static int DOGoto(this AudioMixer target, float to, bool andPlay = false)
{
return DOTween.Goto(target, to, andPlay);
}
/// <summary>
/// Pauses 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 paused.
/// </summary>
public static int DOPause(this AudioMixer target)
{
return DOTween.Pause(target);
}
/// <summary>
/// Plays 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 played.
/// </summary>
public static int DOPlay(this AudioMixer target)
{
return DOTween.Play(target);
}
/// <summary>
/// Plays backwards 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 played.
/// </summary>
public static int DOPlayBackwards(this AudioMixer target)
{
return DOTween.PlayBackwards(target);
}
/// <summary>
/// Plays forward 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 played.
/// </summary>
public static int DOPlayForward(this AudioMixer target)
{
return DOTween.PlayForward(target);
}
/// <summary>
/// Restarts 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 restarted.
/// </summary>
public static int DORestart(this AudioMixer target)
{
return DOTween.RestartAll(target);
}
/// <summary>
/// Rewinds 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 rewinded.
/// </summary>
public static int DORewind(this AudioMixer target)
{
return DOTween.RewindAll(target);
}
/// <summary>
/// Toggles the paused state (plays if it was paused, pauses if it was playing) of 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 involved.
/// </summary>
public static int DOTogglePause(this AudioMixer target)
{
return DOTween.TogglePause(target);
}
#endregion
}
}

View File

@ -67,6 +67,7 @@ namespace DG.DOTweenEditor
// 5.x
totImported += ImportAddons("43", addonsDir);
totImported += ImportAddons("46", addonsDir);
totImported += ImportAddons("50", addonsDir);
}
// Additional plugin files
// Pro plugins

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,103 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>DOTween50</name>
</assembly>
<members>
<member name="T:DG.Tweening.ShortcutExtensions">
<summary>
Methods that extend known Unity objects and allow to directly create and control tweens from their instances.
These, as all DOTween50 methods, require Unity 5.0 or later.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOSetFloat(UnityEngine.Audio.AudioMixer,System.String,System.Single,System.Single)">
<summary>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.</summary>
<param name="floatName">Name given to the exposed float to set</param>
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOComplete(UnityEngine.Audio.AudioMixer)">
<summary>
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 don't have infinite loops and were not already complete)
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOKill(UnityEngine.Audio.AudioMixer,System.Boolean)">
<summary>
Kills 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 killed.
</summary>
<param name="complete">If TRUE completes the tween before killing it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOFlip(UnityEngine.Audio.AudioMixer)">
<summary>
Flips the direction (backwards if it was going forward or viceversa) of 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 flipped.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOGoto(UnityEngine.Audio.AudioMixer,System.Single,System.Boolean)">
<summary>
Sends to the given position 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 involved.
</summary>
<param name="to">Time position to reach
(if higher than the whole tween duration the tween will simply reach its end)</param>
<param name="andPlay">If TRUE will play the tween after reaching the given position, otherwise it will pause it</param>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPause(UnityEngine.Audio.AudioMixer)">
<summary>
Pauses 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 paused.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlay(UnityEngine.Audio.AudioMixer)">
<summary>
Plays 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayBackwards(UnityEngine.Audio.AudioMixer)">
<summary>
Plays backwards 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOPlayForward(UnityEngine.Audio.AudioMixer)">
<summary>
Plays forward 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 played.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORestart(UnityEngine.Audio.AudioMixer)">
<summary>
Restarts 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 restarted.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DORewind(UnityEngine.Audio.AudioMixer)">
<summary>
Rewinds 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 rewinded.
</summary>
</member>
<member name="M:DG.Tweening.ShortcutExtensions.DOTogglePause(UnityEngine.Audio.AudioMixer)">
<summary>
Toggles the paused state (plays if it was paused, pauses if it was playing) of 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 involved.
</summary>
</member>
</members>
</doc>