Initialer Upload neues Unity-Projekt
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18d4a3bbdee7a6042bf0ea08fd5b999a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Meta.Voice.VSDKHub.Editor",
|
||||
"rootNamespace": "Meta.Voice.VSDKHub",
|
||||
"references": [
|
||||
"GUID:a4f6d7d3afe393a4c8034af2ef0f36a8",
|
||||
"GUID:8e054d88729a3fb4bbe539499f824363",
|
||||
"GUID:4724fe47a92397f4d8b6a95c3eb1029c",
|
||||
"GUID:4c3436cc699cb25459568e9fa95b7fd7"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb19304c87f76694ca2d792da1915efe
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
namespace Meta.Voice.VSDKHub
|
||||
{
|
||||
public class VoiceHubConstants
|
||||
{
|
||||
public const string CONTEXT_VOICE = "Voice SDK";
|
||||
|
||||
public static string PAGE_WIT_CONFIGS = "Wit Configurations";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e93d1390c1dc4578a1b8a87fd712839b
|
||||
timeCreated: 1680652764
|
||||
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.Remoting.Contexts;
|
||||
using System.Threading;
|
||||
using Meta.Voice.Hub;
|
||||
using Meta.Voice.Hub.Attributes;
|
||||
using Meta.Voice.Hub.Utilities;
|
||||
using Meta.Voice.TelemetryUtilities;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Meta.Voice.VSDKHub
|
||||
{
|
||||
[MetaHubContext(VoiceHubConstants.CONTEXT_VOICE)]
|
||||
public class VoiceSDKHubContext : MetaHubContext
|
||||
{
|
||||
}
|
||||
|
||||
public class VoiceSDKHub : MetaHub
|
||||
{
|
||||
public static readonly List<string> Contexts = new List<string>
|
||||
{
|
||||
VoiceHubConstants.CONTEXT_VOICE
|
||||
};
|
||||
|
||||
private List<string> _vsdkContexts;
|
||||
public override List<string> ContextFilter
|
||||
{
|
||||
get
|
||||
{
|
||||
if (null == _vsdkContexts || _vsdkContexts.Count == 0)
|
||||
{
|
||||
_vsdkContexts = Contexts.ToList();
|
||||
AddChildContexts(_vsdkContexts);
|
||||
}
|
||||
|
||||
return _vsdkContexts;
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetPageId(string pageName)
|
||||
{
|
||||
return VoiceHubConstants.CONTEXT_VOICE + "::" + pageName;
|
||||
}
|
||||
|
||||
[MenuItem("Oculus/Voice SDK/Voice Hub", false, 1)]
|
||||
private static void ShowWindow()
|
||||
{
|
||||
MetaHub.ShowWindow<VoiceSDKHub>(Contexts.ToArray());
|
||||
}
|
||||
|
||||
public static void ShowPage(string page)
|
||||
{
|
||||
Telemetry.LogInstantEvent(Telemetry.TelemetryEventId.OpenUi, new Dictionary<Telemetry.AnnotationKey, string>()
|
||||
{
|
||||
{Telemetry.AnnotationKey.PageId, page}
|
||||
});
|
||||
var window = MetaHub.ShowWindow<VoiceSDKHub>(Contexts.ToArray());
|
||||
window.SelectedPage = page;
|
||||
}
|
||||
|
||||
protected override void OnEnable()
|
||||
{
|
||||
_vsdkContexts = null;
|
||||
base.OnEnable();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 050c329a8c264b9bb8dd4042708376ed
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- logo: {fileID: 2800000, guid: 41df4ab8a05595e49b2f2d150e753bf7, type: 3}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user