Latest revision as of 16:24, 1 February 2014

Iterates Over The Selected Prefabs/All Prefabs In Project Folder and Select each one of them.Waits 1 UnityEditor frame between each select to let Unity render the GUI and update the Components if necessary.After selecting all the Prefabs script Applies all prefabs and if Project mode is selected removes all of the created instances from the Hierarchy.

Beaware : I have created this code piece for my Project and i am not planning to Support it.(I might update it as i develop it further if my project requires so.)

Beaware 2 : I haven't really optimized it so this is not the most optimized way of doing that(But worked well for my needs).It might contain bugs but nothing major.

You must place the script in a folder named Editor in your project's Assets folder for it to work properly.

Navigate to "Custom/Nidre/Select Objects Iter. In Scene" from the Unity Menu Bar to Iterate over the selected GameObject(s)(Prefabs).[This might also work work non Prefab objects but did'nt tried.Try at your own risk.]

Navigate to "Custom/Nidre/Select Objects Iter. In Project" from the Unity Menu Bar to Iterate over all All Prefabs in the project folder.