Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request API: How to detect whether a managed type is an interface?

Discussion in 'Profiler Previews' started by Peter77, Jan 9, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
    How would I detect if a managed type is an interface? The TypeDescription class does not seem to provide this information.

    For example, how to tell that UnityEngine.IExposedPropertyTable is an interface, using the data in a memory snapshot?
     
  2. alexrvn

    alexrvn

    Unity Technologies

    Joined:
    May 16, 2017
    Posts:
    53
    Hi Peter,

    Currently we do not store that specific information in the snapshot, we plan to in the future as we should be able to extract it from the scripting back-end.

    Cheers,
    Alex
     
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,586
    OK cool, thanks for the info!