Exemplo n.º 1
0
        void OnRenderObject()
        {
            if (expressionSet == null)
            {
                return;
            }
            if (skeleton == null)
            {
                return;
            }

            expressionSet.ResetBones(skeleton);
        }
Exemplo n.º 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);
                }
            }
        }