GLTFAnimation.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="GLTFAnimation" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. </description>
  7. <tutorials>
  8. <link title="Runtime file loading and saving">$DOCS_URL/tutorials/io/runtime_file_loading_and_saving.html</link>
  9. </tutorials>
  10. <methods>
  11. <method name="get_additional_data">
  12. <return type="Variant" />
  13. <param index="0" name="extension_name" type="StringName" />
  14. <description>
  15. Gets additional arbitrary data in this [GLTFAnimation] instance. This can be used to keep per-node state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
  16. The argument should be the [GLTFDocumentExtension] name (does not have to match the extension name in the glTF file), and the return value can be anything you set. If nothing was set, the return value is [code]null[/code].
  17. </description>
  18. </method>
  19. <method name="set_additional_data">
  20. <return type="void" />
  21. <param index="0" name="extension_name" type="StringName" />
  22. <param index="1" name="additional_data" type="Variant" />
  23. <description>
  24. Sets additional arbitrary data in this [GLTFAnimation] instance. This can be used to keep per-node state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
  25. The first argument should be the [GLTFDocumentExtension] name (does not have to match the extension name in the glTF file), and the second argument can be anything you want.
  26. </description>
  27. </method>
  28. </methods>
  29. <members>
  30. <member name="loop" type="bool" setter="set_loop" getter="get_loop" default="false">
  31. </member>
  32. <member name="original_name" type="String" setter="set_original_name" getter="get_original_name" default="&quot;&quot;">
  33. The original name of the animation.
  34. </member>
  35. </members>
  36. </class>