Class SaveVarAttribute
Only the fields and properties marked with this attribute will be saved and loaded when serialized / deserialized by DewPersistence.SerializeGameObject / DeserializeOnGameObject.
Inheritance
object
System.Attribute
SaveVarAttribute
Namespace: Global
Assembly: Dew.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Property|AttributeTargets.Field)]
public class SaveVarAttribute : Attribute
Constructors
SaveVarAttribute(SaveVarFlags)
Declaration
public SaveVarAttribute(SaveVarFlags flags = SaveVarFlags.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| SaveVarFlags | flags |
Fields
flags
Declaration
public readonly SaveVarFlags flags
Field Value
| Type | Description |
|---|---|
| SaveVarFlags |