Unity-jump-proj

This commit is contained in:
2024-09-09 11:07:16 +03:00
parent 2c29906bbf
commit fd96a5627d
13707 changed files with 866380 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using System;
using UnityEngine;
namespace UnityEditor.Timeline
{
struct GUIColorOverride : IDisposable
{
readonly Color m_OldColor;
public GUIColorOverride(Color newColor)
{
m_OldColor = GUI.color;
GUI.color = newColor;
}
public void Dispose()
{
GUI.color = m_OldColor;
}
}
}

View File

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

View File

@ -0,0 +1,18 @@
using System;
using UnityEngine;
namespace UnityEditor
{
struct GUIGroupScope : IDisposable
{
public GUIGroupScope(Rect position)
{
GUI.BeginGroup(position);
}
public void Dispose()
{
GUI.EndGroup();
}
}
}

View File

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

View File

@ -0,0 +1,20 @@
using System;
using UnityEngine;
namespace UnityEditor
{
struct GUIMixedValueScope : IDisposable
{
readonly bool m_PrevValue;
public GUIMixedValueScope(bool newValue)
{
m_PrevValue = EditorGUI.showMixedValue;
EditorGUI.showMixedValue = newValue;
}
public void Dispose()
{
EditorGUI.showMixedValue = m_PrevValue;
}
}
}

View File

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

View File

@ -0,0 +1,34 @@
using System;
using UnityEngine;
namespace UnityEditor
{
// Special Clip Scope that only effects painting, and keeps the coordinate system identical
struct GUIViewportScope : IDisposable
{
bool m_open;
public GUIViewportScope(Rect position)
{
m_open = false;
if (Event.current.type == EventType.Repaint || Event.current.type == EventType.Layout)
{
GUI.BeginClip(position, -position.min, Vector2.zero, false);
m_open = true;
}
}
public void Dispose()
{
CloseScope();
}
void CloseScope()
{
if (m_open)
{
GUI.EndClip();
m_open = false;
}
}
}
}

View File

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

View File

@ -0,0 +1,20 @@
using System;
using UnityEngine;
namespace UnityEditor.Timeline
{
readonly struct HorizontalScope : IDisposable
{
public readonly Rect rect;
public HorizontalScope(GUIContent content, GUIStyle style)
{
rect = EditorGUILayout.BeginHorizontal(content, style);
}
public void Dispose()
{
EditorGUILayout.EndHorizontal();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 75e3737506434a75b1f7901d8883ad47
timeCreated: 1605888588

View File

@ -0,0 +1,20 @@
using System;
namespace UnityEditor.Timeline
{
readonly struct IndentLevelScope : IDisposable
{
readonly int m_PrevValue;
public IndentLevelScope(int newValue)
{
m_PrevValue = EditorGUI.indentLevel;
EditorGUI.indentLevel = newValue;
}
public void Dispose()
{
EditorGUI.indentLevel = m_PrevValue;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e42e3f559ace4a5dbae7d6d3d2e5e7b0
timeCreated: 1605888248

View File

@ -0,0 +1,20 @@
using System;
namespace UnityEditor.Timeline
{
readonly struct LabelWidthScope : IDisposable
{
readonly float m_PrevValue;
public LabelWidthScope(float newValue)
{
m_PrevValue = EditorGUIUtility.labelWidth;
EditorGUIUtility.labelWidth = newValue;
}
public void Dispose()
{
EditorGUIUtility.labelWidth = m_PrevValue;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9d095bb54df44c01a27e76a2b060a072
timeCreated: 1605888410

View File

@ -0,0 +1,20 @@
using System;
using UnityEngine;
namespace UnityEditor.Timeline
{
readonly struct PropertyScope : IDisposable
{
public readonly GUIContent content;
public PropertyScope(Rect totalPosition, GUIContent label, SerializedProperty property)
{
content = EditorGUI.BeginProperty(totalPosition, label, property);
}
public void Dispose()
{
EditorGUI.EndProperty();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0ccfd55dae664bbcb54c8457acffdbf8
timeCreated: 1605887959