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

Design Pattern Advice?

Discussion in '2D' started by wahaca, Oct 9, 2018.

  1. wahaca

    wahaca

    Joined:
    Oct 12, 2015
    Posts:
    5
    I've created a simple draw lines app. I use LineRenderer and add points as the mouse moves.

    I want to add two features:
    1. Add an undo feature that will undo the last line created.
    2. Add a play back feature that will let you watch your drawing being redrawn.


    So I'm not sure if I should try to design these into one recording system or if I should make it two separate systems.

    I actually have a lot of questions because I've never built an undo system, but I don't want to make this too confusing. Any advice you can offer would be appreciated.