This is the old Animancer v7.4 documentation. Click here for the latest version.

SerializedComponentDataEditorWindow<TObject, TData> Class

Summary

[Editor-Only] A Animancer.Editor.SerializedDataEditorWindow`2 for UnityEngine.Components.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
Derived Types
SerializedComponentDataEditorWindow
SerializedDataEditorWindow
EditorWindow

Syntax

public abstract class SerializedComponentDataEditorWindow<TObject, TData> : 
    SerializedDataEditorWindow<TObject, TData>
    where TObject : Component where TData : class, ICopyable<TData>, IEquatable<TData>, new()

Type Parameters

Name Description
TObject
TData

Properties

Name Value Summary
SourceObject TObject
The object which contains the data this class manages.
SourceObjectMightBePrefab bool
Override this to return true if the Animancer.Editor.SerializedDataEditorWindow`2.SourceObject could be part of a prefab to ensure that modifications are serialized properly.

Methods

Name Value Summary
SetAndCaptureSource(TObject) void
Sets the Animancer.Editor.SerializedDataEditorWindow`2.SourceObject and captures the Animancer.Editor.SerializedDataEditorWindow`2.Data as a copy of its Animancer.Editor.SerializedDataEditorWindow`2.SourceData.