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

Package Functions

void Initialize (AnimationBaker.NodeProperties properties)
 
void Update ()
 

Properties

bool Initialized [get]
 

Member Function Documentation

◆ Initialize()

void MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindowNodeProperties.Initialize ( AnimationBaker.NodeProperties  properties)
package
14  {
15  m_Properties = properties;
16  Initialized = true;
17  }
+ Here is the caller graph for this function:

◆ Update()

void MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindowNodeProperties.Update ( )
package
20  {
21  if (Initialized)
22  {
23  m_Properties.m_TransitionDuration = EditorGUILayout.IntField(
24  new GUIContent("Transition Duration", "Snapshots Between This and the next node"),
25  Mathf.RoundToInt(m_Properties.m_TransitionDuration));
26 
27  GUILayout.Space(5);
28  GUILayout.Label("Animation Parameters");
29 
30  for (int i = 0; i < m_Properties.m_Parameters.Length; i++)
31  {
32  GUILayout.BeginHorizontal();
33  GUILayout.Label(m_Properties.m_Parameters[i].m_Name);
34 
35  switch (m_Properties.m_Parameters[i].m_Type)
36  {
37  case AnimatorControllerParameterType.Bool:
38  m_Properties.m_Parameters[i].m_BoolValue =
39  EditorGUILayout.Toggle(m_Properties.m_Parameters[i].m_BoolValue);
40  break;
41 
42  case AnimatorControllerParameterType.Float:
43  m_Properties.m_Parameters[i].m_FloatValue =
44  EditorGUILayout.FloatField(m_Properties.m_Parameters[i].m_FloatValue);
45  break;
46 
47  case AnimatorControllerParameterType.Int:
48  m_Properties.m_Parameters[i].m_IntValue =
49  EditorGUILayout.IntField(m_Properties.m_Parameters[i].m_IntValue);
50  break;
51  }
52 
53  GUILayout.EndHorizontal();
54  }
55 
56  EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
57  }
58  }
+ Here is the caller graph for this function:

Property Documentation

◆ Initialized

bool MarkOostveen.TimeRewizer.Editor.Baking.AnimationEditorWindowNodeProperties.Initialized
get
11 { get; private set; }