Class GorgonAnimationExtensions
Extension methods for IO on animation objects.
Inherited Members
Namespace: Gorgon.IO
Assembly: Gorgon.IO.Gorgon2D.dll
Syntax
public static class GorgonAnimationExtensions
Methods
| Edit this page View SourceToJson(IGorgonAnimation, bool)
Function to convert a IGorgonAnimation to a JSON string.
Declaration
public static string ToJson(this IGorgonAnimation animation, bool prettyFormat = false)
Parameters
Type | Name | Description |
---|---|---|
IGorgonAnimation | animation | The animation to convert. |
bool | prettyFormat | [Optional] true to use pretty formatting for the string, or false to use a compact form. |
Returns
Type | Description |
---|---|
string | The animation encoded as a JSON string. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |