Table of Contents

IsNearestPrefabInstanceRoot

Is the game object the root of the nearest prefab instance?

The Transform hierarchy is searched until the root of any Prefab instance is found, regardless of whether that instance is an applied nested Prefab inside another Prefab, or not.

Returns

bool
Is the game object the root of the nearest prefab instance? The Transform hierarchy is searched until the root of any Prefab instance is found, regardless of whether that instance is an applied nested Prefab inside another Prefab, or not.