MetaHubPage.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. using Meta.Voice.Hub.Interfaces;
  9. using UnityEngine;
  10. namespace Meta.Voice.Hub
  11. {
  12. public class MetaHubPage : ScriptableObject, IMetaHubPage, IPageInfo
  13. {
  14. /// <summary>
  15. /// The context this page will fall under
  16. /// </summary>
  17. [SerializeField] private string _context;
  18. /// <summary>
  19. /// A prefix that will show up before the name of the page. This is a good place to insert page hierarchy etc.
  20. /// </summary>
  21. [SerializeField] private string _prefix;
  22. /// <summary>
  23. /// The sorting priority of the page
  24. /// </summary>
  25. [SerializeField] private int _priority;
  26. public virtual string Name => name;
  27. public virtual string Context => _context;
  28. public virtual int Priority => _priority;
  29. public virtual string Prefix => _context;
  30. public virtual void OnGUI()
  31. {
  32. }
  33. }
  34. }