Expose Curve points in the inspector
Exposes the Curve, Curve2D and Curve3D points as an array property.
This commit is contained in:
parent
0ba0d51c9e
commit
a9a41df0c8
5 changed files with 280 additions and 19 deletions
|
|
@ -55,12 +55,6 @@
|
|||
[code]to_point[/code] must be in this curve's local space.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
Returns the number of points describing the curve.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_in" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<argument index="0" name="idx" type="int" />
|
||||
|
|
@ -155,5 +149,8 @@
|
|||
<member name="bake_interval" type="float" setter="set_bake_interval" getter="get_bake_interval" default="5.0">
|
||||
The distance in pixels between two adjacent cached points. Changing it forces the cache to be recomputed the next time the [method get_baked_points] or [method get_baked_length] function is called. The smaller the distance, the more points in the cache and the more memory it will consume, so use with care.
|
||||
</member>
|
||||
<member name="point_count" type="int" setter="set_point_count" getter="get_point_count" default="0">
|
||||
The number of points describing the curve.
|
||||
</member>
|
||||
</members>
|
||||
</class>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue