Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PlayMode

Used by Animation.Play function.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public enum PlayMode

Fields

Value

Description

StopAllWill stop all animations that were started with this component before playing.
StopSameLayerWill stop all animations that were started in the same layer. This is the default when playing animations.