// Start is called before the first frame update void Start() { _transformRecorder = GetComponent <TransformRecorder>(); var cable = Instantiate(BonedObject, transform); _boneAnimater = cable.GetComponent <BoneAnimater>(); }
public RecordObject(TransformRecorder recorder, Transform transform) { this.name = ""; this.keyFrames = new List <KeyFrame>(); // this.recorder = recorder; this.transform = transform; if (this.transform != null) { this.name = this.transform.name; //this.trackedObject=this.transform.GetComponent<TrackedObject>(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); TransformRecorder target_ = target as TransformRecorder; EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Record")) { } if (GUILayout.Button("Play")) { } if (GUILayout.Button("Stop")) { } EditorGUILayout.EndHorizontal(); EditorGUILayout.Slider(target_.currentFrame, 0, target_.numFrames); }