Home
Manual
Reference
Scripting
Scripting Reference
PrefabUtility
.FindPrefabRoot
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Attributes
Enumerations
History
Index
PrefabUtility
All Members
Class Functions
CreateEmptyPrefab
CreatePrefab
DisconnectPrefabInstance
FindPrefabRoot
FindRootGameObjectWithSameParentPrefab
FindValidUploadPrefabInstanceRoot
GetPrefabObject
GetPrefabParent
GetPrefabType
GetPropertyModifications
InstantiateAttachedAsset
InstantiatePrefab
IsComponentAddedToPrefabInstance
MergeAllPrefabInstances
ReconnectToLastPrefab
RecordPrefabInstancePropertyModifications
ReplacePrefab
ResetToPrefabState
RevertPrefabInstance
SetPropertyModifications
static
function
FindPrefabRoot (source :
GameObject
) :
GameObject
Description
Helper function to find the prefab root of an object (used for picking niceness)