기술 자료

Unity Engine

Unity Engine

GetPreferredHeight(string, TextGenerationSettings)

Given a string and settings, returns the preferred height for a container that would hold this text.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TextRenderingModule
public float GetPreferredHeight(string str, TextGenerationSettings settings)

Parameters

Generation text.

Settings for generation.

Returns

Type

Description

floatPreferred height.