Пример #1
0
    // Use this for initialization
    void Start()
    {
        skin        = guy.GetComponent <MeshRenderer>();
        gridScript  = GetComponent <HumanGrid>();
        gridScript2 = GetComponent <HumanGrid2>();
        // if (gridScript == null) gridScript = GetComponent<HumanGrid2>();

        modificatorModes = new List <string>();


        inputField.SetActive(false);

        mr = colorTest.GetComponent <MeshRenderer>();

        modificatorModes.Add("Y/Z translate");
        modificatorModes.Add("Y Curve");
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        float rdiv = 2;

        rw = Screen.width / rdiv;
        rh = Screen.height / rdiv;
        rx = (Screen.width - rw) / 2;
        ry = (Screen.height - rh) / 2;

        if (hairObject)
        {
            hairGenerator = hairObject.GetComponent <HairGenerator>();
        }


        faceTracing = GetComponent <SkinnedFaceTracing>();

        modes = new List <string>();
        modes.Add("Object");
        modes.Add("Edit");
        modes.Add("Interpolate");
        modes.Add("Bake");
        modes.Add("Skin");
        modes.Add("Hair");


        skin        = fbxGuy.GetComponent <SkinnedMeshRenderer>();
        gridScript2 = GetComponent <HumanGrid2>();

        modificatorModes = new List <string>();

        inputField.SetActive(false);
        faceNameField.SetActive(false);

        mr = colorTest.GetComponent <MeshRenderer>();

        modificatorModes.Add("Y/Z translate");
        modificatorModes.Add("Y Saw");
        modificatorModes.Add("Y Curve");
        modificatorModes.Add("Expand");

        //enableDisableSliders(editable);
        setHairSliderStatus(false);
    }