ドキュメント

Unity Engine

Unity Engine

IsAddedGameObjectOverride(GameObject)

Returns true if the given GameObject is added as a child to a Prefab instance as an override.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool IsAddedGameObjectOverride(GameObject gameObject)

Parameters

gameObject

The GameObject to check.

Returns

Type

Description

boolTrue if the GameObject is an added GameObject.

Remarks

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.