Skip to content

Commit

Permalink
Merge pull request #855 from galacean/fix/text-component
Browse files Browse the repository at this point in the history
fix: update texture and material in TextComponentBase
  • Loading branch information
yiiqii authored Feb 7, 2025
2 parents 21e2e58 + f3af2ab commit f389af5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/effects-core/src/plugins/text/text-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ export class TextComponentBase {
);

this.renderer.texture = texture;
this.material.setTexture('_MainTex', texture);

this.isDirty = false;
}
Expand Down

0 comments on commit f389af5

Please sign in to comment.