Files

19 lines
738 B
C#

using UnityEngine;
namespace Unity.Cinemachine
{
/// <summary>
/// Invoke play-mode-save for a class. This class's fields will be scanned
/// upon exiting play mode, and its property values will be applied to the scene object.
/// This is a stopgap measure that will become obsolete once Unity implements
/// play-mode-save in a more general way.
/// </summary>
public sealed class SaveDuringPlayAttribute : System.Attribute {}
/// <summary>
/// Suppresses play-mode-save for a field. Use it if the calsee has [SaveDuringPlay]
/// attribute but there are fields in the class that shouldn't be saved.
/// </summary>
public sealed class NoSaveDuringPlayAttribute : PropertyAttribute {}
}