Skip to content

Commit 112b5f9

Browse files
committed
Add ExamplEditor
Needed to reproduce issue
1 parent f8b317b commit 112b5f9

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

Assembly-CSharp-Editor.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<LangVersion>8.0</LangVersion>
4+
<LangVersion>latest</LangVersion>
55
</PropertyGroup>
66
<PropertyGroup>
77
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -52,11 +52,9 @@
5252
<UnityBuildTarget>StandaloneWindows:5</UnityBuildTarget>
5353
<UnityVersion>2020.3.24f1</UnityVersion>
5454
</PropertyGroup>
55-
<ItemGroup>
56-
<Analyzer Include="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\Visual Studio Tools for Unity\Analyzers\Microsoft.Unity.Analyzers.dll" />
57-
</ItemGroup>
5855
<ItemGroup>
5956
<Compile Include="Assets\PackageTools\Editor\UnityPackageExporter.cs" />
57+
<Compile Include="Assets\MackySoft\MackySoft.SerializeReferenceExtensions\Example\ExampleAssets\Scripts\Editor\ExampleEditor.cs" />
6058
</ItemGroup>
6159
<ItemGroup>
6260
<Reference Include="UnityEngine">

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Example/ExampleAssets/Scripts/Editor.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEditor;
2+
3+
namespace MackySoft.SerializeReferenceExtensions.Example.Editor {
4+
5+
[CustomEditor(typeof(Example))]
6+
public class ExampleEditor : UnityEditor.Editor {
7+
8+
// Enabling the custom editor slowdown rendering performance.
9+
public override void OnInspectorGUI () {
10+
base.OnInspectorGUI();
11+
}
12+
}
13+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Example/ExampleAssets/Scripts/Editor/ExampleEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)