Search Unity

Blendshape vertice

Discussion in 'Animation' started by kilik128, Apr 16, 2014.

  1. kilik128

    kilik128

    Joined:
    Jul 15, 2013
    Posts:
    843
    hi i got script for pose to vertice my eye on player
    it's working but when i add blendshape deform the result is not updated
    any idea how i can fix this ? please thank's


    if (objskin != null ){

    SkinnedMeshRenderer skin= objskin.GetComponent<SkinnedMeshRenderer>();
    Mesh mesh= skin.sharedMesh;

    count =mesh.vertexCount;
    //objlink.transform.position = mesh.vertices[invertex]+transform.localPosition;
    objlink.transform.position = objskin.transform.TransformPoint (mesh.vertices[invertex]);//+transform.localPosition;
    Debug.Log ( mesh.vertices[invertex]);

    }