Version: 2020.3
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

NativeObjectEntries

class in UnityEditor.Profiling.Memory.Experimental

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A class that houses native object data, returned by PackedMemorySnapshot.nativeObjects.

Properties

flagsAn array the contains the flags attached to the native memory objects referenced in the NativeObjectEntries.nativeObjectAddress array.
gcHandleIndexIndex of a handle inside the PackedMemorySnapshot.gcHandles array.
hideFlagsThe hide flags attached to this native object.
instanceIdThe instance id of this native object.
nativeObjectAddressAn array of memory addresses that point to native C++ objects. This matches the "m_CachePtr" field of a UnityEngine.Object.
nativeTypeArrayIndexAn array of indexes into the PackedMemorySnapshot.nativeTypes array used to retrieve the the native C++ type description.
objectNameAn array containing the names of the native objects.
rootReferenceIdAn array containing the root reference ids of the native objects. Corresponds to entries in NativeRootReferenceEntries.id array.
sizeThe size in bytes of this object.

Public Methods

GetNumEntriesGets the number of native object entries.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961