AnimationState.layer

var layer : int

Description

The layer of the animation. When calculating the final blend weights, animations in higher layers will get their weights

distributed first. Lower layer animations only receive blend weights if the higher layers didn't use up all blend weights.

JavaScript
// Puts the walk and run animation in layer 1
animation["Walk"].layer = 1;
animation["Run"].layer = 1;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
animation["Walk"].layer = 1;
animation["Run"].layer = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
animation['Walk'].layer = 1
animation['Run'].layer = 1