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

getting C# properties to work with Undo.RecordObject

Discussion in 'Scripting' started by AVOlight, Oct 20, 2014.

  1. AVOlight

    AVOlight

    Joined:
    Apr 15, 2014
    Posts:
    427
    is there a way to do this?
     
  2. billykater

    billykater

    Joined:
    Mar 12, 2011
    Posts:
    329
    Not directly, The undo/redo functionality is based around the unity serialization system so everything it can do the undo system can undo. Either use fields which are serialized and accessed only from your properties or use ISerializationCallbackReceiver to do more complex serialization.
     
    AVOlight likes this.
  3. AVOlight

    AVOlight

    Joined:
    Apr 15, 2014
    Posts:
    427
    Thank you,
    Trying to animate points that are offset other points