Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Simulations in EditorWindow

Discussion in 'Immediate Mode GUI (IMGUI)' started by keeperkai2, Nov 11, 2013.

  1. keeperkai2

    keeperkai2

    Joined:
    Oct 26, 2012
    Posts:
    14
    I'm trying to develop something like the simulations of particles in unity(except it's not for particles, it's for gameobjects), I change the Transforms property of objects in the scene in my EditorWindow( at edit time, not play time, using Time.realTimeSinceStartup), the problem is... I don't know how to change the Transforms of the objects back to it's initial state when the user closes the window/pushes play/clicks on some other component, to be more specific, I don't know where I should put my code to revert the gameobjects' transforms to their initial state.
     
  2. dodo

    dodo

    Joined:
    Jul 13, 2011
    Posts:
    49
unityunity