Ejemplo n.º 1
0
    void MakeCameraStandin()
    {
        // To draw a picture of the camera to visulaize the setup in the scene,
        // I need to create the mesh for it.
        Mesh wireMesh = new Mesh();

        bb.MakeCameraIconHexMesh(translations, ref wireMesh);
        wireMesh.RecalculateNormals();
        //	DestroyImmediate (cameraStandin.GetComponent<MeshFilter> ().sharedMesh); //.Clear(); // seems not to update the standin for the fly cam.
        //	cameraStandin.GetComponent<MeshFilter> ().sharedMesh = wireMesh;
    }