WuhuIslandTesting/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/Collaborate/UserInterface/Bootstrap.cs
2025-01-07 02:06:59 +01:00

29 lines
701 B
C#

using UnityEditor;
using UnityEditor.Collaboration;
using UnityEngine;
using Unity.Cloud.Collaborate.UserInterface;
namespace CollabProxy.UI
{
[InitializeOnLoad]
public class Bootstrap
{
static Bootstrap()
{
var toolbar = new ToolbarButton { Width = 32f };
Toolbar.AddSubToolbar(toolbar);
toolbar.Update();
Collab.ShowHistoryWindow += () =>
{
CollaborateWindow.Init(CollaborateWindow.FocusTarget.History);
};
Collab.ShowChangesWindow += () =>
{
CollaborateWindow.Init(CollaborateWindow.FocusTarget.Changes);
};
}
}
}