docs.unity3d.com
    Show / Hide Table of Contents

    Namespace SaveDuringPlay

    Classes

    SaveDuringPlay

    For all registered object types, record their state when exiting Play Mode, and restore that state to the objects in the scene. This is a very limited implementation which has not been rigorously tested with many objects types. It's quite possible that not everything will be saved.

    This class is expected to become obsolete when Unity implements this functionality in a more general way.

    To use this functionality in your own scripts, add the [SaveDuringPlay] attribute to your class.

    Note: if you want some specific field in your class NOT to be saved during play, add a property attribute whose class name contains the string "NoSaveDuringPlay" and the field will not be saved.

    Delegates

    SaveDuringPlay.OnHotSaveDelegate

    Delegate for HotSave notification

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023