# Editor.EditorUtility.Prefabs

- Kind: class
- Assembly: `Sandbox.Tools`
- Modifiers: static, abstract, sealed

## Methods

- [`AddInstanceAddedGameObjectToPrefab`](/api/Editor.EditorUtility.Prefabs/AddInstanceAddedGameObjectToPrefab): `M:PrefabInstanceData.AddGameObjectToPrefab(Sandbox.GameObject)`
- [`ApplyComponentInstanceChangesToPrefab`](/api/Editor.EditorUtility.Prefabs/ApplyComponentInstanceChangesToPrefab): `M:PrefabInstanceData.ApplyComponentChangesToPrefab(Sandbox.Component)`
- [`ApplyGameObjectInstanceChangesToPrefab`](/api/Editor.EditorUtility.Prefabs/ApplyGameObjectInstanceChangesToPrefab): `M:PrefabInstanceData.ApplyGameObjectChangesToPrefab(Sandbox.GameObject)`
- [`ApplyPropertyChange`](/api/Editor.EditorUtility.Prefabs/ApplyPropertyChange): `M:PrefabInstanceData.ApplyPropertyChangeToPrefab(System.Object,System.String)`
- [`ConvertGameObjectToPrefab`](/api/Editor.EditorUtility.Prefabs/ConvertGameObjectToPrefab): Convert a GameObject to a prefab. This will write the newly created prefab to disk and set the prefab source on the GameObject. Returns the converted GameObject, which may be a clone of the original if it was part of a prefab instance, or null on failure.
- [`CreateAsset`](/api/Editor.EditorUtility.Prefabs/CreateAsset): Create a prefab out of any GameObject
- [`GetOuterMostPrefabName`](/api/Editor.EditorUtility.Prefabs/GetOuterMostPrefabName): Returns the name of the prefab file that this GameObject or Component is an instance of.
- [`GetTargets`](/api/Editor.EditorUtility.Prefabs/GetTargets): Get a SerializedProperty representing variable targets. Will return null if there are no targets
- [`GetTemplates`](/api/Editor.EditorUtility.Prefabs/GetTemplates): Fetches all prefab templates to show in Create GameObject menus
- [`GetVariables`](/api/Editor.EditorUtility.Prefabs/GetVariables)
- [`IsComponentAddedToInstance`](/api/Editor.EditorUtility.Prefabs/IsComponentAddedToInstance): `M:PrefabInstanceData.IsAddedComponent(Sandbox.Component)`
- [`IsComponentInstanceModified`](/api/Editor.EditorUtility.Prefabs/IsComponentInstanceModified): `M:PrefabInstanceData.IsComponentModified(Sandbox.Component)`
- [`IsComponentPartOfInstance`](/api/Editor.EditorUtility.Prefabs/IsComponentPartOfInstance): Returns true if the owning GameObject is part of a prefab instance.
- [`IsGameObjectAddedToInstance`](/api/Editor.EditorUtility.Prefabs/IsGameObjectAddedToInstance): `M:PrefabInstanceData.IsAddedGameObject(Sandbox.GameObject)`
- [`IsGameObjectInstanceModified`](/api/Editor.EditorUtility.Prefabs/IsGameObjectInstanceModified): `M:PrefabInstanceData.IsGameObjectModified(Sandbox.GameObject,System.Boolean)`
- [`IsInstanceModified`](/api/Editor.EditorUtility.Prefabs/IsInstanceModified): `M:PrefabInstanceData.IsModified`
- [`IsOuterMostPrefabRoot`](/api/Editor.EditorUtility.Prefabs/IsOuterMostPrefabRoot): Returns the name of the prefab file that this GameObject or Component is an instance of.
- [`IsPropertyOverridden`](/api/Editor.EditorUtility.Prefabs/IsPropertyOverridden): `M:PrefabInstanceData.IsPropertyOverridden(System.Object,System.String,System.Boolean)`
- [`RevertComponentInstanceChanges`](/api/Editor.EditorUtility.Prefabs/RevertComponentInstanceChanges): `M:PrefabInstanceData.RevertComponentChanges(Sandbox.Component)`
- [`RevertGameObjectInstanceChanges`](/api/Editor.EditorUtility.Prefabs/RevertGameObjectInstanceChanges): `M:PrefabInstanceData.RevertGameObjectChanges(Sandbox.GameObject)`
- [`RevertPropertyChange`](/api/Editor.EditorUtility.Prefabs/RevertPropertyChange): `M:PrefabInstanceData.RevertPropertyChange(System.Object,System.String)`
- [`WriteInstanceToPrefab`](/api/Editor.EditorUtility.Prefabs/WriteInstanceToPrefab): Write a prefab instance back to the prefab file and save it to disk.
