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
- Errors “RenderPass: Attachment 0 is declared as depth attachment but RGBA8 sRGB is not a valid depth format.“ and “BeginSubPass: Not inside a Renderpass“ are present when using Native RenderPass with a RenderTexture that only has depth output
- ArgumentOutOfRangeException is thrown when an empty DropdownField is clicked at runtime
- [tvOS] "EXC_BAD_ACCESS" error is thrown when Painter2D.ClosePath is called
- Bad Naming Convention in Shortcuts Window for Sprite Shape Editing
- Bad Naming Convention in Shortcuts Window for Shader Graph
Add comment