Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


recordPropertyOverridesOfMatches

When a Component or GameObject is matched with objects in the Prefab Asset then existing values can be recorded as overrides on the new Prefab instance if this property is set to true.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public bool recordPropertyOverridesOfMatches { get; set; }

Remarks

If the values from the Prefab Asset is wanted instead then set this property to false. Additional Resources: ConvertToPrefabInstanceSettings.componentsNotMatchedBecomesOverride, ConvertToPrefabInstanceSettings.gameObjectsNotMatchedBecomesOverride.