Time Rewizer  v.1.1
Created by: Mark Oostveen
MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow Class Reference
+ Inheritance diagram for MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow:
+ Collaboration diagram for MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow:

Public Member Functions

void Initialize (AnimationBaker baker)
 
void Initialize (T baker)
 Initialization method More...
 
void Record (T snapshot)
 Recording Method More...
 

Public Attributes

const string CACHENAME = "AnimationHierarchy"
 
const string DEFAULTNAME = "AnimationEditorWindow"
 

Package Functions

void CloseOverload ()
 

Package Attributes

AnimationBaker m_AttachedScript
 

Properties

Action Clear [set]
 Clear function callback from Custom editor script code More...
 
bool Initialized [get, set]
 
bool Recording [get, set]
 

Member Function Documentation

◆ CloseOverload()

void MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.CloseOverload ( )
package
158  {
159  Close();
160  }

◆ Initialize() [1/2]

void MarkOostveen.TimeRewizer.Editor.Baking.IBakeWindow< T >.Initialize ( baker)
inherited

Initialization method

Parameters
baker

◆ Initialize() [2/2]

void MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.Initialize ( AnimationBaker  baker)
42  {
43  GetScriptableObject();
44 
45  m_AttachedScript = baker;
46  m_AttachedGameObject = baker.gameObject;
47  m_AttachedScript.hideFlags = HideFlags.DontUnloadUnusedAsset;
48 
49  Recording = m_Settings.Recording;
50 
51  m_Settings.Active = true;
52 
53  m_Hierarchy = new AnimationEditorWindowNodeHierarchy();
54 
55  InitializeHierarchy();
56  if (m_Settings.m_RecordingData?.Count > 0 && m_Settings.Recording)
57  {
58  ExtractRecording();
59  }
60 
61  if (!Initialized)
62  {
63  EditorRewizeSystemUtility
64  .StartStopRecording<AnimationRewizer.Snapshot, AnimationEditorWindow, AnimationBaker,
65  AnimationRewizer>(this, m_AttachedGameObject);
66  }
67 
68  m_HierarchyEnabled = false;
69 
70  Initialized = true;
71  }

◆ Record()

void MarkOostveen.TimeRewizer.Editor.Baking.IRecorder< T >.Record ( snapshot)
inherited

Recording Method

Parameters
snapshot

Member Data Documentation

◆ CACHENAME

const string MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.CACHENAME = "AnimationHierarchy"

◆ DEFAULTNAME

const string MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.DEFAULTNAME = "AnimationEditorWindow"

◆ m_AttachedScript

AnimationBaker MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.m_AttachedScript
package

Property Documentation

◆ Clear

Action MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.Clear
set

Clear function callback from Custom editor script code

33 { private get; set; }

◆ Initialized

bool MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.Initialized
getset
39 { get; set; }

◆ Recording

bool MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindow.Recording
getset
79 { get; set; }