diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-12-02 18:09:19 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-05-19 14:34:27 -0500 |
commit | 5dc3bfb80e84cdb1861f0d5900dc086b04e1e101 (patch) | |
tree | f764c3da29e924a8ff60504fefe252276bc5224e /scene/resources/capsule_shape_3d.cpp | |
parent | 920ca6252888489ca72647ad8d5ef721d5e5e686 (diff) |
Use suffixes for units in nodes and resources
Diffstat (limited to 'scene/resources/capsule_shape_3d.cpp')
-rw-r--r-- | scene/resources/capsule_shape_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/capsule_shape_3d.cpp b/scene/resources/capsule_shape_3d.cpp index d708706ff2..214004824f 100644 --- a/scene/resources/capsule_shape_3d.cpp +++ b/scene/resources/capsule_shape_3d.cpp @@ -113,8 +113,8 @@ void CapsuleShape3D::_bind_methods() { ClassDB::bind_method(D_METHOD("set_height", "height"), &CapsuleShape3D::set_height); ClassDB::bind_method(D_METHOD("get_height"), &CapsuleShape3D::get_height); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "radius", PROPERTY_HINT_RANGE, "0.001,100,0.001,or_greater"), "set_radius", "get_radius"); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "height", PROPERTY_HINT_RANGE, "0.001,100,0.001,or_greater"), "set_height", "get_height"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "radius", PROPERTY_HINT_RANGE, "0.001,100,0.001,or_greater,suffix:m"), "set_radius", "get_radius"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "height", PROPERTY_HINT_RANGE, "0.001,100,0.001,or_greater,suffix:m"), "set_height", "get_height"); ADD_LINKED_PROPERTY("radius", "height"); ADD_LINKED_PROPERTY("height", "radius"); } |