Version: 2022.3
언어: 한국어

PrefabUtility.HasManagedReferencesWithMissingTypes

매뉴얼로 전환
public static bool HasManagedReferencesWithMissingTypes (Object assetComponentOrGameObject);

파라미터

componentOrGameObject An object which is part of a Prefab asset.

반환

bool Returns true if there are missing SerializeReference types directly within a Prefab asset excluding nested Prefab.

설명

Determines whether the object Prefab asset contains any MonoBehaviours with missing SerializeReference types.

This method returns true if the Prefab asset contains missing SerializeReference types. Applying property modifications to a Prefab asset removes missing type information from the Prefab Asset. However, editing a Prefab asset in Prefab Mode preserves missing type information. If you are on an instance, you can use PrefabUtility.GetCorrespondingObjectFromSource to validate if the Prefab asset has missing types. See Also: SerializationUtility.HasManagedReferencesWithMissingTypes, SerializeReference

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