-
Notifications
You must be signed in to change notification settings - Fork 4
Expanding Record Components
Every segment of the system can be expanded, from the components, right down to the individual frames that are being recorded. Make sure you expand off the base data structures and everything should be saved as long as the data can be serialised. You should not have to manually add the code to the system, it should all automatically understand what it is as long as it resides in your project with PlayRecorder.
- For a good example of how to expand
RecordComponents
, with both recording and playback changes, refer to theTransformRecordComponent
. - For a good example of how to expand
RecordItem
,RecordPart
, andRecordFrame
, refer to theHands
script inside ofData
. - A simple
Stopwatch
editor window example is included to show how to hook into the PlaybackManager for playback analytics. TheTimeline
tool also provides a good, more fleshed out example.
As a general rule of thumb you shouldn't need to create many new forms of frames, however you will more than likely want to create new RecordItem
objects to help store default, unchanged settings for objects. If you want to store settings for your object that change during recording, store them as a RecordPart
at the beginning of your parts array within your RecordItem
, this will allow for dynamic variables to be appended to it.
There are a set of base frames that allow for Bool, Int, Float, Vector3, etc. data types, rather than having to recreate your own basic frames each time.