void OnRenderObject()
        {
            if (expressionSet == null)
            {
                return;
            }
            if (skeleton == null)
            {
                return;
            }

            expressionSet.ResetBones(skeleton);
        }
Exemple #2
0
        void Update()
        {
            if (!initialized)
            {
                return;
            }

            // Need to reset bones here if we want Mecanim animation
            expressionSet.ResetBones(umaData.skeleton);

            if (gazeWeight > 0f)
            {
                if (umaData.animator != null)
                {
                    umaData.animator.SetLookAtPosition(gazeTarget);
                    umaData.animator.SetLookAtWeight(gazeWeight);
                }
            }
        }