ãã®è¨äºã§ã®ãã¼ã¸ã§ã³ Unity 2020.3.25f1 ã¯ããã« ä»åã¯uGUIã®TextãTextMeshProã®ãã©ã³ãã«æå®ããæåãå«ã¾ãã¦ãããã ã¤ã¾ããã®æåã表示ã§ãããã¨ããäºããã§ãã¯ããæ¹æ³ã®ç´¹ä»ã§ãï¼ ãªããè¨äºä¸ã§ã¯ä»¥ä¸ã®ãã©ã³ãã使ã£ã¦ãã¾ãã Textã®å ´å Textã§ä½¿ã£ã¦ãããã©ã³ãã«æå®ããæåãå«ã¾ãã¦ãããããã§ãã¯ããã«ã¯ Fontã®HasCharacterã¨ããã¡ã½ããã使ãã¾ãã //kã¨ããæåãå«ã¾ãã¦ããããã§ã㯠char targetChar = 'k'; var hasCharacter = _text.font.HasCharacter(targetChar); Debug.Log($"ãã©ã³ã{_text.font.name}ã« {targetChar} ã¨ããæåãå«ã¾ãã¦ããã : {hasCharacter}"); ã
{{#tags}}- {{label}}
{{/tags}}