Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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,650
    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:
    58
    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,650
    OK cool, thanks for the info!