Skip to content

Commit 534411b

Browse files
committed
Minor bug fixes
1 parent df2ec99 commit 534411b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

UInspectorPlus/InspectorChildWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private void OnGUI() {
3636
GUILayout.BeginHorizontal(EditorStyles.toolbar);
3737
updateProps = GUILayout.Toggle(updateProps, "Update Props", EditorStyles.toolbarButton);
3838
GUILayout.Space(8);
39-
drawer.searchText = Helper.ToolbarSearchField(drawer.searchText);
39+
drawer.searchText = Helper.ToolbarSearchField(drawer.searchText ?? string.Empty);
4040
GUILayout.FlexibleSpace();
4141
GUILayout.EndHorizontal();
4242
scrollPos = GUILayout.BeginScrollView(scrollPos);

UInspectorPlus/InspectorPlus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private void OnGUI() {
6161
GUILayout.BeginHorizontal(EditorStyles.toolbar);
6262
GUI.changed = false;
6363
GUILayout.Space(8);
64-
searchText = Helper.ToolbarSearchField(searchText, searchModes, ref searchMode);
64+
searchText = Helper.ToolbarSearchField(searchText ?? string.Empty, searchModes, ref searchMode);
6565
GUILayout.Space(8);
6666
EditorGUI.BeginDisabledGroup(instanceIds == null || instanceIds.Length == 0 || searchMode != 0);
6767
if(GUILayout.Button(EditorGUIUtility.IconContent("TreeEditor.Trash", "Destroy Selection"),

UInspectorPlus/UInspectorPlus.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<AssemblyName>UInspectorPlus</AssemblyName>
1212
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile>Unity Full v3.5</TargetFrameworkProfile>
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<DebugSymbols>true</DebugSymbols>
@@ -31,17 +32,22 @@
3132
<WarningLevel>4</WarningLevel>
3233
<LangVersion>5</LangVersion>
3334
</PropertyGroup>
35+
<PropertyGroup>
36+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
37+
</PropertyGroup>
3438
<ItemGroup>
3539
<Reference Include="System" />
3640
<Reference Include="System.Core" />
3741
<Reference Include="System.Xml.Linq" />
3842
<Reference Include="System.Data.DataSetExtensions" />
3943
<Reference Include="System.Data" />
4044
<Reference Include="System.Xml" />
41-
<Reference Include="UnityEditor">
45+
<Reference Include="UnityEditor, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
46+
<SpecificVersion>False</SpecificVersion>
4247
<HintPath>C:\Program Files\Unity\Editor\Data\Managed\UnityEditor.dll</HintPath>
4348
</Reference>
44-
<Reference Include="UnityEngine">
49+
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
50+
<SpecificVersion>False</SpecificVersion>
4551
<HintPath>C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll</HintPath>
4652
</Reference>
4753
</ItemGroup>

0 commit comments

Comments
 (0)