Version: 2023.2

PrefabReplacingSettings

class in UnityEditor

切换到手册

描述

Settings controlling the behavior of PrefabUtility.ReplacePrefabAssetOfPrefabInstance.

变量

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.