Skip to content

Commit 5fadcb6

Browse files
authored
Update README.md
1 parent b125f33 commit 5fadcb6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This library provides an Inspector dropdown (`SubclassSelector`) for fields seri
77

88
![SubclassSelector](https://user-images.githubusercontent.com/13536348/118233552-03cd1780-b4cd-11eb-9e5b-4824e8f01f1d.gif)
99

10-
#### Key Features
10+
## Key Features
1111

1212
- Select a concrete type for `[SerializeReference]` fields via dropdown.
1313
- Search candidates with a fuzzy finder.
@@ -168,20 +168,20 @@ The dropdown list is built by:
168168
|-|:-:|-|
169169
|Top-level `public` type|| Internal / non-public top-level types are not listed|
170170
|Nested `private` type|| Supported (useful for encapsulated implementations)|
171-
| Nested `public` type|| Listed like other candidates|
172-
| `abstract`|| Cannot be instantiated|
173-
| `generic` type (open or constructed) || See “Generic support” (base type generics are supported, but generic candidate types are excluded) |
174-
| derives from `UnityEngine.Object`|| Unity `SerializeReference` limitation|
175-
| `[Serializable]` is applied|| Unity `SerializeReference` requires serializable types|
176-
| `[HideInTypeMenu]` is applied|| Explicitly hidden from menu|
171+
|Nested `public` type|| Listed like other candidates|
172+
|`abstract`|| Cannot be instantiated|
173+
|`generic` type (open or constructed) || See “Generic support” (base type generics are supported, but generic candidate types are excluded) |
174+
|derives from `UnityEngine.Object`|| Unity `SerializeReference` limitation|
175+
|`[Serializable]` is applied|| Unity `SerializeReference` requires serializable types|
176+
|`[HideInTypeMenu]` is applied|| Explicitly hidden from menu|
177177

178178
### 2. Compatibility rules (base type vs candidate type)
179179

180180
| Field base type| Support | How compatibility is checked|
181181
| - | :-: | - |
182-
| non-generic interface / abstract class || `baseType.IsAssignableFrom(candidateType)`|
183-
| generic base type (Unity 2023.2+)|| candidate must implement/derive from the same generic definition and match type arguments (supports variance for `in` / `out`) |
184-
| generic base type (Unity < 2023.2)|⚠️| Unity engine limitations may prevent correct serialization of generic instances|
182+
|non-generic interface / abstract class || `baseType.IsAssignableFrom(candidateType)`|
183+
|generic base type (Unity 2023.2+)|| candidate must implement/derive from the same generic definition and match type arguments (supports variance for `in` / `out`) |
184+
|generic base type (Unity < 2023.2)|⚠️| Unity engine limitations may prevent correct serialization of generic instances|
185185

186186

187187
## ❓ FAQ
@@ -194,7 +194,7 @@ Check the eligibility rules:
194194
- Is it `abstract`?
195195
- Is it a generic candidate type?
196196
- Does it derive from `UnityEngine.Object`?
197-
- Is `[HideInTypeMenu] `applied?
197+
- Is `[HideInTypeMenu]` applied?
198198

199199
### Can I select MonoBehaviour / ScriptableObject?
200200

0 commit comments

Comments
 (0)