Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationState.blendMode

public AnimationBlendMode blendMode;

Description

Which blend mode should be used?

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Start() { // Set the leanLeft animation to blend additively anim["leanLeft"].blendMode = AnimationBlendMode.Additive; } }