ドキュメント

Unity Engine

Unity Engine

textureRebuilt

Set a function to be called when the dynamic font texture is rebuilt.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Event
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TextRenderingModule
public static event Action<Font> textureRebuilt

Remarks

This lets you set a delegate function to be called when the dynamic font texture is rebuilt. This will happen when new characters added to the font no longer fit into the texture. The font texture will then be rebuilt to fit all needed characters. If you use custom meshes to render characters from the font, you will need to use this callback to regenerate such meshes, as previous UV coordinates from the Font will no longer be valid. Additional Resources: Example at Font.RequestCharactersInTexture.