Version: 2023.1
言語: 日本語
public static bool IsAddedGameObjectOverride (GameObject gameObject);

パラメーター

gameObject チェックする GameObject

戻り値

bool True if the GameObject is an added GameObject.

説明

Is this GameObject added as a child to a Prefab instance as an override?

Returns true if the GameObject exists in the Prefab instance and not in the Prefab Asset. Returns false if the GameObject exists on the Prefab Asset too, or if it’s a child of a regular GameObject which is not a part of a Prefab instance.