LoginSignup
0
0

More than 5 years have passed since last update.

unity > 時系列グラフ > Tag is not defined > とりあえずの対処 / gitignore修正

Last updated at Posted at 2016-08-02
動作環境
Unity 5.1.3-f1 on Windows 8.1 pro (64bit)

不具合 > graphScaleタグがない

http://qiita.com/7of9/items/33f3839bb64d4f367ae8
にて紹介した時系列グラフ。

MacOS X上で実装してgitにpushしたが、それをWindows上でcloneして実行すると以下のエラーが出るようだ。

UnityException: Tag: graphScale is not defined.

graphScaleというタグの情報が消えている。

とりあえずの対処

対処方法としてはgraphScaleタグを追加する

タグ関連
http://qiita.com/7of9/items/e3332484f556df5233d5

  • Hierarchy > Canvasを選択する
  • Inspector 上部の Tagのリストボックスにて Add Tag...を選択する
  • Tagsの項目にて+マークを押して、graphScaleを入力する

この状態でPlayをするとソフトが正常に動作する。

何か関連ファイルをignoreしてしまっているのかもしれない。

gitignore修正

(追記 2016/08/03)

gitignoreファイルが間違っていたので修正した。

関連 http://qiita.com/7of9/items/796f23cb392980fa6646

Tag情報は ProjectSettings/TagManager.asset として保存されているようだ。
関連 http://answers.unity3d.com/questions/523602/is-this-workaround-ok-its-for-fixing-lost-taglayer.html

Windows版Unity (v5.1.3f-1)でも動作確認した。この対処であっているようだ。
あとは30近くあるUnityプロジェクトすべてに同じ対処をしないといけない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0