Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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