Initial project commit

This commit is contained in:
2026-01-08 16:50:20 +00:00
commit f0c5a8b267
29596 changed files with 4861782 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ceb46eb2d5b64017b74f9fb0e50fdf1e
timeCreated: 1764677430

View File

@@ -0,0 +1,12 @@
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal class ContainerWindow
{
internal object InternalObject { get; }
internal ContainerWindow(object containerWindow)
{
InternalObject = containerWindow;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0bb6b8b3dfca43538b7ef0bff1d13780
timeCreated: 1764683972

View File

@@ -0,0 +1,39 @@
using System.Reflection;
using UnityEngine;
using UnityEngine.Internal;
using UnityEditorGUI = UnityEditor.EditorGUI;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class EditorGUI
{
// Delegate that matches the signature of ScrollableTextAreaInternal
internal delegate string ScrollableTextAreaInternalDelegate(
Rect position,
string text,
ref Vector2 scrollPosition,
GUIStyle style);
// This will be set by Unity.Cloud.Collaborate assembly
internal static ScrollableTextAreaInternalDelegate ScrollableTextAreaInternal { get; set; }
internal static TextEditor activeEditor
{
get
{
FieldInfo activeEditorField = typeof(UnityEditorGUI).GetField(
"activeEditor",
BindingFlags.Static | BindingFlags.NonPublic);
return activeEditorField?.GetValue(null) as TextEditor;
}
}
internal static void LabelField(
Rect position, string label, [DefaultValue("EditorStyles.label")] GUIStyle style)
{
UnityEditorGUI.LabelField(position, label, style);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 66b140cd6be9479ab524a58f460a694d
timeCreated: 1763116828

View File

@@ -0,0 +1,9 @@
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class EditorUtility
{
internal delegate void Internal_UpdateAllMenusDelegate();
internal static Internal_UpdateAllMenusDelegate Internal_UpdateAllMenus { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 399b9baa7c7d47729fb3930f4d588602
timeCreated: 1764681468

View File

@@ -0,0 +1,23 @@
using UnityEditorWindow = UnityEditor.EditorWindow;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class UnityEditorExtensions
{
internal static HostView m_Parent(this UnityEditorWindow editorWindow)
{
return m_ParentInternal(editorWindow);
}
internal static void ShowWithMode(this UnityEditorWindow editorWindow, int mode)
{
ShowWithModeInternal(editorWindow, mode);
}
internal delegate HostView m_ParentDelegate(UnityEditorWindow editorWindow);
internal static m_ParentDelegate m_ParentInternal { get; set; }
internal delegate void ShowWithModeDelegate(UnityEditorWindow editorWindow, int mode);
internal static ShowWithModeDelegate ShowWithModeInternal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8cb6c3d9c38f4b67b0ae9dc6ebdfecff
timeCreated: 1764677585

View File

@@ -0,0 +1,8 @@
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal class EditorWindow
{
internal delegate void Internal_MakeModalDelegate(ContainerWindow window);
internal static Internal_MakeModalDelegate Internal_MakeModal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 68257d0bed044311b8c3688c35a4497b
timeCreated: 1764684466

View File

@@ -0,0 +1,30 @@
using UnityEngine;
using UnityGenericMenu = UnityEditor.GenericMenu;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal class GenericMenu
{
internal class MenuItem
{
internal object InternalObject;
internal GUIContent content => GetContent(this);
internal UnityGenericMenu.MenuFunction func => GetFunc(this);
internal MenuItem(object menuItem)
{
InternalObject = menuItem;
}
internal delegate GUIContent GetContentDelegate(MenuItem menuItem);
internal static GetContentDelegate GetContent { get; set; }
internal delegate UnityGenericMenu.MenuFunction GetFuncDelegate(MenuItem menuItem);
internal static GetFuncDelegate GetFunc { get; set; }
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 821bfc9e29fe4f879430e080c75925f9
timeCreated: 1764750844

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using UnityGenericMenu = UnityEditor.GenericMenu;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class GenericMenuExtensions
{
internal static List<GenericMenu.MenuItem> menuItems(this UnityGenericMenu genericMenu)
{
return GetMenuItems(genericMenu);
}
internal delegate List<GenericMenu.MenuItem> GetMenuItemsDelegate(UnityGenericMenu genericMenu);
internal static GetMenuItemsDelegate GetMenuItems { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 1181856e3fc64a12b4e5d404d501e989
timeCreated: 1764750296

View File

@@ -0,0 +1,35 @@
using UnityEditorWindow = UnityEditor.EditorWindow;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
class HostView
{
internal object InternalObject { get; }
internal UnityEditorWindow m_ActualView => GetActualViewInternal(this);
internal ContainerWindow window => GetWindow(this);
internal HostView(object hostView)
{
InternalObject = hostView;
}
internal delegate UnityEditorWindow GetActualViewDelegate(HostView hostView);
internal static GetActualViewDelegate GetActualViewInternal { get; set; }
internal delegate ContainerWindow GetWindowDelegate(HostView hostView);
internal static GetWindowDelegate GetWindow { get; set; }
}
internal class DockArea : HostView
{
internal DockArea(object hostView) : base(hostView) { }
internal void AddTab(UnityEditorWindow pane, bool sendPaneEvents = true)
{
AddTabInternal(this, pane, sendPaneEvents);
}
internal delegate void AddTabDelegate(DockArea dockArea, UnityEditorWindow pane, bool sendPaneEvents = true);
internal static AddTabDelegate AddTabInternal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 73186521cb8e4de3a13721da02015040
timeCreated: 1764677539

View File

@@ -0,0 +1,28 @@
using System;
using UnityMenu = UnityEditor.Menu;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class Menu
{
internal delegate void AddMenuItemDelegate(
string name,
string shortcut,
bool @checked,
int priority,
Action execute,
Func<bool> validate);
internal static AddMenuItemDelegate AddMenuItem { get; set; }
internal delegate void RemoveMenuItemDelegate(string name);
internal static RemoveMenuItemDelegate RemoveMenuItem { get; set; }
internal static bool GetEnabled(string menuPath)
{
return UnityMenu.GetEnabled(menuPath);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 25c3ae07f84c4ba3954e07becf193460
timeCreated: 1764680906

View File

@@ -0,0 +1,23 @@
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal struct SavedGUIState
{
internal object InternalObject { get; }
internal SavedGUIState(object savedGuiState)
{
InternalObject = savedGuiState;
}
internal void ApplyAndForget()
{
ApplyAndForgetInternal(this);
}
internal delegate SavedGUIState CreateDelegate();
internal static CreateDelegate Create { get; set; }
internal delegate void ApplyAndForgetDelegate(SavedGUIState savedGUIState);
internal static ApplyAndForgetDelegate ApplyAndForgetInternal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6f5a38a89d734da9bcdfeffe252daed4
timeCreated: 1764684957

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 58ea190e1cd94c2ca3a4b39e76639f7c
timeCreated: 1764749423

View File

@@ -0,0 +1,29 @@
using System.Reflection;
using UnityEditor.SceneManagement;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor.SceneManagement
{
internal static class PrefabStageExtensions
{
internal static bool Save(this PrefabStage prefabStage)
{
return SaveInternal(prefabStage);
}
internal static void AutoSave(this PrefabStage prefabStage)
{
MethodInfo autoSavePrefabMethod = typeof(PrefabStage).GetMethod(
"AutoSave", BindingFlags.NonPublic | BindingFlags.Instance);
if (autoSavePrefabMethod == null)
return;
autoSavePrefabMethod.Invoke(prefabStage, null);
}
internal delegate bool SaveDelegate(PrefabStage prefabStage);
internal static SaveDelegate SaveInternal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d70feb2c54194e908a40806cbe2fa27f
timeCreated: 1764749430

View File

@@ -0,0 +1,38 @@
using UnityEditor;
using UnityEditorWindow = UnityEditor.EditorWindow;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal class SettingsWindow
{
internal object InternalObject { get; }
internal SettingsWindow(object settingsWindow)
{
InternalObject = settingsWindow;
}
internal static SettingsWindow Show(SettingsScope scopes, string settingsPath)
{
return ShowInternal(scopes, settingsPath);
}
internal SettingsProvider GetCurrentProvider()
{
return GetCurrentProviderInternal(this);
}
internal void Close()
{
((UnityEditorWindow)InternalObject).Close();
}
internal delegate SettingsWindow ShowDelegate(SettingsScope scopes, string settingsPath);
internal static ShowDelegate ShowInternal { get; set; }
internal delegate SettingsProvider GetCurrentProviderDelegate(SettingsWindow settingsWindow);
internal static GetCurrentProviderDelegate GetCurrentProviderInternal { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c4f779ee37894d99adede8127ac9961d
timeCreated: 1764677491

View File

@@ -0,0 +1,27 @@
using UnityEngine;
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class SplitterGUILayout
{
internal delegate void BeginHorizontalSplitDelegate(
SplitterState splitterState,
params GUILayoutOption[] guiLayoutOptions);
internal static BeginHorizontalSplitDelegate BeginHorizontalSplit { get; set; }
internal delegate void EndHorizontalSplitDelegate();
internal static EndHorizontalSplitDelegate EndHorizontalSplit { get; set; }
internal delegate void BeginVerticalSplitDelegate(
SplitterState splitterState,
params GUILayoutOption[] guiLayoutOptions);
internal static BeginVerticalSplitDelegate BeginVerticalSplit { get; set; }
internal delegate void EndVerticalSplitDelegate();
internal static EndVerticalSplitDelegate EndVerticalSplit { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: cb7cc48c799b4b86937fe77898c0c8c4
timeCreated: 1764690620

View File

@@ -0,0 +1,20 @@
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal class SplitterState
{
internal object InternalObject;
internal float[] relativeSizes => GetRelativeSizes(this);
internal SplitterState(float[] relativeSizes, int[] minSizes, int[] maxSizes)
{
InternalObject = Constructor(relativeSizes, minSizes, maxSizes);
}
internal delegate object ConstructorDelegate(float[] relativeSizes, int[] minSizes, int[] maxSizes);
internal static ConstructorDelegate Constructor { get; set; }
internal delegate float[] GetRelativeSizesDelegate(SplitterState splitterState);
internal static GetRelativeSizesDelegate GetRelativeSizes { get; set; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 489341d280ec4f84966df11c8c6804d4
timeCreated: 1764689961

View File

@@ -0,0 +1,26 @@
using System.Reflection;
using UnityEditor.IMGUI.Controls;
#if UNITY_6000_2_OR_NEWER
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
#endif
namespace Unity.PlasticSCM.Editor.UnityInternals.UnityEditor
{
internal static class TreeViewExtensions
{
internal static void RaiseContextMenu(this TreeView treeView)
{
MethodInfo InternalContextClickedItem = treeView.GetType().GetMethod(
"ContextClickedItem",
BindingFlags.Instance | BindingFlags.NonPublic);
if (InternalContextClickedItem == null)
return;
InternalContextClickedItem.
Invoke(treeView, new object[] { -1 });
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d269c0e04a783b442bf23b3dc868a625
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: