UnityEditor.PrefabUtility.GetPropertyModifications C# (CSharp) Method

GetPropertyModifications() private method

private GetPropertyModifications ( Object targetPrefab ) : UnityEditor.PropertyModification[]
targetPrefab Object
return UnityEditor.PropertyModification[]
        public static extern PropertyModification[] GetPropertyModifications(Object targetPrefab);
        /// <summary>

Usage Example

 public static void OnOverridenPrefabsInspector(GameObject gameObject)
 {
     GUI.enabled = true;
     UnityEngine.Object prefabObject = PrefabUtility.GetPrefabObject(gameObject);
     if (prefabObject == null)
     {
         return;
     }
     EditorGUIUtility.labelWidth = 200f;
     if (PrefabUtility.GetPrefabType(gameObject) == PrefabType.PrefabInstance)
     {
         PropertyModification[] propertyModifications = PrefabUtility.GetPropertyModifications(gameObject);
         if (propertyModifications != null && propertyModifications.Length != 0)
         {
             GUI.changed = false;
             for (int i = 0; i < propertyModifications.Length; i++)
             {
                 propertyModifications[i].value = EditorGUILayout.TextField(propertyModifications[i].propertyPath, propertyModifications[i].value, new GUILayoutOption[0]);
             }
             if (GUI.changed)
             {
                 PrefabUtility.SetPropertyModifications(gameObject, propertyModifications);
             }
         }
     }
     PrefabInspector.AddComponentGUI(prefabObject);
 }
All Usage Examples Of UnityEditor.PrefabUtility::GetPropertyModifications