Added Unity project files
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43abf37538cf87c47bc585a3b129b533
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2ea84963dc71d3d4b9d00a0bad947493
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,5 @@
|
||||
<UXML xmlns="UnityEngine.UIElements">
|
||||
<VisualElement name="notification-block" class="col mt-2 mb-2 w-100 align-items-center">
|
||||
<Label text="Your world was built successfully!" class="text-lg" />
|
||||
</VisualElement>
|
||||
</UXML>
|
||||
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 236433fe0b3378242a1b83d2199b9d27
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
@ -0,0 +1,3 @@
|
||||
Label {
|
||||
-unity-text-align: middle-center;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4675f35fd0b48947b0f1870568c7209
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace VRC.SDK3A.Editor.Elements
|
||||
{
|
||||
public class WorldBuildSuccessNotification: VisualElement
|
||||
{
|
||||
public WorldBuildSuccessNotification()
|
||||
{
|
||||
Resources.Load<VisualTreeAsset>("WorldBuildSuccessNotification").CloneTree(this);
|
||||
styleSheets.Add(Resources.Load<StyleSheet>("WorldBuildSuccessNotificationStyles"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8917c827433f542428ebdaf7cc31bf34
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 204d80e392324bdd9d3501521801054b
|
||||
timeCreated: 1687987392
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a36a593f0532114eab83a5da968c0c9
|
||||
timeCreated: 1687898224
|
||||
@ -0,0 +1,8 @@
|
||||
<UXML xmlns="UnityEngine.UIElements">
|
||||
<VisualElement name="notification-block" class="col mt-2 mb-2 w-100">
|
||||
<Label text="Your world failed to build or upload because of the following reason" />
|
||||
<Label name="notification-error-reason" class="mt-2 p-2 white-space-normal" />
|
||||
<Label text="We recommend taking a look at the console for more details" class="mt-2" />
|
||||
<Button class="mt-3 pl-4 pr-4 pt-2 pb-2 text-bold" text="Check Console for more details" name="open-unity-console" />
|
||||
</VisualElement>
|
||||
</UXML>
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ceb22344bc36ee24cb99cf412a7534d7
|
||||
timeCreated: 1687898224
|
||||
@ -0,0 +1,3 @@
|
||||
#notification-error-reason {
|
||||
background-color: rgba(255,255,255,0.2);
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7d711ed3e43b3b4cbdc2b976f450581
|
||||
timeCreated: 1687898224
|
||||
@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
using VRC.SDKBase;
|
||||
|
||||
namespace VRC.SDK3.Editor.Elements
|
||||
{
|
||||
public class WorldUploadErrorNotification: VisualElement
|
||||
{
|
||||
public WorldUploadErrorNotification(string error)
|
||||
{
|
||||
Resources.Load<VisualTreeAsset>("WorldUploadErrorNotification").CloneTree(this);
|
||||
styleSheets.Add(Resources.Load<StyleSheet>("WorldUploadErrorNotificationStyles"));
|
||||
|
||||
this.Q<Label>("notification-error-reason").text = error;
|
||||
|
||||
var openUnityConsole = this.Q<Button>("open-unity-console");
|
||||
openUnityConsole.clicked += VRC_EditorTools.OpenConsoleWindow;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 75cec36013175db44880a380b8f9b334
|
||||
timeCreated: 1687898224
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d4c631740417436d826d7897a41ade5b
|
||||
timeCreated: 1687987392
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5aa8a359743c55245afd9d6e2d2ab053
|
||||
timeCreated: 1687895445
|
||||
@ -0,0 +1,6 @@
|
||||
<UXML xmlns="UnityEngine.UIElements">
|
||||
<VisualElement name="notification-block" class="col mt-2 mb-2 w-100 align-items-center">
|
||||
<Label text="Your world was published to VRChat!" class="text-lg" />
|
||||
<Button class="mt-3 pl-4 pr-4 pt-2 pb-2 text-bold" text="See it on the VRChat Website" name="open-world-page-button" />
|
||||
</VisualElement>
|
||||
</UXML>
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0cb08821623b5c46ae5e6a0b1f3e2b1
|
||||
timeCreated: 1687895455
|
||||
@ -0,0 +1,3 @@
|
||||
Label {
|
||||
-unity-text-align: middle-center;
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 501977f645ca1b947b49df74d5162a8b
|
||||
timeCreated: 1687895466
|
||||
@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace VRC.SDK3.Editor.Elements
|
||||
{
|
||||
public class WorldUploadSuccessNotification: VisualElement
|
||||
{
|
||||
public WorldUploadSuccessNotification(string id)
|
||||
{
|
||||
Resources.Load<VisualTreeAsset>("WorldUploadSuccessNotification").CloneTree(this);
|
||||
styleSheets.Add(Resources.Load<StyleSheet>("WorldUploadSuccessNotificationStyles"));
|
||||
|
||||
var openWorldPageButton = this.Q<Button>("open-world-page-button");
|
||||
openWorldPageButton.clicked += () =>
|
||||
{
|
||||
Application.OpenURL($"https://vrchat.com/home/world/{id}");
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11e30a0715a549f4086eadde63e2d2de
|
||||
timeCreated: 1687895210
|
||||
Reference in New Issue
Block a user