SmoothMoves  2.x
2D Skeletal Animation for Unity3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Classes | Functions
Package SmoothMoves

Classes

class  AnimationClipSM_Lite
 Stores information about animation clips such as frames per second, mixing / blending mode, etc. This class mimics Unity's AnimationClip class very closely, acting as a wrapper. Please see Unity's documentation on the Animation clip for more information. http://docs.unity3d.com/Documentation/ScriptReference/AnimationClip.html More...
 
class  AnimationStateSM
 This class wraps the AnimationStates from the Animation object in BoneAnimation. It's vital that this state is used in place of the Animation object's AnimationStates since SmoothMoves modifies some values like speed and time to better reflect the workflow that animators are used to. For example, the speed is actually set to the Frames per Second of the animation in order to handle animation curves appropriately. This class returns 1.0f if the speed equals the original fps. There are some additions to the AnimationState you are used to, like the fps variable which returns how fast the animation is going relative to the frames you created in the editor. More...
 
class  BoneAnimation
 Handles runtime control of a SmoothMoves mesh object. The Animation object's functions are wrapped here for easy and safe access. The BoneAnimation class wraps a lot of Unity's Animation component functions and members. For more information, please see Unity's documentation on the Animation class. http://docs.unity3d.com/Documentation/ScriptReference/Animation.html More...
 
class  ColliderTriggerEvent
 This structure holds information stored when a collider trigger event occurs on a collider located on a SmoothMoves BoneAnimation bone. This is different than collision events in that it only occurs when a collider is set to trigger More...
 
class  CollisionEvent
 This structure holds information stored when a physics collision occurs with a collider on a SmoothMoves BoneAnimation bone. This is different than a collider trigger event in that it only occurs when a collider is not set to trigger More...
 
class  Sprite
 This is a simple class to show 4 vertex quads with dynamic batching among shared materials More...
 
class  UserTriggerEvent
 This class stores information when a user trigger is fired from a keyframe in a SmoothMoves BoneAnimation. This can be useful to control external events in your project's code, such as playing a sound, stopping or starting another animation, etc. More...
 

Functions

delegate void UserTriggerDelegate (UserTriggerEvent triggerEvent)
 Callback for when user triggers are fired from the animation More...
 
delegate void ColliderTriggerDelegate (ColliderTriggerEvent colliderEvent)
 Callback for when a collider encounters another collider with trigger set on More...
 
delegate void CollisionDelegate (CollisionEvent collisionEvent)
 Callback for when a collider encounters anoather collider without trigger set on More...
 

Function Documentation

delegate void SmoothMoves.ColliderTriggerDelegate ( ColliderTriggerEvent  colliderEvent)

Callback for when a collider encounters another collider with trigger set on

Parameters
colliderEventColliderTriggerEvent storing the collision event
delegate void SmoothMoves.CollisionDelegate ( CollisionEvent  collisionEvent)

Callback for when a collider encounters anoather collider without trigger set on

Parameters
collisionEventCollisionEvent storing the collision event
delegate void SmoothMoves.UserTriggerDelegate ( UserTriggerEvent  triggerEvent)

Callback for when user triggers are fired from the animation

Parameters
triggerEventUserTriggerEvent storing the information of the trigger