Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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,468
    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,468
    OK cool, thanks for the info!