Skip to content

Commit 6996df2

Browse files
committed
docs: Update documentation regarding new project settings
1 parent 7d9f6e6 commit 6996df2

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,6 @@ public TypeReference allTypes;
173173

174174
 
175175

176-
By default, the searchbar appears when you have more than 10 types in the dropdown list. You can change this behaviour with the ***SearchbarMinItemsCount*** option. Here we used SearchbarMinItemsCount = 0 to make searchbar appear even though there are less than 10 types to choose from.
177-
178-
```csharp
179-
[Inherits(typeof(IGreetingLogger), SearchbarMinItemsCount = 0)]
180-
public TypeReference greetingLoggerType;
181-
```
182-
183-
 
184-
185176
You can make the field show just the type name without its namespace. For example, in this case, the field will show *DefaultGreetingLogger* instead of *TypeReferences.Demo.Utils.DefaultGreetingLogger*:
186177

187178
```csharp
@@ -190,10 +181,6 @@ You can make the field show just the type name without its namespace. For exampl
190181

191182
 
192183

193-
By default, the field shows built-in types by their keyword name instead of the full name (e.g. `int` instead of `System.Int32`). You can change this by setting the ***UseBuiltInNames*** option to false.
194-
195-
 
196-
197184
The ***SerializableOnly*** option allows you to show only the classes that can be serialized by Unity. It is useful when creating custom generic classes using the types selected from the dropdown. It is a [new feature in Unity 2020](https://unity.com/releases/2020-1/programmer-tools#create-fields-generic-types-directly).
198185

199186
```csharp
@@ -241,7 +228,17 @@ By default, abstract types (abstract classes and interfaces) are not included in
241228
public TypeReference greetingLoggerType;
242229
```
243230

244-
231+
 
232+
233+
## Project Settings
234+
235+
Some options are located in Project Settings.
236+
237+
By default, the field shows built-in types by their keyword name instead of the full name (e.g. `int` instead of `System.Int32`). You can change this by setting the ***Use built-in*** ***names*** option to false.
238+
239+
The searchbar appears when you have more than 10 types in the dropdown list by default. You can change this behaviour with the ***Searchbar minimum items count*** option.
240+
241+
245242

246243
Contribution Agreement
247244
----------------------

0 commit comments

Comments
 (0)