質問編集履歴

5

xcodeのログを追加しました

2018/02/16 04:10

投稿

Hirakin3
Hirakin3

スコア33

test CHANGED
File without changes
test CHANGED
@@ -60,8 +60,92 @@
60
60
 
61
61
 
62
62
 
63
+ xcodeでのエラー
64
+
65
+ 以下のエラーが繰り返し表示される
66
+
67
+
68
+
63
69
  ```
64
70
 
71
+ The referenced script on this Behaviour (Game Object 'UserProgress') is missing!
72
+
73
+
74
+
75
+ (Filename: Line: 1744)
76
+
77
+
78
+
79
+ Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
80
+
81
+ UnloadTime: 1.047708 ms
82
+
83
+ Font size and style overrides are only supported for dynamic fonts. Font 'font-export' is not dynamic.
84
+
85
+ UnityEngine.TextGenerator:ValidatedSettings(TextGenerationSettings)
86
+
87
+ UnityEngine.TextGenerator:PopulateAlways(String, TextGenerationSettings)
88
+
89
+ UnityEngine.TextGenerator:PopulateWithError(String, TextGenerationSettings)
90
+
91
+ UnityEngine.TextGenerator:PopulateWithErrors(String, TextGenerationSettings, GameObject)
92
+
93
+ UnityEngine.UI.Text:OnPopulateMesh(VertexHelper)
94
+
95
+ UnityEngine.UI.Graphic:DoMeshGeneration()
96
+
97
+ UnityEngine.UI.Graphic:Rebuild(CanvasUpdate)
98
+
99
+ UnityEngine.UI.CanvasUpdateRegistry:PerformUpdate()
100
+
101
+ IEZLinkedListItem`1:set_next(T)
102
+
103
+ IEZLinkedListItem`1:set_next(T)
104
+
105
+ IEZLinkedListItem`1:set_next(T)
106
+
107
+
108
+
109
+ (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
110
+
111
+
112
+
113
+
114
+
115
+ Unloading 19 unused Assets to reduce memory usage. Loaded Objects now: 2765.
116
+
117
+ Total: 4.221166 ms (FindLiveObjects: 0.421541 ms CreateObjectMapping: 0.063416 ms MarkObjects: 3.667250 ms DeleteObjects: 0.068541 ms)
118
+
119
+
120
+
121
+ Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
122
+
123
+
124
+
125
+ Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 2765.
126
+
127
+ Total: 3.815541 ms (FindLiveObjects: 0.186166 ms CreateObjectMapping: 0.062000 ms MarkObjects: 3.559666 ms DeleteObjects: 0.007166 ms)
128
+
129
+
130
+
131
+ starting www download: file:///var/containers/Bundle/Application/ID/appname/Data/Raw/AssetBundles/ios/theme/ファイル名.unity3d
132
+
133
+ 2018-02-16 12:46:42.5433+0900 プロダクトID[146:21775] NSURLConnection finished with error - code -1100
134
+
135
+ The referenced script on this Behaviour (Game Object 'DebugText') is missing!
136
+
137
+
138
+
139
+ (Filename: Line: 1744)
140
+
141
+ ```
142
+
143
+
144
+
145
+
146
+
147
+ ```
148
+
65
149
  using UnityEngine;
66
150
 
67
151
  using System.Collections;

4

コード部分を追加

2018/02/16 04:10

投稿

Hirakin3
Hirakin3

スコア33

test CHANGED
File without changes
test CHANGED
@@ -57,3 +57,209 @@
57
57
  - Unity 5.6.3p4
58
58
 
59
59
  - xcode 9.2
60
+
61
+
62
+
63
+ ```
64
+
65
+ using UnityEngine;
66
+
67
+ using System.Collections;
68
+
69
+
70
+
71
+ public class BaseAssetBundleLoader
72
+
73
+ {
74
+
75
+ public delegate void LoadSuccessCallback (AssetBundle bundle);
76
+
77
+ #if UNITY_ANDROID
78
+
79
+ const string PLATFORM_NAME = "android";
80
+
81
+
82
+
83
+
84
+
85
+ #elif UNITY_IPHONE
86
+
87
+ const string PLATFORM_NAME = "ios";
88
+
89
+
90
+
91
+
92
+
93
+ #elif UNITY_SWITCH
94
+
95
+ const string PLATFORM_NAME = "switch";
96
+
97
+ #endif
98
+
99
+
100
+
101
+ protected string _fileName = null;
102
+
103
+ protected string _type = null;
104
+
105
+ protected bool _isDone = false;
106
+
107
+ protected string _error = null;
108
+
109
+ protected float _progress = 0.0f;
110
+
111
+ protected LoadSuccessCallback _callback = null;
112
+
113
+
114
+
115
+ public bool IsDone { get { return _isDone; } }
116
+
117
+
118
+
119
+ public string Error { get { return _error; } }
120
+
121
+
122
+
123
+ public float Progress { get { return _progress; } }
124
+
125
+
126
+
127
+ public BaseAssetBundleLoader ()
128
+
129
+ {
130
+
131
+ }
132
+
133
+
134
+
135
+ public BaseAssetBundleLoader (string fileName, string type, int version)
136
+
137
+ {
138
+
139
+ _fileName = fileName;
140
+
141
+ _type = type;
142
+
143
+
144
+
145
+ string url = CreateUrl (_fileName, _type);
146
+
147
+ // Debug.Log( "Load And Cache -> Ver." + version + " " + url );
148
+
149
+ AssetBundleLoader.Load (url, version, OnLoadFinish, OnLoadProgress);
150
+
151
+ }
152
+
153
+
154
+
155
+ protected void Load (string fileName, string type, int version)
156
+
157
+ {
158
+
159
+ _fileName = fileName;
160
+
161
+ _type = type;
162
+
163
+
164
+
165
+ string url = CreateUrl (_fileName, _type);
166
+
167
+ AssetBundleLoader.Load (url, version, OnLoadFinish, OnLoadProgress);
168
+
169
+ }
170
+
171
+
172
+
173
+ protected void LoadFromLocal (string fileName, string type, int version)
174
+
175
+ {
176
+
177
+ _fileName = fileName;
178
+
179
+ _type = type;
180
+
181
+
182
+
183
+ string url = CreateLocalUrl (_fileName, _type);
184
+
185
+ AssetBundleLoader.Load (url, version, OnLoadFinish, OnLoadProgress);
186
+
187
+ }
188
+
189
+
190
+
191
+ static public bool IsCached (string fileName, string type, int version)
192
+
193
+ {
194
+
195
+ return Caching.IsVersionCached (CreateUrl (fileName, fileName), version);
196
+
197
+ }
198
+
199
+
200
+
201
+
202
+
203
+ void OnLoadFinish (WWW www)
204
+
205
+ {
206
+
207
+ _isDone = true;
208
+
209
+
210
+
211
+ if (www.error != null || !www.isDone) {
212
+
213
+ _error = www.error ?? "timeout";
214
+
215
+ Debug.LogError ("AssetBundle Load Error! -> " + www.url + "\n" + _error);
216
+
217
+ return;
218
+
219
+ }
220
+
221
+
222
+
223
+ if (_callback != null) {
224
+
225
+ _callback (www.assetBundle);
226
+
227
+ }
228
+
229
+ }
230
+
231
+
232
+
233
+ void OnLoadProgress (WWW www)
234
+
235
+ {
236
+
237
+ _progress = www.progress;
238
+
239
+ }
240
+
241
+
242
+
243
+ protected static string CreateLocalUrl (string fileName, string type)
244
+
245
+ {
246
+
247
+ return Helper.StreamingAssetsPath + "AssetBundles/" + PLATFORM_NAME + "/" + type + "/" + fileName + "." + PLATFORM_NAME + "." + type + ".unity3d";
248
+
249
+ }
250
+
251
+
252
+
253
+ protected static string CreateUrl (string fileName, string type)
254
+
255
+ {
256
+
257
+ //return CreateLocalUrl (fileName, type);
258
+
259
+ return TextIOUtil.AddSlash (AppManager.ServerPath) + "AssetBundles/" + PLATFORM_NAME + "/" + type + "/" + fileName + "." + PLATFORM_NAME + "." + type + ".unity3d";
260
+
261
+ }
262
+
263
+ }
264
+
265
+ ```

3

iOSのフォルダが確認できる画像の追加

2018/02/16 03:22

投稿

Hirakin3
Hirakin3

スコア33

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,8 @@
38
38
 
39
39
  ![イメージ説明](6dca381abb666f7385f0412743dd92ef.png)
40
40
 
41
+ ![イメージ説明](0b1c37b6fc7909efa7db304a76c52b14.png)
42
+
41
43
  - ファイルが存在していることは確認
42
44
 
43
45
  - 前日の作業までは起きていなかったので、Gitでその状態に戻した

2

2018/02/16 03:00

投稿

Hirakin3
Hirakin3

スコア33

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,15 @@
1
+ エラーなど出ていないためどこから手を付ければよいか困っています。
2
+
3
+
4
+
5
+ ぜひアドバイスいただければ幸いです。
6
+
7
+
8
+
9
+
10
+
11
+
12
+
1
13
  ### 前提・実現したいこと
2
14
 
3
15
  UnityのAssetsBundlesに配置したファイルをiOSで読み込みたい

1

キャプチャを追加

2018/02/16 01:45

投稿

Hirakin3
Hirakin3

スコア33

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,8 @@
24
24
 
25
25
  ### 試したこと
26
26
 
27
+ ![イメージ説明](6dca381abb666f7385f0412743dd92ef.png)
28
+
27
29
  - ファイルが存在していることは確認
28
30
 
29
31
  - 前日の作業までは起きていなかったので、Gitでその状態に戻した