1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
|
#define COMMUNITY_LABS_SDK
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Resources;
using VRC.Core;
using System;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace VRCSDK2
{
#if UNITY_EDITOR
public class RuntimeWorldCreation : RuntimeAPICreation
{
public GameObject waitingPanel;
public GameObject blueprintPanel;
public GameObject errorPanel;
public Text titleText;
public InputField blueprintName;
public InputField blueprintDescription;
public InputField worldCapacity;
public RawImage bpImage;
public Image liveBpImage;
public Toggle shouldUpdateImageToggle;
public Toggle releasePublic;
public Toggle contentNsfw;
public Toggle contentSex;
public Toggle contentViolence;
public Toggle contentGore;
public Toggle contentOther;
public Toggle contentFeatured;
public Toggle contentSDKExample;
public Image showInWorldsMenuGroup;
public Toggle showInActiveWorlds;
public Toggle showInPopularWorlds;
public Toggle showInNewWorlds;
public InputField userTags;
public UnityEngine.UI.Button uploadButton;
public UnityEngine.UI.Button openCommunityLabsDocsButton;
public GameObject publishToCommunityLabsPanel;
private Toggle publishToCommLabsToggle;
private ApiWorld worldRecord;
private const int MAX_USER_TAGS_FOR_WORLD = 5;
private const int MAX_CHARACTERS_ALLOWED_IN_USER_TAG = 20;
List<String> customTags;
public static bool IsCurrentWorldInCommunityLabs = false;
public static bool IsCurrentWorldUploaded = false;
public static bool IsCurrentWorldPubliclyPublished = false;
public static bool HasExceededPublishLimit = false;
new void Start()
{
if (!Application.isEditor || !Application.isPlaying)
return;
base.Start();
IsCurrentWorldInCommunityLabs = false;
IsCurrentWorldUploaded = false;
IsCurrentWorldPubliclyPublished = false;
var desc = pipelineManager.GetComponent<VRC.SDKBase.VRC_SceneDescriptor>();
desc.PositionPortraitCamera(imageCapture.shotCamera.transform);
Application.runInBackground = true;
UnityEngine.XR.XRSettings.enabled = false;
uploadButton.onClick.AddListener(SetupUpload);
openCommunityLabsDocsButton.onClick.AddListener(OpenCommunityLabsDocumentation);
shouldUpdateImageToggle.onValueChanged.AddListener(ToggleUpdateImage);
releasePublic.gameObject.SetActive(false);
System.Action<string> onError = (err) => {
VRC.Core.Logger.LogError("Could not authenticate - " + err, DebugLevel.Always);
blueprintPanel.SetActive(false);
errorPanel.SetActive(true);
};
if (!ApiCredentials.Load())
onError("Not logged in");
else
APIUser.InitialFetchCurrentUser(
delegate (ApiModelContainer<APIUser> c)
{
UserLoggedInCallback(c.Model as APIUser);
},
delegate (ApiModelContainer<APIUser> c)
{
onError(c.Error);
}
);
#if !COMMUNITY_LABS_SDK
publishToCommunityLabsPanel.gameObject.SetActive(false);
#endif
}
void UserLoggedInCallback(APIUser user)
{
pipelineManager.user = user;
ApiWorld model = new ApiWorld();
model.id = pipelineManager.blueprintId;
model.Fetch(null,
(c) =>
{
VRC.Core.Logger.Log("<color=magenta>Updating an existing world.</color>", DebugLevel.All);
worldRecord = c.Model as ApiWorld;
pipelineManager.completedSDKPipeline = !string.IsNullOrEmpty(worldRecord.authorId);
GetUserUploadInformationAndSetupUI(model.id);
},
(c) =>
{
VRC.Core.Logger.Log("<color=magenta>World record not found, creating a new world.</color>", DebugLevel.All);
worldRecord = new ApiWorld { capacity = 16 };
pipelineManager.completedSDKPipeline = false;
worldRecord.id = pipelineManager.blueprintId;
GetUserUploadInformationAndSetupUI(model.id);
});
}
void CheckWorldStatus(string worldId, Action onCheckComplete)
{
// check if world has been previously uploaded, and if world is in community labs
ApiWorld.FetchUploadedWorlds(
delegate (IEnumerable<ApiWorld> worlds)
{
ApiWorld selectedWorld = worlds.FirstOrDefault(w => w.id == worldId);
if (null!=selectedWorld)
{
IsCurrentWorldInCommunityLabs = selectedWorld.IsCommunityLabsWorld;
IsCurrentWorldPubliclyPublished = selectedWorld.IsPublicPublishedWorld;
IsCurrentWorldUploaded = true;
}
if (onCheckComplete != null) onCheckComplete();
},
delegate (string err)
{
IsCurrentWorldInCommunityLabs = false;
IsCurrentWorldUploaded = false;
IsCurrentWorldPubliclyPublished = false;
Debug.Log("CheckWorldStatus error:" + err);
if (onCheckComplete != null) onCheckComplete();
}
);
}
void GetUserUploadInformationAndSetupUI(string worldId)
{
CheckWorldStatus(worldId, delegate()
{
bool hasSufficientTrustLevelToPublishToCommunityLabs = APIUser.CurrentUser.hasKnownTrustLevel;
APIUser.FetchPublishWorldsInformation(
(c) =>
{
try
{
Dictionary<string, object> publish = c as Dictionary<string, object>;
if (publish["canPublish"] is bool)
{
HasExceededPublishLimit = !(bool)(publish["canPublish"]);
}
else
HasExceededPublishLimit = true;
}
catch (Exception)
{
HasExceededPublishLimit = true;
}
if(Application.isPlaying)
{
SetupUI(hasSufficientTrustLevelToPublishToCommunityLabs, HasExceededPublishLimit);
}
},
(c) =>
{
if(Application.isPlaying)
{
SetupUI(hasSufficientTrustLevelToPublishToCommunityLabs, HasExceededPublishLimit);
}
}
);
}
);
}
void SetupUI(bool hasEnoughTrustToPublishToCL = false, bool hasExceededWeeklyPublishLimit = false)
{
#if COMMUNITY_LABS_SDK
// do not display community labs panel if updating an existing CL world or updating a public world
publishToCommunityLabsPanel.gameObject.SetActive(!IsCurrentWorldUploaded);
#endif
if (!ValidateAssetBundleBlueprintID(worldRecord.id))
{
blueprintPanel.SetActive(false);
errorPanel.SetActive(true);
OnSDKPipelineError("The asset bundle is out of date. Please rebuild the scene using 'New Build'.", "The blueprint ID in the scene does not match the id in the asset bundle.");
return;
}
contentFeatured.gameObject.SetActive(APIUser.CurrentUser.hasSuperPowers);
contentSDKExample.gameObject.SetActive(APIUser.CurrentUser.hasSuperPowers);
if (APIUser.Exists(pipelineManager.user))
{
waitingPanel.SetActive(false);
blueprintPanel.SetActive(true);
errorPanel.SetActive(false);
if (string.IsNullOrEmpty(worldRecord.authorId) || worldRecord.authorId == pipelineManager.user.id)
{
titleText.text = "Configure World";
blueprintName.text = worldRecord.name;
worldCapacity.text = worldRecord.capacity.ToString();
contentSex.isOn = worldRecord.tags.Contains("content_sex");
contentViolence.isOn = worldRecord.tags.Contains("content_violence");
contentGore.isOn = worldRecord.tags.Contains("content_gore");
contentOther.isOn = worldRecord.tags.Contains("content_other");
shouldUpdateImageToggle.interactable = isUpdate;
shouldUpdateImageToggle.isOn = !isUpdate;
liveBpImage.enabled = !isUpdate;
bpImage.enabled = isUpdate;
if (!APIUser.CurrentUser.hasSuperPowers)
{
releasePublic.gameObject.SetActive(false);
releasePublic.isOn = false;
releasePublic.interactable = false;
contentFeatured.isOn = contentSDKExample.isOn = false;
}
else
{
contentFeatured.isOn = worldRecord.tags.Contains("content_featured");
contentSDKExample.isOn = worldRecord.tags.Contains("content_sdk_example");
releasePublic.isOn = worldRecord.releaseStatus == "public";
releasePublic.gameObject.SetActive(true);
}
// "show in worlds menu"
if (APIUser.CurrentUser.hasSuperPowers)
{
showInWorldsMenuGroup.gameObject.SetActive(true);
showInActiveWorlds.isOn = !worldRecord.tags.Contains("admin_hide_active");
showInPopularWorlds.isOn = !worldRecord.tags.Contains("admin_hide_popular");
showInNewWorlds.isOn = !worldRecord.tags.Contains("admin_hide_new");
}
else
{
showInWorldsMenuGroup.gameObject.SetActive(false);
}
blueprintDescription.text = worldRecord.description;
userTags.text = "";
foreach (var tag in worldRecord.publicTags)
{
userTags.text = userTags.text + tag.Replace("author_tag_", "");
userTags.text = userTags.text + " ";
}
ImageDownloader.DownloadImage(worldRecord.imageUrl, 0, obj => bpImage.texture = obj, null);
}
else // user does not own world id associated with descriptor
{
Debug.LogErrorFormat("{0} is not an owner of {1}", worldRecord.authorId, pipelineManager.user.id);
blueprintPanel.SetActive(false);
errorPanel.SetActive(true);
}
}
else
{
waitingPanel.SetActive(true);
blueprintPanel.SetActive(false);
errorPanel.SetActive(false);
if (!APIUser.CurrentUser.hasSuperPowers)
{
releasePublic.gameObject.SetActive(false);
releasePublic.isOn = false;
releasePublic.interactable = false;
}
else
{
releasePublic.gameObject.SetActive(true);
releasePublic.isOn = false;
}
}
// set up publish to Community Labs checkbox and text
int worldsPublishedThisWeek = hasExceededWeeklyPublishLimit ? 1 : 0;
int maximumWorldsAllowedToPublishPerWeek = 1;
publishToCommLabsToggle = publishToCommunityLabsPanel.GetComponentInChildren<Toggle>();
if (null != publishToCommLabsToggle)
{
// disable publishing to CL checkbox if not enough trust or exceeded publish limit
publishToCommLabsToggle.interactable = hasEnoughTrustToPublishToCL && !hasExceededWeeklyPublishLimit;
Text publishText = publishToCommLabsToggle.gameObject.GetComponentInChildren<Text>();
if (null != publishText)
{
if (!hasEnoughTrustToPublishToCL)
{
publishText.text = "Not enough Trust to Publish to Community Labs";
}
else
{
if (hasExceededWeeklyPublishLimit)
{
publishText.text = "Publish limit for Community Labs Exceeded\n" + "(" + worldsPublishedThisWeek + "/" + maximumWorldsAllowedToPublishPerWeek + " Published this week)";
}
else
{
publishText.text = "Publish to Community Labs\n" + "(" + worldsPublishedThisWeek + "/" + maximumWorldsAllowedToPublishPerWeek + " Published this week)";
}
}
}
}
}
public void SetupUpload()
{
if (!ParseUserTags())
return;
publishingToCommunityLabs = (publishToCommLabsToggle != null) && (publishToCommLabsToggle.isActiveAndEnabled) && (publishToCommLabsToggle.isOn);
uploadTitle = "Preparing For Upload";
isUploading = true;
string abPath = UnityEditor.EditorPrefs.GetString("currentBuildingAssetBundlePath");
string unityPackagePath = UnityEditor.EditorPrefs.GetString("VRC_exportedUnityPackagePath");
UnityEditor.EditorPrefs.SetBool("VRCSDK2_scene_changed", true);
UnityEditor.EditorPrefs.SetInt("VRCSDK2_capacity", System.Convert.ToInt16(worldCapacity.text));
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_sex", contentSex.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_violence", contentViolence.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_gore", contentGore.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_other", contentOther.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_release_public", releasePublic.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_featured", contentFeatured.isOn);
UnityEditor.EditorPrefs.SetBool("VRCSDK2_content_sdk_example", contentSDKExample.isOn);
if (string.IsNullOrEmpty(worldRecord.id))
{
pipelineManager.AssignId();
worldRecord.id = pipelineManager.blueprintId;
}
string blueprintId = worldRecord.id;
int version = Mathf.Max(1, worldRecord.version + 1);
PrepareVRCPathForS3(abPath, blueprintId, version, ApiWorld.VERSION);
if (!string.IsNullOrEmpty(unityPackagePath) && System.IO.File.Exists(unityPackagePath))
{
VRC.Core.Logger.Log("Found unity package path. Preparing to upload!", DebugLevel.All);
PrepareUnityPackageForS3(unityPackagePath, blueprintId, version, ApiWorld.VERSION);
}
StartCoroutine(UploadNew());
}
void OnUploadedWorld()
{
const string devUrl = "https://dev-api.vrchat.cloud";
const string releaseUrl = "https://vrchat.com";
string uploadedWorldURL = (API.IsDevApi() ? devUrl : releaseUrl) + "/home/world/" + pipelineManager.blueprintId;
OnSDKPipelineComplete(uploadedWorldURL);
}
IEnumerator UploadNew()
{
bool caughtInvalidInput = false;
if (!ValidateNameInput(blueprintName))
caughtInvalidInput = true;
if (caughtInvalidInput)
yield break;
VRC.Core.Logger.Log("Starting upload", DebugLevel.Always);
// upload unity package
if (!string.IsNullOrEmpty(uploadUnityPackagePath))
{
yield return StartCoroutine(UploadFile(uploadUnityPackagePath, isUpdate ? worldRecord.unityPackageUrl : "", GetFriendlyWorldFileName("Unity package"), "Unity package",
delegate (string fileUrl)
{
cloudFrontUnityPackageUrl = fileUrl;
}
));
}
// upload asset bundle
if (!string.IsNullOrEmpty(uploadVrcPath))
{
yield return StartCoroutine(UploadFile(uploadVrcPath, isUpdate ? worldRecord.assetUrl : "", GetFriendlyWorldFileName("Asset bundle"), "Asset bundle",
delegate (string fileUrl)
{
cloudFrontAssetUrl = fileUrl;
}
));
}
if (isUpdate)
yield return StartCoroutine(UpdateBlueprint());
else
yield return StartCoroutine(CreateBlueprint());
if (publishingToCommunityLabs)
{
ApiWorld.PublishWorldToCommunityLabs(pipelineManager.blueprintId,
(world) => OnUploadedWorld(),
(err) =>
{
Debug.LogError("PublishWorldToCommunityLabs error:" + err);
OnUploadedWorld();
}
);
}
else
{
OnUploadedWorld();
}
}
private string GetFriendlyWorldFileName(string type)
{
return "World - " + blueprintName.text + " - " + type + " - " + Application.unityVersion + "_" + ApiWorld.VERSION.ApiVersion +
"_" + VRC.Tools.Platform + "_" + API.GetServerEnvironmentForApiUrl();
}
List<string> BuildTags()
{
var tags = new List<string>();
if (contentSex.isOn)
tags.Add("content_sex");
if (contentViolence.isOn)
tags.Add("content_violence");
if (contentGore.isOn)
tags.Add("content_gore");
if (contentOther.isOn)
tags.Add("content_other");
if (APIUser.CurrentUser.hasSuperPowers)
{
if (contentFeatured.isOn)
tags.Add("content_featured");
if (contentSDKExample.isOn)
tags.Add("content_sdk_example");
if(releasePublic.isOn)
tags.Add("admin_approved");
}
// "show in worlds menu"
if (APIUser.CurrentUser.hasSuperPowers)
{
if (!showInActiveWorlds.isOn)
tags.Add("admin_hide_active");
if (!showInPopularWorlds.isOn)
tags.Add("admin_hide_popular");
if (!showInNewWorlds.isOn)
tags.Add("admin_hide_new");
}
// add any author tags
foreach (var word in customTags)
{
// add all custom tags with "author_tag_" prefix
tags.Add("author_tag_" + word);
}
return tags;
}
bool ParseUserTags()
{
bool validTags = true;
customTags = new List<string>();
char[] delimiterChars = { ' ', ',', '.', ':', '\t', '\n', '"', '#' };
// split user tags into individual words
string[] words = userTags.text.Split(delimiterChars, StringSplitOptions.RemoveEmptyEntries);
foreach (var word in words)
{
customTags.Add(word.ToLower());
}
// check that number of tags is within tag limit
if (words.Count() > MAX_USER_TAGS_FOR_WORLD)
{
validTags = false;
UnityEditor.EditorUtility.DisplayDialog("Tags are limited to a maximum of " + MAX_USER_TAGS_FOR_WORLD + " per world.", "Please remove excess tags before uploading!", "OK");
}
else
{
// check that no tags exceed maximum tag length
int maximumTagLength = 0;
foreach (string item in words)
{
if (item.Length > maximumTagLength)
{
maximumTagLength = item.Length;
}
}
if (maximumTagLength > MAX_CHARACTERS_ALLOWED_IN_USER_TAG)
{
validTags = false;
UnityEditor.EditorUtility.DisplayDialog("Tags are limited to a maximum of " + MAX_CHARACTERS_ALLOWED_IN_USER_TAG + " characters per tag.", "One or more of your tags exceeds the maximum " + MAX_CHARACTERS_ALLOWED_IN_USER_TAG + " character limit.\n\n" + "Please shorten tags before uploading!", "OK");
}
else
{
// make sure tags are all alphanumeric
foreach (var word in words)
{
if (!word.All(char.IsLetterOrDigit))
{
validTags = false;
UnityEditor.EditorUtility.DisplayDialog("Tags should consist of alphanumeric characters only.", "Please remove any non-alphanumeric characters from tags before uploading!", "OK");
}
}
}
}
return validTags;
}
protected override IEnumerator CreateBlueprint()
{
yield return StartCoroutine(UpdateImage(isUpdate ? worldRecord.imageUrl : "", GetFriendlyWorldFileName("Image")));
SetUploadProgress("Saving Blueprint to user", "Almost finished!!", 0.0f);
ApiWorld world = new ApiWorld
{
id = worldRecord.id,
authorName = pipelineManager.user.displayName,
authorId = pipelineManager.user.id,
name = blueprintName.text,
imageUrl = cloudFrontImageUrl,
assetUrl = cloudFrontAssetUrl,
unityPackageUrl = cloudFrontUnityPackageUrl,
description = blueprintDescription.text,
tags = BuildTags(),
releaseStatus = (releasePublic.isOn) ? ("public") : ("private"),
capacity = System.Convert.ToInt16(worldCapacity.text),
occupants = 0,
shouldAddToAuthor = true
};
if (APIUser.CurrentUser.hasSuperPowers)
world.isCurated = contentFeatured.isOn || contentSDKExample.isOn;
else
world.isCurated = false;
bool doneUploading = false;
world.Post(
(c) =>
{
ApiWorld savedBP = (ApiWorld)c.Model;
pipelineManager.blueprintId = savedBP.id;
UnityEditor.EditorPrefs.SetString("blueprintID-" + pipelineManager.GetInstanceID().ToString(), savedBP.id);
VRC.Core.Logger.Log("Setting blueprintID on pipeline manager and editor prefs", DebugLevel.All);
doneUploading = true;
},
(c) => { doneUploading = true; Debug.LogError(c.Error); });
while (!doneUploading)
yield return null;
}
protected override IEnumerator UpdateBlueprint()
{
bool doneUploading = false;
worldRecord.name = blueprintName.text;
worldRecord.description = blueprintDescription.text;
worldRecord.capacity = System.Convert.ToInt16(worldCapacity.text);
worldRecord.assetUrl = cloudFrontAssetUrl;
worldRecord.tags = BuildTags();
worldRecord.releaseStatus = (releasePublic.isOn) ? ("public") : ("private");
worldRecord.unityPackageUrl = cloudFrontUnityPackageUrl;
worldRecord.isCurated = contentFeatured.isOn || contentSDKExample.isOn;
if (shouldUpdateImageToggle.isOn)
{
yield return StartCoroutine(UpdateImage(isUpdate ? worldRecord.imageUrl : "", GetFriendlyWorldFileName("Image")));
worldRecord.imageUrl = cloudFrontImageUrl;
}
SetUploadProgress("Saving Blueprint", "Almost finished!!", 0.0f);
worldRecord.Save((c) => doneUploading = true, (c) => { doneUploading = true; Debug.LogError(c.Error); });
while (!doneUploading)
yield return null;
}
void ToggleUpdateImage(bool isOn)
{
if (isOn)
{
bpImage.enabled = false;
liveBpImage.enabled = true;
}
else
{
bpImage.enabled = true;
liveBpImage.enabled = false;
ImageDownloader.DownloadImage(worldRecord.imageUrl, 0, obj => bpImage.texture = obj, null);
}
}
protected override void DisplayUpdateCompletedDialog(string contentUrl = null)
{
#if UNITY_EDITOR
#if COMMUNITY_LABS_SDK
if (null != contentUrl)
{
CheckWorldStatus(pipelineManager.blueprintId, delegate ()
{
ContentUploadedDialog window = (ContentUploadedDialog)EditorWindow.GetWindow(typeof(ContentUploadedDialog), true, "VRCSDK", true);
window.setContentURL(contentUrl);
window.Show();
// refresh UI based on uploaded world
GetUserUploadInformationAndSetupUI(pipelineManager.blueprintId);
}
);
}
else
#endif
base.DisplayUpdateCompletedDialog(contentUrl);
#endif
}
private void OpenCommunityLabsDocumentation()
{
Application.OpenURL(CommunityLabsConstants.COMMUNITY_LABS_DOCUMENTATION_URL);
}
void OnDestroy()
{
UnityEditor.EditorUtility.ClearProgressBar();
UnityEditor.EditorPrefs.DeleteKey("currentBuildingAssetBundlePath");
}
}
#endif
}
|