Class Animation
Assembly: UnityEngine.dll
Syntax
public sealed class Animation : Behaviour, IEnumerable
Properties
animateOnlyIfVisible
Declaration
[Obsolete("Use cullingType instead")]
public bool animateOnlyIfVisible { get; set; }
Property Value
animatePhysics
Declaration
public bool animatePhysics { get; set; }
Property Value
clip
Declaration
public AnimationClip clip { get; set; }
Property Value
cullingType
Declaration
public AnimationCullingType cullingType { get; set; }
Property Value
isPlaying
Declaration
public bool isPlaying { get; }
Property Value
|
Improve this Doc
View Source
Item[String]
Declaration
public AnimationState this[string name] { get; }
Parameters
Type |
Name |
Description |
String |
name |
|
Property Value
|
Improve this Doc
View Source
localBounds
Declaration
public Bounds localBounds { get; set; }
Property Value
playAutomatically
Declaration
public bool playAutomatically { get; set; }
Property Value
wrapMode
Declaration
public WrapMode wrapMode { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddClip(AnimationClip, String)
Declaration
public void AddClip(AnimationClip clip, string newName)
Parameters
|
Improve this Doc
View Source
AddClip(AnimationClip, String, Int32, Int32)
Declaration
[ExcludeFromDocs]
public void AddClip(AnimationClip clip, string newName, int firstFrame, int lastFrame)
Parameters
AddClip(AnimationClip, String, Int32, Int32, Boolean)
Declaration
public void AddClip(AnimationClip clip, string newName, int firstFrame, int lastFrame, [DefaultValue("false")] bool addLoopFrame)
Parameters
|
Improve this Doc
View Source
Blend(String)
Declaration
[ExcludeFromDocs]
public void Blend(string animation)
Parameters
Type |
Name |
Description |
String |
animation |
|
|
Improve this Doc
View Source
Blend(String, Single)
Declaration
[ExcludeFromDocs]
public void Blend(string animation, float targetWeight)
Parameters
Blend(String, Single, Single)
Declaration
public void Blend(string animation, [DefaultValue("1.0F")] float targetWeight, [DefaultValue("0.3F")] float fadeLength)
Parameters
|
Improve this Doc
View Source
CrossFade(String)
Declaration
[ExcludeFromDocs]
public void CrossFade(string animation)
Parameters
Type |
Name |
Description |
String |
animation |
|
|
Improve this Doc
View Source
CrossFade(String, Single)
Declaration
[ExcludeFromDocs]
public void CrossFade(string animation, float fadeLength)
Parameters
CrossFade(String, Single, PlayMode)
Declaration
public void CrossFade(string animation, [DefaultValue("0.3F")] float fadeLength, [DefaultValue("PlayMode.StopSameLayer")] PlayMode mode)
Parameters
|
Improve this Doc
View Source
CrossFadeQueued(String)
Declaration
[ExcludeFromDocs]
public AnimationState CrossFadeQueued(string animation)
Parameters
Type |
Name |
Description |
String |
animation |
|
Returns
|
Improve this Doc
View Source
CrossFadeQueued(String, Single)
Declaration
[ExcludeFromDocs]
public AnimationState CrossFadeQueued(string animation, float fadeLength)
Parameters
Returns
|
Improve this Doc
View Source
CrossFadeQueued(String, Single, QueueMode)
Declaration
[ExcludeFromDocs]
public AnimationState CrossFadeQueued(string animation, float fadeLength, QueueMode queue)
Parameters
Returns
CrossFadeQueued(String, Single, QueueMode, PlayMode)
Declaration
public AnimationState CrossFadeQueued(string animation, [DefaultValue("0.3F")] float fadeLength, [DefaultValue("QueueMode.CompleteOthers")] QueueMode queue, [DefaultValue("PlayMode.StopSameLayer")] PlayMode mode)
Parameters
Returns
|
Improve this Doc
View Source
GetClip(String)
Declaration
public AnimationClip GetClip(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetClipCount()
Declaration
public int GetClipCount()
Returns
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
IsPlaying(String)
Declaration
public bool IsPlaying(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
Play()
Declaration
[ExcludeFromDocs]
public bool Play()
Returns
|
Improve this Doc
View Source
Play(String)
Declaration
[ExcludeFromDocs]
public bool Play(string animation)
Parameters
Type |
Name |
Description |
String |
animation |
|
Returns
|
Improve this Doc
View Source
Play(String, AnimationPlayMode)
Declaration
[Obsolete("use PlayMode instead of AnimationPlayMode.")]
public bool Play(string animation, AnimationPlayMode mode)
Parameters
Returns
Play(String, PlayMode)
Declaration
public bool Play(string animation, [DefaultValue("PlayMode.StopSameLayer")] PlayMode mode)
Parameters
Returns
|
Improve this Doc
View Source
Play(AnimationPlayMode)
Declaration
[Obsolete("use PlayMode instead of AnimationPlayMode.")]
public bool Play(AnimationPlayMode mode)
Parameters
Returns
|
Improve this Doc
View Source
Play(PlayMode)
Declaration
public bool Play([DefaultValue("PlayMode.StopSameLayer")] PlayMode mode)
Parameters
Returns
|
Improve this Doc
View Source
PlayQueued(String)
Declaration
[ExcludeFromDocs]
public AnimationState PlayQueued(string animation)
Parameters
Type |
Name |
Description |
String |
animation |
|
Returns
|
Improve this Doc
View Source
PlayQueued(String, QueueMode)
Declaration
[ExcludeFromDocs]
public AnimationState PlayQueued(string animation, QueueMode queue)
Parameters
Returns
PlayQueued(String, QueueMode, PlayMode)
Declaration
public AnimationState PlayQueued(string animation, [DefaultValue("QueueMode.CompleteOthers")] QueueMode queue, [DefaultValue("PlayMode.StopSameLayer")] PlayMode mode)
Parameters
Returns
|
Improve this Doc
View Source
RemoveClip(String)
Declaration
public void RemoveClip(string clipName)
Parameters
Type |
Name |
Description |
String |
clipName |
|
RemoveClip(AnimationClip)
Declaration
public void RemoveClip(AnimationClip clip)
Parameters
|
Improve this Doc
View Source
Rewind()
Declaration
|
Improve this Doc
View Source
Rewind(String)
Declaration
public void Rewind(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
Sample()
Declaration
|
Improve this Doc
View Source
Stop()
Declaration
|
Improve this Doc
View Source
Stop(String)
Declaration
public void Stop(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
SyncLayer(Int32)
Declaration
public void SyncLayer(int layer)
Parameters
Type |
Name |
Description |
Int32 |
layer |
|
Implements
Extension Methods