Esempio n. 1
0
 public static fTextGameObject CreateTextMeshGO(
     string sName, string sText,
     Colorf textColor, float fTextHeight,
     BoxPosition textOrigin = BoxPosition.Center,
     float fOffsetZ         = -0.1f)
 {
     return(TextMeshProUtil.HaveTextMeshPro ?
            TextMeshProUtil.CreateTextMeshProGO(sName, sText, textColor, fTextHeight, textOrigin, fOffsetZ)
         : CreateUnityTextMeshGO(sName, sText, textColor, fTextHeight, textOrigin, fOffsetZ));
 }
 public static fTextAreaGameObject CreateTextAreaGO(
     string sName, string sText,
     Colorf textColor, float fTextHeight,
     Vector2f areaDimensions,
     HorizontalAlignment alignH,
     BoxPosition textOrigin = BoxPosition.Center,
     float fOffsetZ         = -0.1f)
 {
     return(TextMeshProUtil.HaveTextMeshPro ?
            TextMeshProUtil.CreateTextAreaGO(sName, sText, textColor, fTextHeight, areaDimensions, alignH, textOrigin, fOffsetZ)
         : CreateUnityTextAreaGO(sName, sText, textColor, fTextHeight, areaDimensions, alignH, textOrigin, fOffsetZ));
 }