mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 17:26:03 +08:00
Added lots of additional Camera shortcuts
This commit is contained in:
parent
40b34f03fa
commit
d790014955
@ -852,6 +852,46 @@
|
|||||||
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
||||||
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:DG.Tweening.ShortcutExtensions.DOAspect(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>aspect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
||||||
|
<summary>Tweens a Camera's backgroundColor to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFarClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>farClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFieldOfView(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>fieldOfView</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DONearClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>nearClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOOrthoSize(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>orthographicSize</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOPixelRect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>pixelRect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DORect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>rect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
||||||
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
@ -888,11 +928,6 @@
|
|||||||
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
||||||
Setting it to 0 will shake along a single direction.</param>
|
Setting it to 0 will shake along a single direction.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
|
||||||
<summary>Tweens a Camera's backgroundColor to the given value.
|
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
|
||||||
<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.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
||||||
<summary>Tweens a Light's color to the given value.
|
<summary>Tweens a Light's color to the given value.
|
||||||
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -852,6 +852,46 @@
|
|||||||
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
||||||
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:DG.Tweening.ShortcutExtensions.DOAspect(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>aspect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
||||||
|
<summary>Tweens a Camera's backgroundColor to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFarClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>farClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFieldOfView(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>fieldOfView</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DONearClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>nearClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOOrthoSize(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>orthographicSize</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOPixelRect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>pixelRect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DORect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>rect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
||||||
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
@ -888,11 +928,6 @@
|
|||||||
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
||||||
Setting it to 0 will shake along a single direction.</param>
|
Setting it to 0 will shake along a single direction.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
|
||||||
<summary>Tweens a Camera's backgroundColor to the given value.
|
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
|
||||||
<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.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
||||||
<summary>Tweens a Light's color to the given value.
|
<summary>Tweens a Light's color to the given value.
|
||||||
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -852,6 +852,46 @@
|
|||||||
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
||||||
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:DG.Tweening.ShortcutExtensions.DOAspect(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>aspect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
||||||
|
<summary>Tweens a Camera's backgroundColor to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFarClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>farClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFieldOfView(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>fieldOfView</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DONearClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>nearClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOOrthoSize(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>orthographicSize</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOPixelRect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>pixelRect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DORect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>rect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
||||||
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
@ -888,11 +928,6 @@
|
|||||||
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
||||||
Setting it to 0 will shake along a single direction.</param>
|
Setting it to 0 will shake along a single direction.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
|
||||||
<summary>Tweens a Camera's backgroundColor to the given value.
|
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
|
||||||
<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.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
||||||
<summary>Tweens a Light's color to the given value.
|
<summary>Tweens a Light's color to the given value.
|
||||||
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -54,6 +54,70 @@ namespace DG.Tweening
|
|||||||
|
|
||||||
#region Camera Shortcuts
|
#region Camera Shortcuts
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>aspect</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOAspect(this Camera target, float endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.aspect, x => target.aspect = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's backgroundColor to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOColor(this Camera target, Color endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.backgroundColor, x => target.backgroundColor = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>farClipPlane</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOFarClipPlane(this Camera target, float endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.farClipPlane, x => target.farClipPlane = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>fieldOfView</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOFieldOfView(this Camera target, float endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.fieldOfView, x => target.fieldOfView = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>nearClipPlane</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DONearClipPlane(this Camera target, float endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.nearClipPlane, x => target.nearClipPlane = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>orthographicSize</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOOrthoSize(this Camera target, float endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.orthographicSize, x => target.orthographicSize = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>pixelRect</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DOPixelRect(this Camera target, Rect endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.pixelRect, x => target.pixelRect = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Tweens a Camera's <code>rect</code> to the given value.
|
||||||
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
|
public static Tweener DORect(this Camera target, Rect endValue, float duration)
|
||||||
|
{
|
||||||
|
return DOTween.To(() => target.rect, x => target.rect = x, endValue, duration).SetTarget(target);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
/// <summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
||||||
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
/// <param name="duration">The duration of the tween</param>
|
/// <param name="duration">The duration of the tween</param>
|
||||||
@ -104,14 +168,6 @@ namespace DG.Tweening
|
|||||||
.SetTarget(target).SetSpecialStartupMode(SpecialStartupMode.SetShake);
|
.SetTarget(target).SetSpecialStartupMode(SpecialStartupMode.SetShake);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Tweens a Camera's backgroundColor to the given value.
|
|
||||||
/// Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
|
||||||
/// <param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
|
||||||
public static Tweener DOColor(this Camera target, Color endValue, float duration)
|
|
||||||
{
|
|
||||||
return DOTween.To(() => target.backgroundColor, x => target.backgroundColor = x, endValue, duration).SetTarget(target);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Light Shortcuts
|
#region Light Shortcuts
|
||||||
|
|||||||
@ -852,6 +852,46 @@
|
|||||||
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
Also stores the AudioSource as the tween's target so it can be used for filtered operations</summary>
|
||||||
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
<param name="endValue">The end value to reach</param><param name="duration">The duration of the tween</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:DG.Tweening.ShortcutExtensions.DOAspect(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>aspect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
||||||
|
<summary>Tweens a Camera's backgroundColor to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFarClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>farClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOFieldOfView(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>fieldOfView</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DONearClipPlane(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>nearClipPlane</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOOrthoSize(UnityEngine.Camera,System.Single,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>orthographicSize</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOPixelRect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>pixelRect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DORect(UnityEngine.Camera,UnityEngine.Rect,System.Single)">
|
||||||
|
<summary>Tweens a Camera's <code>rect</code> to the given value.
|
||||||
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
<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.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOShakePosition(UnityEngine.Camera,System.Single,System.Single,System.Int32,System.Single)">
|
||||||
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
<summary>Shakes a Camera's localPosition along its relative X Y axes with the given values.
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
||||||
@ -888,11 +928,6 @@
|
|||||||
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
<param name="randomness">Indicates how much the shake will be random (0 to 180 - values higher than 90 kind of suck, so beware).
|
||||||
Setting it to 0 will shake along a single direction.</param>
|
Setting it to 0 will shake along a single direction.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Camera,UnityEngine.Color,System.Single)">
|
|
||||||
<summary>Tweens a Camera's backgroundColor to the given value.
|
|
||||||
Also stores the camera as the tween's target so it can be used for filtered operations</summary>
|
|
||||||
<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.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
<member name="M:DG.Tweening.ShortcutExtensions.DOColor(UnityEngine.Light,UnityEngine.Color,System.Single)">
|
||||||
<summary>Tweens a Light's color to the given value.
|
<summary>Tweens a Light's color to the given value.
|
||||||
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
Also stores the light as the tween's target so it can be used for filtered operations</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user