前提
Unityで以下のサイトを参考にTextMeshProAnimatorを導入しました。
【Unity】TextMesh Proをアニメーションさせる~デザイナー編~
実現したいこと
回転、拡大等の基本的な動きは実現できましたが、
Position Noise以降のノイズパターン(ノイズテクスチャ)を使った動きはエラーがでて、実行されません。
なお、manifest.jsonファイル書き換えでのTextMeshProAnimatorの導入ができなかったため、Download ZIPでの導入です。
ノイズパターンはGitから直接ダウンロードしています。
発生している問題・エラーメッセージ
コンソールに以下の通り表示されます。
エラーメッセージ UnityException: Texture 'XYZNoizeTexture' is not readable, the texture memory can not be accessed from scripts. You can make the texture readable in the Texture Import Settings. UnityEngine.Texture2D.GetPixel (System.Int32 x, System.Int32 y) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0) TextMeshProGeometryAnimator.UpdateAnimation () (at Assets/TextMeshProAnimator/Scripts/Runtime/TextMeshProGeometryAnimator.cs:481) TextMeshProGeometryAnimator.Refresh (System.Boolean useProgress) (at Assets/TextMeshProAnimator/Scripts/Runtime/TextMeshProGeometryAnimator.cs:245) TextMeshProGeometryAnimator.OnChangedText (UnityEngine.Object obj) (at Assets/TextMeshProAnimator/Scripts/Runtime/TextMeshProGeometryAnimator.cs:191) TMPro.FastAction`1[A].Call (A a) (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Runtime/FastAction.cs:73) TMPro.TMPro_EventManager.ON_TEXT_CHANGED (UnityEngine.Object obj) (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Runtime/TMPro_EventManager.cs:77) TMPro.TextMeshProUGUI.GenerateTextMesh () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Runtime/TMPro_UGUI_Private.cs:4485) TMPro.TextMeshProUGUI.OnPreRenderCanvas () (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Runtime/TMPro_UGUI_Private.cs:1670) TMPro.TextMeshProUGUI.ForceMeshUpdate (System.Boolean ignoreActiveState, System.Boolean forceTextReparsing) (at Library/PackageCache/com.unity.textmeshpro@3.0.6/Scripts/Runtime/TextMeshProUGUI.cs:547) TextMeshProGeometryAnimator.OnEnable () (at Assets/TextMeshProAnimator/Scripts/Runtime/TextMeshProGeometryAnimator.cs:139) UnityEngine.GameObject:SetActive(Boolean) ObjectActive:OnGUI(Int32, Rect) (at Assets/Editor/ObjectActive.cs:26) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
試したこと
画像のテクスチャタイプをデフォルトなど、数パターン試しましたが、エラーになりました。
補足情報(FW/ツールのバージョンなど)
Unity2020.3.32f1を使用しています。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/11/03 01:12