Manual     Reference     Scripting  
  
Scripting > Runtime Classes > AnimationState   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • AnimationState
  • All Members
  • Variables
  • blendMode
  • clip
  • enabled
  • layer
  • length
  • name
  • normalizedSpeed
  • normalizedTime
  • speed
  • time
  • weight
  • wrapMode
  • Functions
  • AddMixingTransform
  • RemoveMixingTransform

AnimationState.blendMode  

var blendMode : AnimationBlendMode

Description

Which blend mode should be used?

JavaScripts
// Set the leanLeft animation to blend additively

animation["leanLeft"].blendMode = AnimationBlendMode.Additive;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
animation["leanLeft"].blendMode = AnimationBlendMode.Additive;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
animation['leanLeft'].blendMode = AnimationBlendMode.Additive