Documentation

Unity Engine

Unity Engine

PrefabReplacingSettings

Settings controlling the behavior of PrefabUtility.ReplacePrefabAssetOfPrefabInstance.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public class PrefabReplacingSettings

Properties

Property

Description

changeRootNameToAssetNameChange the name of the root GameObject to match the name of the Prefab Asset used when replacing the Prefab Asset of a Prefab instance.
logInfoSetting this to true will log details about the replacement to the Console.
objectMatchModeUse this property to control if GameObjects and Components should be matched up when replacing the Prefab Asset of an Prefab instance.
prefabOverridesOptionsThis property controls which type of overrides are attemped to be kept when replacing the Prefab Asset of an Prefab instance.