以下の内容はhttps://baba-s.hatenablog.com/entry/2017/12/29/165500より取得しました。


【Unity】スクリプトからゲームオブジェクトにアイコンを設定できる「Unity3D-IconManager」紹介

はじめに

「Unity3D-IconManager」を Unity プロジェクトに導入することで
スクリプトからゲームオブジェクトにアイコンを設定できます

使用例

using UnityEngine;

public class Example : MonoBehaviour
{
    private void Awake()
    {
        gameObject.SetIcon( IconManager.LabelIcon.Blue );
    }
}

f:id:baba_s:20171229165209p:plain

関連記事




以上の内容はhttps://baba-s.hatenablog.com/entry/2017/12/29/165500より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14