ErrorPageView.cs 956 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using JetBrains.Annotations;
  3. using Unity.Cloud.Collaborate.UserInterface;
  4. using UnityEditor;
  5. using UnityEngine.UIElements;
  6. namespace Unity.Cloud.Collaborate.Components
  7. {
  8. internal class ErrorPageView : PageComponent
  9. {
  10. public const string UssClassName = "error-page-view";
  11. static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ErrorPageView)}.uxml";
  12. bool m_Visible;
  13. public ErrorPageView()
  14. {
  15. AddToClassList(UssClassName);
  16. AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
  17. }
  18. protected override void SetActive()
  19. {
  20. throw new NotImplementedException();
  21. }
  22. protected override void SetInactive()
  23. {
  24. throw new NotImplementedException();
  25. }
  26. [UsedImplicitly]
  27. public new class UxmlFactory : UxmlFactory<ErrorPageView> { }
  28. }
  29. }