자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
internal static void ApplyPrefabAddedComponent(object userData) { ObjectInstanceAndSourcePathInfo info = (ObjectInstanceAndSourcePathInfo)userData; if (!PrefabUtility.PromptAndCheckoutPrefabIfNeeded(info.assetPath, PrefabUtility.SaveVerb.Apply)) { return; } PrefabUtility.ApplyAddedComponent((Component)info.instanceObject, info.assetPath, InteractionMode.UserAction); EditorUtility.ForceReloadInspectors(); }