找回密碼
 注冊帳號

掃一掃,訪問微社區

animationstate.layer 層

2014-12-31 05:30| 發布者: 楊炎| 查看: 2208| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: animationstate.layer 層varlayer: intdescription描述the layer of the animation. when calculating the final blend weights, animations in higher layers will get their weights distributed first.動畫層。當 ...

animationstate.layer 層

varlayer: 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.

只有較高層沒有使用全部權值時,較低層才能接收混合權值。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

animation["walk"].layer = 1;

animation["run"].layer = 1;

}

}

// puts the walk and run animation in layer 1

// 置walk 和 run動畫到層1

animation["walk"].layer = 1;

animation["run"].layer = 1;

相關閱讀

文章點評
相關文章
女校游泳队彩金