Debug.Log()

作者:追风剑情 发布于:2017-7-25 20:47 分类:Unity3d


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DebugTest : MonoBehaviour {

	void Start () 
    {
        //b: 加粗, i:倾斜, size:大小, color:颜色(#ffff00)
        string log = string.Format(
            "<b>{0}</b> <i>{1}</i> <size=30>{2}</size> <color=blue>{3}</color><b><i><size=20><color=yellow>{4}</color></size></i></b>", 
            "jia chu","qing xie","da xiao","yan she", "qian tao zhi ti!");

        Debug.Log(log);
	}
}


运行测试

1111111.png

标签: Unity3d

Powered by emlog  蜀ICP备18021003号   sitemap

川公网安备 51019002001593号