Version: 2023.1

ConvertToPrefabInstanceSettings.componentsNotMatchedBecomesOverride

切换到手册
public bool componentsNotMatchedBecomesOverride ;

描述

If a Component is not matched up then it can become an added Component on the new Prefab instance. This property is only used when used together with ObjectMatchMode.ByHierarchy.

If this property is false then the Component will be deleted if it doesn't match a Component on the PrefabAsset. See Also: gameObjectsNotMatchedBecomesOverride, recordPropertyOverridesOfMatches.