프로젝트 버전 업그레이드 및 빌드 테스트
This commit is contained in:
@@ -71,7 +71,7 @@ namespace TMPro.Examples
|
||||
|
||||
while (true)
|
||||
{
|
||||
// Allocate new vertices
|
||||
// Allocate new vertices
|
||||
if (hasTextChanged)
|
||||
{
|
||||
// Get updated vertex data
|
||||
@@ -130,7 +130,7 @@ namespace TMPro.Examples
|
||||
|
||||
// Determine the random scale change for each character.
|
||||
float randomScale = Random.Range(1f, 1.5f);
|
||||
|
||||
|
||||
// Add modified scale and index
|
||||
modifiedCharScale.Add(randomScale);
|
||||
scaleSortingOrder.Add(modifiedCharScale.Count - 1);
|
||||
@@ -150,8 +150,8 @@ namespace TMPro.Examples
|
||||
destinationVertices[vertexIndex + 3] += offset;
|
||||
|
||||
// Restore Source UVS which have been modified by the sorting
|
||||
Vector2[] sourceUVs0 = cachedMeshInfoVertexData[materialIndex].uvs0;
|
||||
Vector2[] destinationUVs0 = textInfo.meshInfo[materialIndex].uvs0;
|
||||
Vector4[] sourceUVs0 = cachedMeshInfoVertexData[materialIndex].uvs0;
|
||||
Vector4[] destinationUVs0 = textInfo.meshInfo[materialIndex].uvs0;
|
||||
|
||||
destinationUVs0[vertexIndex + 0] = sourceUVs0[vertexIndex + 0];
|
||||
destinationUVs0[vertexIndex + 1] = sourceUVs0[vertexIndex + 1];
|
||||
@@ -178,7 +178,7 @@ namespace TMPro.Examples
|
||||
|
||||
// Updated modified vertex attributes
|
||||
textInfo.meshInfo[i].mesh.vertices = textInfo.meshInfo[i].vertices;
|
||||
textInfo.meshInfo[i].mesh.uv = textInfo.meshInfo[i].uvs0;
|
||||
textInfo.meshInfo[i].mesh.SetUVs(0, textInfo.meshInfo[i].uvs0);
|
||||
textInfo.meshInfo[i].mesh.colors32 = textInfo.meshInfo[i].colors32;
|
||||
|
||||
m_TextComponent.UpdateGeometry(textInfo.meshInfo[i].mesh, i);
|
||||
|
||||
Reference in New Issue
Block a user