Initial Commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69a95d9525bc5c14c8b3fb9cfe2af822
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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 UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Meta.Voice.Hub.Content
|
||||
{
|
||||
public class Sample : ScriptableObject
|
||||
{
|
||||
[Header("Content")]
|
||||
public string title;
|
||||
[TextArea]
|
||||
public string description;
|
||||
public Texture2D tileImage;
|
||||
public Texture2D screenshot;
|
||||
|
||||
[Header("Resource Paths")]
|
||||
public SceneAsset sceneReference;
|
||||
public string packageSampleName;
|
||||
public string sampleSetId;
|
||||
public float priority;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0e3df96a2504a0085121315689deb30
|
||||
timeCreated: 1683063947
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 Meta.Voice.Hub.Attributes;
|
||||
using Meta.Voice.Hub.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Meta.Voice.Hub.Content
|
||||
{
|
||||
[MetaHubPageScriptableObject]
|
||||
public class SamplesPage : ScriptableObject, IPageInfo
|
||||
{
|
||||
[SerializeField] private string _displayName;
|
||||
[SerializeField] private string _prefix;
|
||||
[SerializeField] private MetaHubContext _context;
|
||||
[SerializeField] private int _priority = 0;
|
||||
[SerializeField] private string _sampleSetId;
|
||||
|
||||
public string SampleSetId => _sampleSetId;
|
||||
public string Name => _displayName ?? name;
|
||||
public string Context => _context.Name;
|
||||
public int Priority => _priority;
|
||||
public string Prefix => _prefix;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c0e9b6410559489dbe69ca4c70a9ad70
|
||||
timeCreated: 1683066838
|
||||
Reference in New Issue
Block a user