예제 #1
0
    public void SetUpTimelineUVCoordinates()
    {
        timelineTrackMesh = trackPrefab.GetComponent <MeshFilter>().mesh;
        trackPrefabUVs    = timelineTrackMesh.uv;

        trackFaceUVs = new Vector2[4];

        trackFaceUVs[0] = trackPrefabUVs[trackUVindices[0]];
        trackFaceUVs[1] = trackPrefabUVs[trackUVindices[1]];
        trackFaceUVs[2] = trackPrefabUVs[trackUVindices[2]];
        trackFaceUVs[3] = trackPrefabUVs[trackUVindices[3]];
    }