mirror of
https://github.com/godotengine/godot
synced 2024-09-05 17:40:22 +00:00
![Hugo Locurcio](/assets/img/avatar_default.png)
This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
18 lines
812 B
XML
18 lines
812 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="Path2D" inherits="Node2D" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
|
<brief_description>
|
|
Contains a [Curve2D] path for [PathFollow2D] nodes to follow.
|
|
</brief_description>
|
|
<description>
|
|
Can have [PathFollow2D] child nodes moving along the [Curve2D]. See [PathFollow2D] for more information on usage.
|
|
[b]Note:[/b] The path is considered as relative to the moved nodes (children of [PathFollow2D]). As such, the curve should usually start with a zero vector ([code](0, 0)[/code]).
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<members>
|
|
<member name="curve" type="Curve2D" setter="set_curve" getter="get_curve">
|
|
A [Curve2D] describing the path.
|
|
</member>
|
|
</members>
|
|
</class>
|