通常 [MenuItem( "Tools/Hoge" )] private static void Hoge() { var assetPath = ""; var prefabRoot = PrefabUtility.LoadPrefabContents( assetPath ); foreach ( var x in prefabRoot.GetComponentsInChildren<SpriteRenderer>() ) { Object.DestroyImmediate( x ); } PrefabUtility.SaveAsPrefabAsset( prefabRoot, asse…</spriterenderer>