Search Issue Tracker
Fixed in 2020.2.X
Votes
1
Found in
2019.3
Issue ID
1225657
Regression
No
"Invalid reference id '0' while trying to get instance object typename" error when resizing array of [SerializeReference]
Resizing array of abstract classes with [SerializeReference] in the inspector results in error printed to console, like "Invalid reference id '0' while trying to get instance object typename"
1. open 1-SetArraySizeError scene in the attached project SerializeReferenceArrayBug.zip
2. in "1-SetArraySizeTo1OnThis" object, change TheTest component InterfacesArray size to 1.
3. "Invalid reference id '0' while trying to get instance object typename." error printed to console
The script basically has a:
public interface SerializedInterface
{
int DoStuff();
}
// ...
[SerializeReference] public SerializedInterface[] interfacesArray;
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Add comment