facebook twitter hatena line email

Unity/バージョンアップメモ/unity2017.2

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

unity2017.2でGUI Textは非推奨へ

以下メッセージが出たときの直し方

Component GUI Layer in Main Camera for Scene Assets/MainScene.unity is no longer available.

It will be removed after you edit this GameObject and save the Scene. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  1. Assets/MainScene.unityを開く
  2. Main Cameraのinspectorを開いて、適当にプロパティを有効/無効と適当に変更する
  3. Assets/MainScene.unityを保存する
  4. Assets/MainScene.unityをクリックして、上記ログが出なければ良い。

参考:https://tech.pjin.jp/blog/2018/01/31/unity_gui-text_deprecated/