コード例 #1
0
        public int GetObjectUID()
        {
            switch (MetricType)
            {
            case ObjectMetricType.Managed:
                return(m_CachedSnapshot.ManagedObjectIndexToUnifiedObjectIndex(ObjectIndex));

            case ObjectMetricType.Native:
                return(m_CachedSnapshot.NativeObjectIndexToUnifiedObjectIndex(ObjectIndex));

            default:
                return(-1);
            }
        }
コード例 #2
0
ファイル: Item.cs プロジェクト: BickhamM21/Radon-Unity-
 int IMetricValue.GetObjectUID()
 {
     return(m_Snapshot.NativeObjectIndexToUnifiedObjectIndex(m_ObjectIndex));
 }