Skip to content

Commit cbaced4

Browse files
committed
docs: Added info about the AllowInternal option
1 parent e3b3bfa commit cbaced4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public TypeReference attribute;
155155

156156
 
157157

158-
If you are not satisfied with the auto-adjusted height, you can set the custom one with the DropdownHeight option. Use it like this:
158+
If you are not satisfied with the auto-adjusted height, you can set the custom one with the *DropdownHeight* option. Use it like this:
159159

160160
```csharp
161161
[Inherits(typeof(IGreetingLogger), DropdownHeight = 300)]
@@ -164,7 +164,7 @@ public TypeReference greetingLoggerType;
164164

165165
 
166166

167-
By default, folders are closed. If you want them all to be expanded when you open the dropdown, use ExpandAllFolders = true:
167+
By default, folders are closed. If you want them all to be expanded when you open the dropdown, use ***ExpandAllFolders*** = true:
168168

169169
```csharp
170170
[TypeOptions(ExpandAllFolders = true)]
@@ -173,7 +173,7 @@ 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.
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.
177177

178178
```csharp
179179
[Inherits(typeof(IGreetingLogger), SearchbarMinItemsCount = 0)]
@@ -190,11 +190,11 @@ You can make the field show just the type name without its namespace. For exampl
190190

191191
 
192192

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.
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.
194194

195195
 
196196

197-
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).
197+
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).
198198

199199
```csharp
200200
[SerializeField, TypeOptions(SerializableOnly = true)]
@@ -203,6 +203,10 @@ private TypeReference serializableTypes;
203203

204204
 
205205

206+
***AllowInternal*** option makes internal types appear in the drop-down. By default, only public ones are shown.
207+
208+
 
209+
206210
## Inherits Attribute
207211

208212
This attribute allows you to choose only from the classes that implement a certain interface or extend a class. It has all the arguments `TypeOptions` provides.

0 commit comments

Comments
 (0)