*Simple code*
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
using UnityEngine;
public class TypingClass : MonoBehaviour {
// Showing UI text
public Text DialogText;
//Main Text
string originText;
//SubString Variable
string subText;
private void start(){
originText = "HI ~ WELCOME TO Development Unity Typing !";
startCorutine("TypingAction");
}
// Used Corutine
IEnumerator TypingAction(){
for(int i = 0; i< originText.Length; i++){
yield return new WaitForSeconds(0.1f);
subText += originText.Substring(0,i);
DialogText.text = subText;
subText= "";
}
}
}
[xcode 11] cocoapods import Admob & Firebase Analytics (0) | 2019.11.05 |
---|---|
[Xcode 11 ]Do not display simulator list , Generic IOS Device (0) | 2019.11.04 |
(Xcode 11) how to Set Unity Firebase Analytics [Used Cocoapods] (0) | 2019.11.04 |
How to Get Mobile Device Language in Unity (0) | 2019.10.24 |
Unity Editor Frame 속도가 너무 빠를경우 (0) | 2019.10.17 |
How to keep your music playing without interruption in Unity // 유니티에서 배경음악 끊임없이 나오는법 (So Easy Used Singleton) (0) | 2019.10.17 |