Class InputAnimationSerializationUtils
Functions for serializing input animation data to and from binary files.
Inheritance
InputAnimationSerializationUtils
Assembly: cs.temp.dll.dll
public static class InputAnimationSerializationUtils
Fields
Declaration
public const string Extension = "bin"
Field Value
Declaration
public const int VersionMajor = 1
Field Value
Declaration
public const int VersionMinor = 1
Field Value
Methods
Generate a file name for export.
Declaration
public static string GetOutputFilename(string baseName = "InputAnimation", bool appendTimestamp = true)
Parameters
Returns
Deserialize an animation curve from binary data, ignoring tangents.
Declaration
public static void ReadBoolCurve(BinaryReader reader, AnimationCurve curve)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
AnimationCurve |
curve |
|
Deserialize an array of animation curves from binary data, ignoring tangents.
Declaration
public static void ReadBoolCurveArray(BinaryReader reader, AnimationCurve[] curves)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
AnimationCurve[] |
curves |
|
Deserialize an animation curve with tangents from binary data.
Declaration
public static void ReadFloatCurve(BinaryReader reader, AnimationCurve curve)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
AnimationCurve |
curve |
|
Deserialize an array of animation curves with tangents from binary data.
Declaration
public static void ReadFloatCurveArray(BinaryReader reader, AnimationCurve[] curves)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
AnimationCurve[] |
curves |
|
Deserialize an animation curve with tangents from binary data. Only decodes keyframe position and time.
Declaration
public static void ReadFloatCurveSimple(BinaryReader reader, AnimationCurve curve)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
AnimationCurve |
curve |
|
Write a header for the input animation file format into the stream.
Declaration
public static void ReadHeader(BinaryReader reader, out int fileVersionMajor, out int fileVersionMinor)
Parameters
Type |
Name |
Description |
BinaryReader |
reader |
|
Int32 |
fileVersionMajor |
|
Int32 |
fileVersionMinor |
|
Deserialize a list of markers.
Declaration
public static void ReadMarkerList(BinaryReader reader, List<InputAnimationMarker> markers)
Parameters
Serialize an animation curve as binary data, ignoring tangents.
Declaration
public static void WriteBoolCurve(BinaryWriter writer, AnimationCurve curve, float startTime)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
AnimationCurve |
curve |
|
Single |
startTime |
|
Serialize an array of animation curves as binary data, ignoring tangents.
Declaration
public static void WriteBoolCurveArray(BinaryWriter writer, AnimationCurve[] curves, float startTime)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
AnimationCurve[] |
curves |
|
Single |
startTime |
|
Serialize an animation curve with tangents as binary data.
Declaration
public static void WriteFloatCurve(BinaryWriter writer, AnimationCurve curve, float startTime)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
AnimationCurve |
curve |
|
Single |
startTime |
|
Serialize an array of animation curves with tangents as binary data.
Declaration
public static void WriteFloatCurveArray(BinaryWriter writer, AnimationCurve[] curves, float startTime)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
AnimationCurve[] |
curves |
|
Single |
startTime |
|
Serialize an animation curve with tangents as binary data. Only encodes keyframe position and time.
Declaration
public static void WriteFloatCurveSimple(BinaryWriter writer, AnimationCurve curve, float startTime)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
AnimationCurve |
curve |
|
Single |
startTime |
|
Write a header for the input animation file format into the stream.
Declaration
public static void WriteHeader(BinaryWriter writer)
Parameters
Type |
Name |
Description |
BinaryWriter |
writer |
|
Serialize a list of markers.
Declaration
public static void WriteMarkerList(BinaryWriter writer, List<InputAnimationMarker> markers, float startTime)
Parameters