Skip to content

Commit 8a99387

Browse files
committed
fix: Fixed compilation errors in samples
1 parent 88607ee commit 8a99387

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

Samples~/Usage Examples/Editor/TypeReferenceExampleEditor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
using System;
44
using System.Linq;
55
using System.Reflection;
6-
using SolidUtilities.Editor.Extensions;
7-
using SolidUtilities.Editor.Helpers;
8-
using SolidUtilities.Extensions;
6+
using SolidUtilities;
7+
using SolidUtilities.Editor;
98
using UnityEditor;
109
using UnityEngine;
1110
using Utils;

Samples~/Usage Examples/Inherits Examples/InheritsExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class InheritsExample : TypeReferenceExample
1616
public TypeReference OnlyMonoBehaviours;
1717

1818
[InfoBox("All the TypeOptions arguments are available with Inherits too.")]
19-
[Inherits(typeof(IGreetingLogger), ExcludeNone = true)]
19+
[Inherits(typeof(IGreetingLogger), ShowNoneElement = false)]
2020
public TypeReference NoneExcluded;
2121
}
2222
}

Samples~/Usage Examples/TypeOptions Examples/ExcludeNone.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace TypeReferences.Demo.TypeOptions_Examples
2+
{
3+
using Utils;
4+
5+
public class ShowNoneElement : TypeReferenceExample
6+
{
7+
[InfoBox("You can hide the (None) element so that no one can choose it from the dropdown. Note that the type can still be null by default or if set through code.")]
8+
[Inherits(typeof(IGreetingLogger), ShowNoneElement = false, ExpandAllFolders = true)]
9+
public TypeReference GreetingLoggerType;
10+
}
11+
}
File renamed without changes.

0 commit comments

Comments
 (0)