アラキタウン

黒歴史や生き恥を切り売り

2023-09-01から1ヶ月間の記事一覧

assetbundleからUnityVideoPlayerを再生しようとした際、OpenExtractor could not translate archive:/〇〇.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed. 

android環境でassetbundleからUnityVideoPlayerを再生しようとした際、以下のエラーが発生した。 AndroidVideoMedia::OpenExtractor could not translate archive:/〇〇.resource to local file. Make sure file exists, is on disk (not in memory) and not…

スベリヒユの佃煮

最近野食系のYouTuberさんにハマり、私もそこら辺の食べ物に挑戦してみたくなりました。 スベリヒユってどこにでも生えてますね。 道端のそこら辺に生えてる。 これらを少し頂いて調理に挑戦してみましょう。 洗って 適当に切る 醤油、みりん、砂糖、日本酒…

AssetBundleに含まれたテキストファイルを取得する。

AssetBundleに"test.txt"を含め、テキスト情報だけ取得したかったのですが、以下でできました。 AssetBundleCreateRequest acr = AssetBundle.LoadFromFileAsync("AssetBundleのパス");TextAsset text = acr.assetBundle.LoadAsset<TextAsset>("test.txt"); 以下の書き</textasset>…

AssetBundleのロードしようとしたらThe Object you want to instantiate is null.のエラー

AssetBundleのロードしようと、以下のように書いたら、 var LoadedAssetBundle = AssetBundle.LoadFromFile("ファイルパス名"));var prefab = LoadedAssetBundle.LoadAsset<GameObject>("オブジェクト名");Instantiate(prefab); 次のエラーが出た。 ArgumentException: T</gameobject>…