Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

TypeManager.TypeInfo.HasUnityObjectRefs

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

public bool HasUnityObjectRefs;

Description

Returns whether there are any UnityObjectRefs fields in this component.

For struct IComponentData a value of true means that there are UnityObjectRefs fields in this component. For class based IComponentData, a value of true means that there might be UnityObjectRefs fields in this component. This is because polymorphic UnityObjectRef<T0> members can't be proven statically. A value of false means there are no UnityObjectRefs fields in this component.