Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.3, 2020.1



Found in


Issue ID




SerializedProperty.arrayElementType on non-empty array of managed references causes "Cannot get managed reference object" error



Given a [SerializeReference] array that is not empty, trying to query .arrayElementType of SerializedProperty that corresponds to the whole array produces a console error message "Cannot get managed reference object with out of bound or outdated reference id". It then returns the type as "managedReference<>" but first logs an error.

1. Open attached project and "Scene" scene from it,
2. Select "GameObject" in hierarchy,
3. Use "Test/Test arrayElementType" menu item
4. Will print:

Prop: name=interfacesArray type=SerializedInterface propertyType=Generic isArray=True
Prop: arraySize=2
ERROR Cannot get managed reference object with out of bound or outdated reference id
Prop: arrayElementType=managedReference<>

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0a8

Comments (12)

  1. 65f1d3fe82907152e1032097dcc3949a?d=mm


    Apr 02, 2020 20:46

  2. Ee06ae0dedca02b49ddc46aacd2619e5?d=mm


    Apr 02, 2020 16:57

  3. Ee06ae0dedca02b49ddc46aacd2619e5?d=mm


    Apr 02, 2020 16:55

    thanks for sharing

  4. Cf4ee1d7cdd4b7305244e5e2d8bf0244?d=mm


    Mar 23, 2020 09:41

    I think you should explain it in a more understandable and detailed manner, anyway I can get information from your article, thank you!

  5. E1f2978190e9e9eba853096cf1b2078f?d=mm


    Mar 11, 2020 07:08

    Tangerine Credit Card Activation Tangerine MasterCard offers great cashback rewards and perks to its users without any annual fee. Customers in Canada can easily apply for Tangerine Credit Card online.

  6. D1da13ebccbf6bcf0cba5423a382ebf2?d=mm


    Mar 09, 2020 10:25;


  7. 8a272c482d202511e7dd62819fa0cbf4?d=mm


    Mar 09, 2020 09:33

    A very nice blog, I like the way you share very honestly and interestingly, through my blog I learned a lot of things.

  8. 4bb20a7a32e2151c5455f446714be3d4?d=mm


    Mar 08, 2020 18:00

    Returns the primary element in the array, or an error value if the array is empty. ... in memory by memory externally this causing any problems - so objects whose functionality relies on external pointers or references to themselves can not be used. best regards

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.