Esempio n. 1
0
        /// <summary>
        /// まとめて反映する。1フレームに1回呼び出されることを想定
        /// </summary>
        /// <param name="expressionWeights"></param>
        public void SetValues(Dictionary <ExpressionKey, float> expressionWeights)
        {
            foreach (var(key, weight) in expressionWeights)
            {
                AccumulateValue(key, weight);
            }

            m_morphTargetBindingMerger.Apply();
            m_materialValueBindingMerger.Apply();
        }
Esempio n. 2
0
        /*
         * public void Clear()
         * {
         *  foreach (var kv in m_valueMap.ToArray())
         *  {
         *      SetValue(kv.Key, kv.Value, false);
         *  }
         *  Apply();
         * }
         */

        /// <summary>
        /// 蓄積した値を適用する
        /// </summary>
        public void Apply()
        {
            m_blendShapeBindingMerger.Apply();
            m_materialValueBindingMerger.Apply();
        }
Esempio n. 3
0
 /// <summary>
 /// 蓄積した値を適用する
 /// </summary>
 public void Apply()
 {
     m_morphTargetBindingMerger.Apply();
     m_materialValueBindingMerger.Apply();
 }