Version: 2020.1
언어: 한국어
public static bool IsPartOfAnyPrefab (Object componentOrGameObject);

파라미터

componentOrGameObject The object to check. Must be a component or GameObject.

반환

bool True if the object s part of a Prefab.

설명

Returns true if the given object is part of any kind of Prefab.

Use this to check if a given object is part of any Prefab, regardless of whether it's a Prefab Asset or a Prefab instance.