Unity Test : VRC World TEST load error
could not load world because it didn't exist
--------
PipelineManager[] pms = (PipelineManager[])VRC.Tools.FindSceneObjectsOfTypeAll<PipelineManager>();
if (pms.Length == 1)
{
if (!string.IsNullOrEmpty(pms[0].blueprintId))
{
if (scene.apiWorld == null)
{
ApiWorld world = API.FromCacheOrNew<ApiWorld>(pms[0].blueprintId);
world.Fetch(null, null,
(c) => scene.apiWorld = c.Model as ApiWorld,
(c) =>
{
if (c.Code == 404)
{
Debug.LogErrorFormat("Could not load world {0} because it didn't exist.", pms[0].blueprintId);
ApiCache.Invalidate<ApiWorld>(pms[0].blueprintId);
}
else
Debug.LogErrorFormat("Could not load world {0} because {1}", pms[0].blueprintId, c.Error);
});
scene.apiWorld = world;
}
}
--
<OnGUISceneSettings>c__AnonStorey7:<>m__1(ApiContainer) (at Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/VRCSdkControlPanelBuilder.cs:862)
VRC.Core.APIResponseHandler:RetryRequest(Int32, HTTPRequest, HTTPResponse, ApiContainer, Int32, Boolean, String)
VRC.Core.APIResponseHandler:HandleReponse(Int32, HTTPRequest, HTTPResponse, ApiContainer, Int32, Boolean)
VRC.Core.<SendRequestInternal>c__AnonStoreyE:<>m__13(HTTPRequest, HTTPResponse)
VRC.Core.BestHTTP.HTTPRequest:CallCallback()
VRC.Core.BestHTTP.ConnectionBase:HandleCallback()
VRC.Core.BestHTTP.HTTPManager:OnUpdate()
VRC.Core.BestHTTP.HTTPUpdateDelegator:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
PipelineManager : blueprintId (???)Specify
2017 4. 28 f1
UnityEngine.Debug:LogErrorFormat(String, Object[]
--------
PipelineManager[] pms = (PipelineManager[])VRC.Tools.FindSceneObjectsOfTypeAll<PipelineManager>();
if (pms.Length == 1)
{
if (!string.IsNullOrEmpty(pms[0].blueprintId))
{
if (scene.apiWorld == null)
{
ApiWorld world = API.FromCacheOrNew<ApiWorld>(pms[0].blueprintId);
world.Fetch(null, null,
(c) => scene.apiWorld = c.Model as ApiWorld,
(c) =>
{
if (c.Code == 404)
{
Debug.LogErrorFormat("Could not load world {0} because it didn't exist.", pms[0].blueprintId);
ApiCache.Invalidate<ApiWorld>(pms[0].blueprintId);
}
else
Debug.LogErrorFormat("Could not load world {0} because {1}", pms[0].blueprintId, c.Error);
});
scene.apiWorld = world;
}
}
--
<OnGUISceneSettings>c__AnonStorey7:<>m__1(ApiContainer) (at Assets/VRCSDK/Dependencies/VRChat/Editor/ControlPanel/VRCSdkControlPanelBuilder.cs:862)
VRC.Core.APIResponseHandler:RetryRequest(Int32, HTTPRequest, HTTPResponse, ApiContainer, Int32, Boolean, String)
VRC.Core.APIResponseHandler:HandleReponse(Int32, HTTPRequest, HTTPResponse, ApiContainer, Int32, Boolean)
VRC.Core.<SendRequestInternal>c__AnonStoreyE:<>m__13(HTTPRequest, HTTPResponse)
VRC.Core.BestHTTP.HTTPRequest:CallCallback()
VRC.Core.BestHTTP.ConnectionBase:HandleCallback()
VRC.Core.BestHTTP.HTTPManager:OnUpdate()
VRC.Core.BestHTTP.HTTPUpdateDelegator:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
PipelineManager : blueprintId (???)Specify
2017 4. 28 f1
댓글
댓글 쓰기