I want to apply my prefab instance modification by script,anyway ,I want to checkout whether any modication existed first.
I look up the api about prefab modification and found this one.But I dont know if it is the right one or the best…
I want to apply my prefab instance modification by script,anyway ,I want to checkout whether any modication existed first.
I look up the api about prefab modification and found this one.But I dont know if it is the right one or the best…
Hi Bagazi! You can use Unity - Scripting API: PrefabUtility.HasPrefabInstanceAnyOverrides to check if a Prefab instance has any overrides.
Please note that Unity - Scripting API: PrefabUtility.GetPropertyModifications is just a subset of possible Prefab Instance overrides. A Prefab Instance can also have removed components or added game objects/components.