I’m new to unity,so if here has any problem please forgive me。
I’m working a plugin about auto building player for different channel,so that i need to change game object in scene to fitting different platform。But the question here is i change or maybe delete game object before building,and when it finish,the game object should revert to original state。I try Undo.RegisterCompleteObjectUndo()
and Undo.PerformUndo()
,but it dosen’t work。I guess maybe the undo stack was flush after building player。Is it possible to make it scene? or how can i did it in other way?thanks。