forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svg: add lottie resource loader importer using thorvg
add lottie importer to import lottie as CompressedTexture2D, and support drop it as AnimatedSprite2D in editor
- Loading branch information
Showing
126 changed files
with
30,048 additions
and
1,338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<class name="ResourceImporterLottie" inherits="ResourceImporter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> | ||
<brief_description> | ||
Import a Lottie animation as a sprite sheet. | ||
</brief_description> | ||
<description> | ||
This imports a Lottie animation to a [CompressedTexture2D]. See also [ResourceImporterTexture]. | ||
[b]Note:[/b] Both JSON and dotLottie (extra resources are ignored) are supported. Only files with the [code].lottie[/code] extension are recognized. You will have to rename the JSON file extension to [code].lottie[/code] to import it. | ||
</description> | ||
<tutorials> | ||
</tutorials> | ||
<members> | ||
<member name="compress/channel_pack" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="compress/hdr_compression" type="int" setter="" getter="" default="1"> | ||
</member> | ||
<member name="compress/high_quality" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="compress/lossy_quality" type="float" setter="" getter="" default="0.7"> | ||
</member> | ||
<member name="compress/mode" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="compress/normal_map" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="detect_3d/compress_to" type="int" setter="" getter="" default="1"> | ||
</member> | ||
<member name="editor/convert_colors_with_editor_theme" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="editor/scale_with_editor_scale" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="lottie/begin" type="float" setter="" getter="" default="0"> | ||
</member> | ||
<member name="lottie/columns" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="lottie/end" type="float" setter="" getter="" default="1"> | ||
</member> | ||
<member name="lottie/fps" type="float" setter="" getter="" default="30"> | ||
</member> | ||
<member name="lottie/scale" type="float" setter="" getter="" default="1"> | ||
</member> | ||
<member name="lottie/size_limit" type="int" setter="" getter="" default="2048"> | ||
</member> | ||
<member name="mipmaps/generate" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="mipmaps/limit" type="int" setter="" getter="" default="-1"> | ||
</member> | ||
<member name="process/fix_alpha_border" type="bool" setter="" getter="" default="true"> | ||
</member> | ||
<member name="process/hdr_as_srgb" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="process/hdr_clamp_exposure" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="process/normal_map_invert_y" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="process/premult_alpha" type="bool" setter="" getter="" default="false"> | ||
</member> | ||
<member name="process/size_limit" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="roughness/mode" type="int" setter="" getter="" default="0"> | ||
</member> | ||
<member name="roughness/src_normal" type="String" setter="" getter="" default=""""> | ||
</member> | ||
<member name="svg/scale" type="float" setter="" getter="" default="1.0"> | ||
</member> | ||
</members> | ||
</class> |
Oops, something went wrong.