C# Класс FullInspector.BackupService.fiBackupManager

The central API that end-users might be interested in. Provides key functions such as creating a new backup and restoring an old one.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateBackup ( Component behavior ) : void

Creates a new backup of the given component. Only guaranteed to work for types that derive from CommonBaseBehavior, but there is a good chance it'll work for most/all types derived from Component.

GetBackupsFor ( CommonBaseBehavior behavior ) : IEnumerable

Returns all backups for the given object.

RestoreBackup ( fiSerializedObject serializedState ) : void

Restores a backup that was previously created.

Приватные методы

Метод Описание
Serialize ( Component target ) : fiSerializedObject

Creates a serialized object from the given component.

ShouldIgnoreForPersist ( FullInspector.Internal.InspectedProperty property ) : bool

Helper function that just ignores a few FI internal types for serialization since the backup solution serializes all inspected properties, not just those that are serialized

Описание методов

CreateBackup() публичный статический Метод

Creates a new backup of the given component. Only guaranteed to work for types that derive from CommonBaseBehavior, but there is a good chance it'll work for most/all types derived from Component.
public static CreateBackup ( Component behavior ) : void
behavior UnityEngine.Component
Результат void

GetBackupsFor() публичный статический Метод

Returns all backups for the given object.
public static GetBackupsFor ( CommonBaseBehavior behavior ) : IEnumerable
behavior CommonBaseBehavior
Результат IEnumerable

RestoreBackup() публичный статический Метод

Restores a backup that was previously created.
public static RestoreBackup ( fiSerializedObject serializedState ) : void
serializedState fiSerializedObject
Результат void