以下の内容はhttps://baba-s.hatenablog.com/entry/2020/07/30/090000より取得しました。


【Unity】ログ出力を Scene ビューに表示できる「Scene view notification」紹介

はじめに

「Scene view notification」を Unity プロジェクトに導入することで
ログ出力を Scene ビューに表示できます

使用例

f:id:baba_s:20200718190328g:plain

使い方

using System.Collections;
using UnityEngine;

public class Example : MonoBehaviour
{
    private IEnumerator Start()
    {
        while ( true )
        {
            SceneViewNotification.Add( "ピカチュウ", SceneViewNotification.NotificationType.Info );

            yield return new WaitForSeconds( 0.5f );

            SceneViewNotification.Add( "カイリュー", SceneViewNotification.NotificationType.Warning );

            yield return new WaitForSeconds( 0.5f );

            SceneViewNotification.Add( "ヤドラン", SceneViewNotification.NotificationType.Error );

            yield return new WaitForSeconds( 0.5f );
        }
    }
}

SceneViewNotification.Add を使用します




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

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