Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: neon-age/Smart-Inspector
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.0
Choose a base ref
...
head repository: neon-age/Smart-Inspector
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Jun 19, 2021

  1. Update README.md

    neon-age authored Jun 19, 2021
    Copy the full SHA
    992803e View commit details
  2. Update README.md

    neon-age authored Jun 19, 2021
    Copy the full SHA
    d438977 View commit details

Commits on Jun 20, 2021

  1. Update README.md

    neon-age authored Jun 20, 2021
    Copy the full SHA
    58cc4b7 View commit details
  2. Update README.md

    neon-age authored Jun 20, 2021
    Copy the full SHA
    e8dcd9a View commit details
  3. Update README.md

    neon-age authored Jun 20, 2021
    Copy the full SHA
    ef54be5 View commit details

Commits on Jun 22, 2021

  1. v0.6.0 - Fluent Injection

    - User Elements Injection API
    - Fluent UITK API + Assets Utils
    - Instant and reliable injection, 1-to-1 with vanilla
    - Setup in-one-place
    - Complete codebase cleanup
    - Fixed all injection and setup related bugs
    neon-age authored Jun 22, 2021
    Copy the full SHA
    cf2c0de View commit details
  2. Update README.md

    neon-age authored Jun 22, 2021
    Copy the full SHA
    7e7910d View commit details
  3. Update package.json

    neon-age committed Jun 22, 2021
    Copy the full SHA
    d5fd764 View commit details

Commits on Jun 23, 2021

  1. Update README.md

    neon-age authored Jun 23, 2021
    Copy the full SHA
    ed08d02 View commit details

Commits on Jun 25, 2021

  1. Update README.md

    neon-age authored Jun 25, 2021
    Copy the full SHA
    afc347b View commit details

Commits on Jul 8, 2021

  1. v0.8.0

    Preferences Window!
    - Disable plugin or individual patches
    - Hide "Script" fields
    - Hide header buttons
    - IMGUI Culling - skips GUI for performance!
    - Compact Prefab Inspector!
    - Compact Scrollbar
    - Smooth Scrolling
    - Hide Addressable, Convert To Entity
    - Hide Asset Labels, Asset Bundle
    
    Fluent UITK
    - API changes, move into AV.UITK namespace
    - Will be moved into separate package soon and used as a dependency (!)
    - New Controls
    - Better Styling
    - More Callbacks
    - Binding Utils
    neon-age authored Jul 8, 2021
    Copy the full SHA
    8e42ae4 View commit details
  2. bump

    neon-age committed Jul 8, 2021
    Copy the full SHA
    30113f8 View commit details
  3. Update README.md

    neon-age authored Jul 8, 2021
    Copy the full SHA
    4bfad0f View commit details

Commits on Jul 9, 2021

  1. Copy the full SHA
    c4b6b72 View commit details
  2. bump

    neon-age committed Jul 9, 2021
    Copy the full SHA
    d252b0b View commit details

Commits on Dec 6, 2021

  1. Commented out editor usings in runtime class (#19)

    This was causing errors when building the Unity project
    
    Co-authored-by: Gerard Delaney <mr.gerard.delaney@gmail.com>
    GerardMG and GerardDelaney authored Dec 6, 2021
    Copy the full SHA
    a2de255 View commit details

Commits on Jun 11, 2022

  1. Copy the full SHA
    bead89c View commit details
  2. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    4af38ac View commit details
  3. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    f2f4f91 View commit details
  4. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    10fd13e View commit details
  5. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    c70848f View commit details
  6. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    03b79d7 View commit details
  7. Update README.md

    neon-age authored Jun 11, 2022
    Copy the full SHA
    9802104 View commit details
  8. Update FUNDING.yml

    neon-age authored Jun 11, 2022
    Copy the full SHA
    0e0090c View commit details
  9. Delete LICENSE

    neon-age authored Jun 11, 2022
    Copy the full SHA
    2650df7 View commit details
  10. Change license to MIT

    neon-age authored Jun 11, 2022
    Copy the full SHA
    99f5d29 View commit details
  11. Change license to MIT

    neon-age authored Jun 11, 2022
    Copy the full SHA
    bdea8b6 View commit details

Commits on Jul 3, 2022

  1. Update README.md

    neon-age authored Jul 3, 2022
    Copy the full SHA
    a11ed2a View commit details

Commits on Dec 28, 2022

  1. Update README.md

    neon-age authored Dec 28, 2022
    Copy the full SHA
    aa4248c View commit details

Commits on Nov 27, 2023

  1. Update README.md

    neon-age authored Nov 27, 2023
    Copy the full SHA
    2cb3f26 View commit details
Showing with 5,167 additions and 2,202 deletions.
  1. +0 −4 .github/FUNDING.yml
  2. +3 −1 AV.Inspector.asmdef
  3. +0 −112 Base/Elements/ComponentHeaderElement.cs
  4. +0 −3 Base/Elements/ComponentHeaderElement.cs.meta
  5. +0 −69 Base/Elements/InspectorComponentsToolbar.cs
  6. +0 −3 Base/Elements/InspectorComponentsToolbar.cs.meta
  7. +0 −9 Base/Elements/InspectorElement.cs
  8. +0 −58 Base/Elements/InspectorMainToolbar.cs
  9. +0 −3 Base/Elements/InspectorMainToolbar.cs.meta
  10. +29 −16 Base/Elements/{InspectorEditorTab.cs → InspectorTab.cs}
  11. +1 −1 Base/Elements/{InspectorEditorTab.cs.meta → InspectorTab.cs.meta}
  12. +73 −0 Base/Elements/InspectorTabsBar.cs
  13. +1 −1 Base/Elements/{InspectorElement.cs.meta → InspectorTabsBar.cs.meta}
  14. +2 −1 Base/Elements/TooltipElement.cs
  15. +0 −14 Base/Index.cs
  16. +0 −89 Base/InspectorInjection.cs
  17. +0 −3 Base/InspectorInjection.cs.meta
  18. +10 −0 Base/PackageInfo.cs
  19. +1 −1 Base/{Index.cs.meta → PackageInfo.cs.meta}
  20. +1 −1 Base/{Resources.meta → Preferences.meta}
  21. +75 −0 Base/Preferences/InspectorPatchesUI.cs
  22. +11 −0 Base/Preferences/InspectorPatchesUI.cs.meta
  23. +121 −0 Base/Preferences/InspectorPrefs.cs
  24. +11 −0 Base/Preferences/InspectorPrefs.cs.meta
  25. +231 −0 Base/Preferences/InspectorPrefsUI.cs
  26. +11 −0 Base/Preferences/InspectorPrefsUI.cs.meta
  27. +44 −0 Base/Preferences/InspectorSettingsProvider.cs
  28. +11 −0 Base/Preferences/InspectorSettingsProvider.cs.meta
  29. +40 −4 Base/Reflected/EditorElementRef.cs
  30. +4 −27 Base/Reflected/InspectorWindowRef.cs
  31. +9 −0 Base/Reflected/PropertyEditorRef.cs
  32. +0 −15 Base/Resources/Index.asset
  33. +0 −23 Base/Resources/UI Resources.asset
  34. +58 −0 Base/SerializedTable.cs
  35. +11 −0 Base/SerializedTable.cs.meta
  36. +15 −0 Base/SmartInspector.Resources.cs
  37. +11 −0 Base/SmartInspector.Resources.cs.meta
  38. +384 −152 Base/SmartInspector.cs
  39. +0 −108 Base/UIResources.cs
  40. +10 −2 Base/UIResources.cs.meta
  41. +0 −14 Base/Utils/AssetUtils.cs
  42. +0 −3 Base/Utils/AssetUtils.cs.meta
  43. +27 −0 Base/Utils/DictionaryUtils.cs
  44. +11 −0 Base/Utils/DictionaryUtils.cs.meta
  45. +11 −37 Base/Utils/EditorUtils.cs
  46. +10 −2 Base/Utils/EditorUtils.cs.meta
  47. +0 −17 Base/Utils/ExpressionUtils.cs
  48. +0 −3 Base/Utils/ExpressionUtils.cs.meta
  49. +0 −30 Base/Utils/FastGUI.cs
  50. +0 −3 Base/Utils/FastGUI.cs.meta
  51. +0 −66 Base/Utils/IStyleExtensions.cs
  52. +0 −121 Base/Utils/UIToolkitFluentAPI.cs
  53. +0 −3 Base/Utils/UIToolkitFluentAPI.cs.meta
  54. +31 −0 Drawers/ReadOnlyDrawer.cs
  55. +11 −0 Drawers/ReadOnlyDrawer.cs.meta
  56. +0 −674 LICENSE
  57. +21 −0 LICENSE.md
  58. 0 LICENSE.meta → LICENSE.md.meta
  59. +77 −0 Patches/AssetPreviewPatch.cs
  60. +11 −0 Patches/AssetPreviewPatch.cs.meta
  61. +194 −0 Patches/EditorDraggingPatch.cs
  62. +11 −0 Patches/EditorDraggingPatch.cs.meta
  63. +46 −192 Patches/EditorElementPatch.cs
  64. +37 −0 Patches/EditorHeaderItemPatch.cs
  65. +11 −0 Patches/EditorHeaderItemPatch.cs.meta
  66. +52 −5 Patches/EditorPatch.cs
  67. +30 −0 Patches/GenericInspectorPatch.cs
  68. +11 −0 Patches/GenericInspectorPatch.cs.meta
  69. +20 −0 Patches/InspectorUtilsPatch.cs
  70. +11 −0 Patches/InspectorUtilsPatch.cs.meta
  71. +26 −0 Patches/ObjectNamesPatch.cs
  72. +11 −0 Patches/ObjectNamesPatch.cs.meta
  73. +49 −0 Patches/PostHeaderGUIPatch.cs
  74. +11 −0 Patches/PostHeaderGUIPatch.cs.meta
  75. +53 −0 Patches/PrefabImporterPatch.cs
  76. +11 −0 Patches/PrefabImporterPatch.cs.meta
  77. +57 −4 Patches/PropertyEditorPatch.cs
  78. +28 −6 Patches/Provider/PatchBase.cs
  79. +33 −24 Patches/Provider/Patcher.cs
  80. +21 −19 README.md
  81. +3 −3 Base/Resources/Index.asset.meta → Runtime.meta
  82. +14 −0 Runtime/AV.Inspector.Runtime.asmdef
  83. +2 −3 Base/Resources/UI Resources.asset.meta → Runtime/AV.Inspector.Runtime.asmdef.meta
  84. +4 −0 Runtime/AssemblyInfo.cs
  85. +3 −0 Runtime/AssemblyInfo.cs.meta
  86. +8 −0 Runtime/Attributes.meta
  87. +9 −0 Runtime/Attributes/InitializeOnInspectorAttribute.cs
  88. +3 −0 Runtime/Attributes/InitializeOnInspectorAttribute.cs.meta
  89. +10 −0 Runtime/Attributes/ReadOnlyAttribute.cs
  90. +11 −0 Runtime/Attributes/ReadOnlyAttribute.cs.meta
  91. +8 −0 Runtime/Fluent UITK.meta
  92. +27 −0 Runtime/Fluent UITK/CallHandle.cs
  93. +11 −0 Runtime/Fluent UITK/CallHandle.cs.meta
  94. +8 −0 Runtime/Fluent UITK/Extensions.meta
  95. +106 −0 Runtime/Fluent UITK/Extensions/IStyleExtensions.cs
  96. +1 −1 {Base/Utils → Runtime/Fluent UITK/Extensions}/IStyleExtensions.cs.meta
  97. +15 −0 Runtime/Fluent UITK/Extensions/PropertyFieldExtension.cs
  98. +11 −0 Runtime/Fluent UITK/Extensions/PropertyFieldExtension.cs.meta
  99. +18 −0 Runtime/Fluent UITK/Extensions/VisualElementExtensions.cs
  100. +11 −0 Runtime/Fluent UITK/Extensions/VisualElementExtensions.cs.meta
  101. +46 −0 Runtime/Fluent UITK/FluentElement.Base.cs
  102. +11 −0 Runtime/Fluent UITK/FluentElement.Base.cs.meta
  103. +83 −0 Runtime/Fluent UITK/FluentElement.Basic.cs
  104. +11 −0 Runtime/Fluent UITK/FluentElement.Basic.cs.meta
  105. +77 −0 Runtime/Fluent UITK/FluentElement.Bindings.cs
  106. +11 −0 Runtime/Fluent UITK/FluentElement.Bindings.cs.meta
  107. +152 −0 Runtime/Fluent UITK/FluentElement.Callbacks.cs
  108. +11 −0 Runtime/Fluent UITK/FluentElement.Callbacks.cs.meta
  109. +50 −0 Runtime/Fluent UITK/FluentElement.Classes.cs
  110. +11 −0 Runtime/Fluent UITK/FluentElement.Classes.cs.meta
  111. +131 −0 Runtime/Fluent UITK/FluentElement.Factory.cs
  112. +11 −0 Runtime/Fluent UITK/FluentElement.Factory.cs.meta
  113. +58 −0 Runtime/Fluent UITK/FluentElement.Query.cs
  114. +11 −0 Runtime/Fluent UITK/FluentElement.Query.cs.meta
  115. +19 −0 Runtime/Fluent UITK/FluentElement.Scheduling.cs
  116. +11 −0 Runtime/Fluent UITK/FluentElement.Scheduling.cs.meta
  117. +310 −0 Runtime/Fluent UITK/FluentElement.Styling.cs
  118. +11 −0 Runtime/Fluent UITK/FluentElement.Styling.cs.meta
  119. +45 −0 Runtime/Fluent UITK/FluentElement.Utils.cs
  120. +11 −0 Runtime/Fluent UITK/FluentElement.Utils.cs.meta
  121. +25 −0 Runtime/Fluent UITK/FluentUITK.Constants.cs
  122. +11 −0 Runtime/Fluent UITK/FluentUITK.Constants.cs.meta
  123. +347 −0 Runtime/Fluent UITK/FluentUITK.Controls.cs
  124. +11 −0 Runtime/Fluent UITK/FluentUITK.Controls.cs.meta
  125. +29 −0 Runtime/Fluent UITK/FluentUITK.Resources.cs
  126. +11 −0 Runtime/Fluent UITK/FluentUITK.Resources.cs.meta
  127. +126 −0 Runtime/Fluent UITK/FluentUITK.Structs.cs
  128. +11 −0 Runtime/Fluent UITK/FluentUITK.Structs.cs.meta
  129. +58 −0 Runtime/Fluent UITK/FluentUITK.Styles.cs
  130. +11 −0 Runtime/Fluent UITK/FluentUITK.Styles.cs.meta
  131. +95 −0 Runtime/Fluent UITK/FluentUITK.Utils.Assets.cs
  132. +11 −0 Runtime/Fluent UITK/FluentUITK.Utils.Assets.cs.meta
  133. +26 −0 Runtime/Fluent UITK/FluentUITK.Utils.Bindings.cs
  134. +11 −0 Runtime/Fluent UITK/FluentUITK.Utils.Bindings.cs.meta
  135. +202 −0 Runtime/Fluent UITK/FluentUITK.Utils.Callbacks.cs
  136. +11 −0 Runtime/Fluent UITK/FluentUITK.Utils.Callbacks.cs.meta
  137. +40 −0 Runtime/Fluent UITK/FluentUITK.Utils.Editor.cs
  138. +11 −0 Runtime/Fluent UITK/FluentUITK.Utils.Editor.cs.meta
  139. +10 −0 Runtime/Fluent UITK/IFluent.cs
  140. +11 −0 Runtime/Fluent UITK/IFluent.cs.meta
  141. +24 −0 Runtime/Fluent UITK/IFluentExtensions.cs
  142. +11 −0 Runtime/Fluent UITK/IFluentExtensions.cs.meta
  143. +8 −0 Runtime/Fluent UITK/Styles.meta
  144. +28 −0 Runtime/Fluent UITK/Styles/-core-styles-light.uss
  145. +1 −1 UI/inspector-tabs.uss.meta → Runtime/Fluent UITK/Styles/-core-styles-light.uss.meta
  146. +185 −0 Runtime/Fluent UITK/Styles/-core-styles.uss
  147. +1 −1 UI/Styles/inspector-main-toolbar.uss.meta → Runtime/Fluent UITK/Styles/-core-styles.uss.meta
  148. +73 −0 Runtime/SmartInspector.EditorElement.cs
  149. +3 −0 Runtime/SmartInspector.EditorElement.cs.meta
  150. +46 −0 Runtime/SmartInspector.Selection.cs
  151. +3 −0 Runtime/SmartInspector.Selection.cs.meta
  152. +35 −0 Runtime/SmartInspector.Utils.Assets.cs
  153. +3 −0 Runtime/SmartInspector.Utils.Assets.cs.meta
  154. +34 −0 Runtime/SmartInspector.Utils.Editor.cs
  155. +3 −0 Runtime/SmartInspector.Utils.Editor.cs.meta
  156. +8 −0 Runtime/SmartInspector.Utils.Json.cs
  157. +3 −0 Runtime/SmartInspector.Utils.Json.cs.meta
  158. +15 −0 Runtime/SmartInspector.cs
  159. +11 −0 Runtime/SmartInspector.cs.meta
  160. +1 −0 UI/Styles/--inspector-prefs-ui-light.uss
  161. +1 −1 UI/{inspector-content-justify.uss.meta → Styles/--inspector-prefs-ui-light.uss.meta}
  162. +46 −0 UI/Styles/--inspector-prefs-ui.uss
  163. +1 −1 UI/Styles/{common-styles.uss.meta → --inspector-prefs-ui.uss.meta}
  164. +0 −8 UI/Styles/common-styles.uss
  165. +0 −106 UI/Styles/component-header.uss
  166. +27 −0 UI/Styles/headers.uss
  167. 0 UI/Styles/{component-header.uss.meta → headers.uss.meta}
  168. +0 −31 UI/Styles/inspector-main-toolbar.uss
  169. +44 −0 UI/Styles/scroll-view.uss
  170. 0 UI/{hidden-scroll-view.uss.meta → Styles/scroll-view.uss.meta}
  171. 0 UI/Styles/{components-toolbar-light.uss → tabs-bar-light.uss}
  172. +1 −1 UI/Styles/{components-toolbar-light.uss.meta → tabs-bar-light.uss.meta}
  173. +3 −2 UI/Styles/{components-toolbar.uss → tabs-bar.uss}
  174. 0 UI/Styles/{components-toolbar.uss.meta → tabs-bar.uss.meta}
  175. +1 −1 UI/Styles/tooltip-element.uss.meta
  176. +0 −29 UI/hidden-scroll-view.uss
  177. +0 −34 UI/inspector-content-justify.uss
  178. +0 −33 UI/inspector-tabs.uss
  179. +4 −3 package.json
4 changes: 0 additions & 4 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@

ko_fi: neonage
patreon: neonage

custom: paypal.me/neonage
4 changes: 3 additions & 1 deletion AV.Inspector.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "AV.Inspector",
"rootNamespace": "AV.Inspector",
"references": [],
"references": [
"GUID:5bfd80592c1d75544a34ca5910633008"
],
"includePlatforms": [
"Editor"
],
112 changes: 0 additions & 112 deletions Base/Elements/ComponentHeaderElement.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Base/Elements/ComponentHeaderElement.cs.meta

This file was deleted.

69 changes: 0 additions & 69 deletions Base/Elements/InspectorComponentsToolbar.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Base/Elements/InspectorComponentsToolbar.cs.meta

This file was deleted.

9 changes: 0 additions & 9 deletions Base/Elements/InspectorElement.cs

This file was deleted.

58 changes: 0 additions & 58 deletions Base/Elements/InspectorMainToolbar.cs

This file was deleted.

3 changes: 0 additions & 3 deletions Base/Elements/InspectorMainToolbar.cs.meta

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
using System;
using System.Threading.Tasks;
using AV.Inspector.Runtime;
using AV.UITK;
using UnityEditor;
using UnityEditor.UIElements;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UIElements;
using Object = UnityEngine.Object;
using EditorElement = AV.Inspector.Runtime.SmartInspector.EditorElement;

namespace AV.Inspector
{
internal class InspectorEditorTab : ToolbarToggle
internal class InspectorTab : ToolbarToggle
{
const string EditorTabClass = "editor-tab";
const string TabStateKeyPrefix = "tab ";
@@ -22,25 +25,24 @@ public enum State
WasExpanded = 2, // Was inspector expanded before tab activation?
}

public readonly SmartInspector.EditorElement editor;
public readonly EditorElement editor;

readonly SmartInspector inspector = SmartInspector.LastInjected;
readonly SmartInspector inspector = SmartInspector.RebuildingInspector;
readonly ActiveEditorTracker tracker;

Texture2D preview;
Texture2D thumbnail;
VisualElement image;
FluentUITK.Icon icon;

Object target => editor.target;


public InspectorEditorTab(SmartInspector.EditorElement editor)
public InspectorTab(EditorElement editor)
{
this.editor = editor;
this.tracker = PropertyEditorRef.GetTracker(inspector.propertyEditor);

name = GetTitle();
//tooltip = GetTitle();
RestoreTabState();

AddToClassList(EditorTabClass);
@@ -51,10 +53,10 @@ public InspectorEditorTab(SmartInspector.EditorElement editor)
preview = AssetPreview.GetAssetPreview(target);
thumbnail = AssetPreview.GetMiniThumbnail(target);

image = new VisualElement() { pickingMode = PickingMode.Ignore }.AddClass("small-icon");
Add(image);
icon = new FluentUITK.Icon();
Add(icon);

this.Get(".unity-toggle__input").RemoveFromHierarchy();
this.Query(className: "unity-toggle__input").First().RemoveFromHierarchy();
}

void RegisterCallbacks()
@@ -140,17 +142,28 @@ void OnGeometryChange(GeometryChangedEvent evt)
if (!preview)
preview = AssetPreview.GetAssetPreview(target);

image.style.backgroundImage = preview ? preview : thumbnail;
icon.image = preview ? preview : thumbnail;
}


string GetStateLog()
{
return $"{LoadState()} {GetPrefKey()}";
}

string GetPrefKey()
{
string key;
// Save state by guid for assets (usually Materials)
if (AssetDatabase.TryGetGUIDAndLocalFileIdentifier(target, out var guid, out long localId))
key = guid;
else // And by full type name for scene objects
string key = "";

if (target is Component)
{
key = target.GetType().FullName;
}
// Use guid for assets (usually Materials)
else if (AssetDatabase.TryGetGUIDAndLocalFileIdentifier(target, out var guid, out long localId))
{
key = guid;
}

return TabStateKeyPrefix + key;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading