ドキュメント

Unity Engine

Download Unity

Unity Engine

TypeManager.TypeOverridesAttribute

[TypeOverrides] can be applied to a component that is known to contain Entity, Blob and/or UnityObject references, in order to reduce time taken during serialization operations.
読み終わるまでの所要時間 4 分最終更新 1ヶ月前

Definition

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]public class TypeManager.TypeOverridesAttribute : Attribute

Remarks

Use this attribute to skip the reference patching done during serialization operations when you know the component type will never contain Entity, Blob and/or UnityObject references.

Fields

Value

Description

HasNoBlobReferencesForce the component's TypeManager.TypeInfo.BlobAssetRefOffsetCount to be zero if set to false. Otherwise, the value will only be zero if the component actually has a blob reference.
HasNoEntityReferencesForce the component's TypeIndex.HasEntityReferences to be false if set to true here. Otherwise, the value will only be false if the component actually has no entity references.
HasNoUnityObjectReferencesConfigures the TypeManager to set the component type's UnityObjectRefOffsetCount to zero.

Constructors

Inheritance

Inherited Members