http://wiki.nonip.net/index.php?title=Unity/AssetBundle/AssetBundle%E3%82%92%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%8B%E3%82%89%E8%AA%AD%E8%BE%BC&feed=atom&action=history
Unity/AssetBundle/AssetBundleをサーバーから読込 - 変更履歴
2024-03-29T09:54:32Z
このウィキのこのページに関する変更履歴
MediaWiki 1.24.2
http://wiki.nonip.net/index.php?title=Unity/AssetBundle/AssetBundle%E3%82%92%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%8B%E3%82%89%E8%AA%AD%E8%BE%BC&diff=13456&oldid=prev
2021年8月5日 (木) 08:12にAdminによる
2021-08-05T08:12:47Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">←前の版</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">2021年8月5日 (木) 08:12時点における版</td>
</tr><tr><td colspan="2" class="diff-lineno">行41:</td>
<td colspan="2" class="diff-lineno">行41:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>公式マニュアル:https://docs.unity3d.com/ja/current/ScriptReference/Networking.UnityWebRequestAssetBundle.GetAssetBundle.html</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>公式マニュアル:https://docs.unity3d.com/ja/current/ScriptReference/Networking.UnityWebRequestAssetBundle.GetAssetBundle.html</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">==既にロード済みのエラーが出る場合==</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">以下エラーが出るとき</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> can't be loaded because another AssetBundle with the same files is already loaded.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">既に同じファイルが、別ロジックからロードされてないか確認。</ins></div></td></tr>
</table>
Admin
http://wiki.nonip.net/index.php?title=Unity/AssetBundle/AssetBundle%E3%82%92%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC%E3%81%8B%E3%82%89%E8%AA%AD%E8%BE%BC&diff=13455&oldid=prev
Admin: ページの作成:「==サンプル== #AssetBundlesを生成する #例として、user.csvのアセットバンドルファイル(userとuser.manifest)を上げる。 #以下サンプルを...」
2021-08-05T08:00:10Z
<p>ページの作成:「==サンプル== #AssetBundlesを生成する #例として、user.csvのアセットバンドルファイル(userとuser.manifest)を上げる。 #以下サンプルを...」</p>
<p><b>新規ページ</b></p><div>==サンプル==<br />
#AssetBundlesを生成する<br />
#例として、user.csvのアセットバンドルファイル(userとuser.manifest)を上げる。<br />
#以下サンプルを実行。<br />
<br />
<pre><br />
using UnityEngine;<br />
using UnityEngine.Networking;<br />
using System.Collections;<br />
public class SampleScene : MonoBehaviour<br />
{<br />
public static TextAsset csv;<br />
void Start()<br />
{<br />
StartCoroutine(GetAssetBundle());<br />
}<br />
IEnumerator GetAssetBundle()<br />
{<br />
string url = "ttp://www.my-server.com/";<br />
string assetGroupName = "usergroup";<br />
using (UnityWebRequest uwr = UnityWebRequestAssetBundle.GetAssetBundle(url + assetGroupName))<br />
{<br />
yield return uwr.SendWebRequest();<br />
if (uwr.isNetworkError || uwr.isHttpError)<br />
{<br />
Debug.Log(uwr.error);<br />
}<br />
else<br />
{<br />
AssetBundle assetBundle = DownloadHandlerAssetBundle.GetContent(uwr);<br />
string assetFileName = "user";<br />
csv = assetBundle.LoadAsset<TextAsset>(assetFileName);<br />
Debug.Log("csv.text=" + csv.text);<br />
}<br />
}<br />
}<br />
}<br />
</pre><br />
<br />
csv.textのところで、ファイル内のデータが、改行を含んで表示された。<br />
<br />
公式マニュアル:https://docs.unity3d.com/ja/current/ScriptReference/Networking.UnityWebRequestAssetBundle.GetAssetBundle.html</div>
Admin