Version: 2021.3

PrefabUtility.GetPrefabInstanceStatus

切换到手册
public static PrefabInstanceStatus GetPrefabInstanceStatus (Object componentOrGameObject);

参数

componentOrGameObject 属于预制件实例一部分的对象。

返回

PrefabInstanceStatus 预制件实例的状态。

描述

Determines whether a Prefab instance is properly connected to its asset.