You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Select a concrete type for `[SerializeReference]` fields via dropdown.
13
13
- Search candidates with a fuzzy finder.
@@ -168,20 +168,20 @@ The dropdown list is built by:
168
168
|-|:-:|-|
169
169
|Top-level `public` type|✅| Internal / non-public top-level types are not listed|
170
170
|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|
177
177
178
178
### 2. Compatibility rules (base type vs candidate type)
179
179
180
180
| Field base type| Support | How compatibility is checked|
181
181
| - | :-: | - |
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|
185
185
186
186
187
187
## ❓ FAQ
@@ -194,7 +194,7 @@ Check the eligibility rules:
194
194
- Is it `abstract`?
195
195
- Is it a generic candidate type?
196
196
- Does it derive from `UnityEngine.Object`?
197
-
- Is `[HideInTypeMenu]`applied?
197
+
- Is `[HideInTypeMenu]`applied?
198
198
199
199
### Can I select MonoBehaviour / ScriptableObject?
0 commit comments