Exemplo n.º 1
0
        internal static void RevertPrefabAddedComponent(object userData)
        {
            Component obj = (Component)userData;

            PrefabUtility.RevertAddedComponent(obj, InteractionMode.UserAction);
            EditorUtility.ForceReloadInspectors();
        }