doc: Complete and harmonize all _MAX constant descriptions

This commit is contained in:
Rémi Verschelde 2019-06-27 11:10:53 +02:00
parent 755b589384
commit 86ed7a9884
36 changed files with 96 additions and 51 deletions

View File

@ -968,7 +968,7 @@
Joypad Button 15 Joypad Button 15
</constant> </constant>
<constant name="JOY_BUTTON_MAX" value="16" enum="JoystickList"> <constant name="JOY_BUTTON_MAX" value="16" enum="JoystickList">
Joypad Button 16 Represents the maximum number of joystick buttons supported.
</constant> </constant>
<constant name="JOY_SONY_CIRCLE" value="1" enum="JoystickList"> <constant name="JOY_SONY_CIRCLE" value="1" enum="JoystickList">
DUALSHOCK circle button DUALSHOCK circle button
@ -1090,6 +1090,7 @@
<constant name="JOY_AXIS_9" value="9" enum="JoystickList"> <constant name="JOY_AXIS_9" value="9" enum="JoystickList">
</constant> </constant>
<constant name="JOY_AXIS_MAX" value="10" enum="JoystickList"> <constant name="JOY_AXIS_MAX" value="10" enum="JoystickList">
Represents the maximum number of joystick axes supported.
</constant> </constant>
<constant name="JOY_ANALOG_LX" value="0" enum="JoystickList"> <constant name="JOY_ANALOG_LX" value="0" enum="JoystickList">
Joypad Left Stick Horizontal Axis Joypad Left Stick Horizontal Axis
@ -1449,7 +1450,7 @@
Variable is of type [PoolColorArray]. Variable is of type [PoolColorArray].
</constant> </constant>
<constant name="TYPE_MAX" value="27" enum="Variant.Type"> <constant name="TYPE_MAX" value="27" enum="Variant.Type">
Marker for end of type constants. Represents the size of the [enum Variant.Type] enum.
</constant> </constant>
<constant name="OP_EQUAL" value="0" enum="Variant.Operator"> <constant name="OP_EQUAL" value="0" enum="Variant.Operator">
</constant> </constant>
@ -1502,6 +1503,7 @@
<constant name="OP_IN" value="24" enum="Variant.Operator"> <constant name="OP_IN" value="24" enum="Variant.Operator">
</constant> </constant>
<constant name="OP_MAX" value="25" enum="Variant.Operator"> <constant name="OP_MAX" value="25" enum="Variant.Operator">
Represents the size of the [enum Variant.Operator] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -225,6 +225,7 @@
For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line. For triangles, the index array is interpreted as triples, referring to the vertices of each triangle. For lines, the index array is in pairs indicating the start and end of each line.
</constant> </constant>
<constant name="ARRAY_MAX" value="9" enum="ArrayType"> <constant name="ARRAY_MAX" value="9" enum="ArrayType">
Represents the size of the [enum ArrayType] enum.
</constant> </constant>
<constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat"> <constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat">
Array format will include vertices (mandatory). Array format will include vertices (mandatory).

View File

@ -32,6 +32,7 @@
<constant name="FFT_SIZE_4096" value="4" enum="FFT_Size"> <constant name="FFT_SIZE_4096" value="4" enum="FFT_Size">
</constant> </constant>
<constant name="FFT_SIZE_MAX" value="5" enum="FFT_Size"> <constant name="FFT_SIZE_MAX" value="5" enum="FFT_Size">
Represents the size of the [enum FFT_Size] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -28,6 +28,7 @@
<constant name="FFT_SIZE_4096" value="4" enum="FFT_Size"> <constant name="FFT_SIZE_4096" value="4" enum="FFT_Size">
</constant> </constant>
<constant name="FFT_SIZE_MAX" value="5" enum="FFT_Size"> <constant name="FFT_SIZE_MAX" value="5" enum="FFT_Size">
Represents the size of the [enum FFT_Size] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -22,8 +22,10 @@
</methods> </methods>
<constants> <constants>
<constant name="MAGNITUDE_AVERAGE" value="0" enum="MagnitudeMode"> <constant name="MAGNITUDE_AVERAGE" value="0" enum="MagnitudeMode">
Use the average value as magnitude.
</constant> </constant>
<constant name="MAGNITUDE_MAX" value="1" enum="MagnitudeMode"> <constant name="MAGNITUDE_MAX" value="1" enum="MagnitudeMode">
Use the maximum value as magnitude.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -25,7 +25,7 @@
</member> </member>
<member name="swing_span" type="float" setter="_set_swing_span" getter="_get_swing_span"> <member name="swing_span" type="float" setter="_set_swing_span" getter="_get_swing_span">
Swing is rotation from side to side, around the axis perpendicular to the twist axis. Swing is rotation from side to side, around the axis perpendicular to the twist axis.
The swing span defines, how much rotation will not get corrected allong the swing axis. The swing span defines, how much rotation will not get corrected along the swing axis.
Could be defined as looseness in the [ConeTwistJoint]. Could be defined as looseness in the [ConeTwistJoint].
If below 0.05, this behavior is locked. Default value: [code]PI/4[/code]. If below 0.05, this behavior is locked. Default value: [code]PI/4[/code].
</member> </member>
@ -37,7 +37,7 @@
<constants> <constants>
<constant name="PARAM_SWING_SPAN" value="0" enum="Param"> <constant name="PARAM_SWING_SPAN" value="0" enum="Param">
Swing is rotation from side to side, around the axis perpendicular to the twist axis. Swing is rotation from side to side, around the axis perpendicular to the twist axis.
The swing span defines, how much rotation will not get corrected allong the swing axis. The swing span defines, how much rotation will not get corrected along the swing axis.
Could be defined as looseness in the [ConeTwistJoint]. Could be defined as looseness in the [ConeTwistJoint].
If below 0.05, this behavior is locked. Default value: [code]PI/4[/code]. If below 0.05, this behavior is locked. Default value: [code]PI/4[/code].
</constant> </constant>
@ -56,7 +56,7 @@
Defines, how fast the swing- and twist-speed-difference on both sides gets synced. Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
</constant> </constant>
<constant name="PARAM_MAX" value="5" enum="Param"> <constant name="PARAM_MAX" value="5" enum="Param">
End flag of PARAM_* constants, used internally. Represents the size of the [enum Param] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -124,6 +124,7 @@
<constant name="FEATURE_FILESYSTEM_DOCK" value="6" enum="Feature"> <constant name="FEATURE_FILESYSTEM_DOCK" value="6" enum="Feature">
</constant> </constant>
<constant name="FEATURE_MAX" value="7" enum="Feature"> <constant name="FEATURE_MAX" value="7" enum="Feature">
Represents the size of the [enum Feature] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -546,6 +546,7 @@
<constant name="DOCK_SLOT_RIGHT_BR" value="7" enum="DockSlot"> <constant name="DOCK_SLOT_RIGHT_BR" value="7" enum="DockSlot">
</constant> </constant>
<constant name="DOCK_SLOT_MAX" value="8" enum="DockSlot"> <constant name="DOCK_SLOT_MAX" value="8" enum="DockSlot">
Represents the size of the [enum DockSlot] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -273,7 +273,7 @@
Display a camera feed in the background. Display a camera feed in the background.
</constant> </constant>
<constant name="BG_MAX" value="7" enum="BGMode"> <constant name="BG_MAX" value="7" enum="BGMode">
Helper constant keeping track of the enum's size, has no direct usage in API calls. Represents the size of the [enum BGMode] enum.
</constant> </constant>
<constant name="GLOW_BLEND_MODE_ADDITIVE" value="0" enum="GlowBlendMode"> <constant name="GLOW_BLEND_MODE_ADDITIVE" value="0" enum="GlowBlendMode">
Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources. Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.

View File

@ -57,6 +57,7 @@
<constant name="SUBDIV_512" value="3" enum="Subdiv"> <constant name="SUBDIV_512" value="3" enum="Subdiv">
</constant> </constant>
<constant name="SUBDIV_MAX" value="4" enum="Subdiv"> <constant name="SUBDIV_MAX" value="4" enum="Subdiv">
Represents the size of the [enum Subdiv] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -293,7 +293,7 @@
Maximum acceleration for the motor at the axes. Maximum acceleration for the motor at the axes.
</constant> </constant>
<constant name="PARAM_MAX" value="22" enum="Param"> <constant name="PARAM_MAX" value="22" enum="Param">
End flag of PARAM_* constants, used internally. Represents the size of the [enum Param] enum.
</constant> </constant>
<constant name="FLAG_ENABLE_LINEAR_LIMIT" value="0" enum="Flag"> <constant name="FLAG_ENABLE_LINEAR_LIMIT" value="0" enum="Flag">
If [code]set[/code] there is linear motion possible within the given limits. If [code]set[/code] there is linear motion possible within the given limits.
@ -311,7 +311,7 @@
<constant name="FLAG_ENABLE_LINEAR_MOTOR" value="5" enum="Flag"> <constant name="FLAG_ENABLE_LINEAR_MOTOR" value="5" enum="Flag">
</constant> </constant>
<constant name="FLAG_MAX" value="6" enum="Flag"> <constant name="FLAG_MAX" value="6" enum="Flag">
End flag of FLAG_* constants, used internally. Represents the size of the [enum Flag] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -15,13 +15,13 @@
<argument index="0" name="aabb" type="AABB"> <argument index="0" name="aabb" type="AABB">
</argument> </argument>
<description> <description>
Overrides the bounding box of this node with a custom one. To remove it, set an AABB with all fields set to zero. Overrides the bounding box of this node with a custom one. To remove it, set an [AABB] with all fields set to zero.
</description> </description>
</method> </method>
</methods> </methods>
<members> <members>
<member name="cast_shadow" type="int" setter="set_cast_shadows_setting" getter="get_cast_shadows_setting" enum="GeometryInstance.ShadowCastingSetting"> <member name="cast_shadow" type="int" setter="set_cast_shadows_setting" getter="get_cast_shadows_setting" enum="GeometryInstance.ShadowCastingSetting">
The selected shadow casting flag. See SHADOW_CASTING_SETTING_* constants for values. The selected shadow casting flag. See [enum ShadowCastingSetting] for possible values.
</member> </member>
<member name="extra_cull_margin" type="float" setter="set_extra_cull_margin" getter="get_extra_cull_margin"> <member name="extra_cull_margin" type="float" setter="set_extra_cull_margin" getter="get_extra_cull_margin">
The extra distance added to the GeometryInstance's bounding box ([AABB]) to increase its cull box. The extra distance added to the GeometryInstance's bounding box ([AABB]) to increase its cull box.
@ -40,7 +40,7 @@
</member> </member>
<member name="material_override" type="Material" setter="set_material_override" getter="get_material_override"> <member name="material_override" type="Material" setter="set_material_override" getter="get_material_override">
The material override for the whole geometry. The material override for the whole geometry.
If there is a material in material_override, it will be used instead of any material set in any material slot of the mesh. If there is a material in [code]material_override[/code], it will be used instead of any material set in any material slot of the mesh.
</member> </member>
<member name="use_in_baked_light" type="bool" setter="set_flag" getter="get_flag"> <member name="use_in_baked_light" type="bool" setter="set_flag" getter="get_flag">
If [code]true[/code], this GeometryInstance will be used when baking lights using a [GIProbe] and/or any other form of baked lighting. If [code]true[/code], this GeometryInstance will be used when baking lights using a [GIProbe] and/or any other form of baked lighting.
@ -64,9 +64,12 @@
</constant> </constant>
<constant name="FLAG_USE_BAKED_LIGHT" value="0" enum="Flags"> <constant name="FLAG_USE_BAKED_LIGHT" value="0" enum="Flags">
Will allow the GeometryInstance to be used when baking lights using a [GIProbe] and/or any other form of baked lighting. Will allow the GeometryInstance to be used when baking lights using a [GIProbe] and/or any other form of baked lighting.
Added documentation for GeometryInstance and VisualInstance </constant>
<constant name="FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value="1" enum="Flags">
Unused in this class, exposed for consistency with [enum VisualServer.InstanceFlags].
</constant> </constant>
<constant name="FLAG_MAX" value="2" enum="Flags"> <constant name="FLAG_MAX" value="2" enum="Flags">
Represents the size of the [enum Flags] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -211,7 +211,7 @@
HTTP PATCH method. The PATCH method is used to apply partial modifications to a resource. HTTP PATCH method. The PATCH method is used to apply partial modifications to a resource.
</constant> </constant>
<constant name="METHOD_MAX" value="9" enum="Method"> <constant name="METHOD_MAX" value="9" enum="Method">
Marker for end of [code]METHOD_*[/code] enum. Not used. Represents the size of the [enum Method] enum.
</constant> </constant>
<constant name="STATUS_DISCONNECTED" value="0" enum="Status"> <constant name="STATUS_DISCONNECTED" value="0" enum="Status">
Status: Disconnected from the server. Status: Disconnected from the server.

View File

@ -66,7 +66,7 @@
Maximum acceleration for the motor. Maximum acceleration for the motor.
</constant> </constant>
<constant name="PARAM_MAX" value="8" enum="Param"> <constant name="PARAM_MAX" value="8" enum="Param">
End flag of PARAM_* constants, used internally. Represents the size of the [enum Param] enum.
</constant> </constant>
<constant name="FLAG_USE_LIMIT" value="0" enum="Flag"> <constant name="FLAG_USE_LIMIT" value="0" enum="Flag">
If [code]true[/code], the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects. If [code]true[/code], the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects.
@ -75,7 +75,7 @@
When activated, a motor turns the hinge. When activated, a motor turns the hinge.
</constant> </constant>
<constant name="FLAG_MAX" value="2" enum="Flag"> <constant name="FLAG_MAX" value="2" enum="Flag">
End flag of FLAG_* constants, used internally. Represents the size of the [enum Flag] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -590,6 +590,7 @@
Ericsson Texture Compression format 2 variant RGB8_PUNCHTHROUGH_ALPHA1, which compresses RGBA data to make alpha either fully transparent or fully opaque. Note that when creating an [ImageTexture], an sRGB to linear color space conversion is performed. Ericsson Texture Compression format 2 variant RGB8_PUNCHTHROUGH_ALPHA1, which compresses RGBA data to make alpha either fully transparent or fully opaque. Note that when creating an [ImageTexture], an sRGB to linear color space conversion is performed.
</constant> </constant>
<constant name="FORMAT_MAX" value="37" enum="Format"> <constant name="FORMAT_MAX" value="37" enum="Format">
Represents the size of the [enum Format] enum.
</constant> </constant>
<constant name="INTERPOLATE_NEAREST" value="0" enum="Interpolation"> <constant name="INTERPOLATE_NEAREST" value="0" enum="Interpolation">
</constant> </constant>

View File

@ -83,6 +83,7 @@
<constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="Param"> <constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="Param">
</constant> </constant>
<constant name="PARAM_MAX" value="15" enum="Param"> <constant name="PARAM_MAX" value="15" enum="Param">
Represents the size of the [enum Param] enum.
</constant> </constant>
<constant name="BAKE_DISABLED" value="0" enum="BakeMode"> <constant name="BAKE_DISABLED" value="0" enum="BakeMode">
Light is ignored when baking. Note: hiding a light does [i]not[/i] affect baking. Light is ignored when baking. Note: hiding a light does [i]not[/i] affect baking.

View File

@ -181,6 +181,7 @@
Reverse the last undo action. Reverse the last undo action.
</constant> </constant>
<constant name="MENU_MAX" value="7" enum="MenuItems"> <constant name="MENU_MAX" value="7" enum="MenuItems">
Represents the size of the [enum MenuItems] enum.
</constant> </constant>
</constants> </constants>
<theme_items> <theme_items>

View File

@ -18,8 +18,10 @@
</members> </members>
<constants> <constants>
<constant name="RENDER_PRIORITY_MAX" value="127"> <constant name="RENDER_PRIORITY_MAX" value="127">
Maximum value for the [member render_priority] parameter.
</constant> </constant>
<constant name="RENDER_PRIORITY_MIN" value="-128"> <constant name="RENDER_PRIORITY_MIN" value="-128">
Minimum value for the [member render_priority] parameter.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -194,6 +194,7 @@
Array of indices. Array of indices.
</constant> </constant>
<constant name="ARRAY_MAX" value="9" enum="ArrayType"> <constant name="ARRAY_MAX" value="9" enum="ArrayType">
Represents the size of the [enum ArrayType] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -86,7 +86,7 @@
<argument index="1" name="param" type="int" enum="Physics2DServer.AreaParameter"> <argument index="1" name="param" type="int" enum="Physics2DServer.AreaParameter">
</argument> </argument>
<description> <description>
Returns an area parameter value. A list of available parameters is on the AREA_PARAM_* constants. Returns an area parameter value. See [enum AreaParameter] for a list of available parameters.
</description> </description>
</method> </method>
<method name="area_get_shape" qualifiers="const"> <method name="area_get_shape" qualifiers="const">
@ -230,7 +230,7 @@
<argument index="2" name="value" type="Variant"> <argument index="2" name="value" type="Variant">
</argument> </argument>
<description> <description>
Sets the value for an area parameter. A list of available parameters is on the AREA_PARAM_* constants. Sets the value for an area parameter. See [enum AreaParameter] for a list of available parameters.
</description> </description>
</method> </method>
<method name="area_set_shape"> <method name="area_set_shape">
@ -291,7 +291,7 @@
<argument index="1" name="mode" type="int" enum="Physics2DServer.AreaSpaceOverrideMode"> <argument index="1" name="mode" type="int" enum="Physics2DServer.AreaSpaceOverrideMode">
</argument> </argument>
<description> <description>
Sets the space override mode for the area. The modes are described in the constants AREA_SPACE_OVERRIDE_*. Sets the space override mode for the area. See [enum AreaSpaceOverrideMode] for a list of available modes.
</description> </description>
</method> </method>
<method name="area_set_transform"> <method name="area_set_transform">
@ -431,7 +431,7 @@
<return type="RID"> <return type="RID">
</return> </return>
<description> <description>
Creates a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time. Creates a physics body.
</description> </description>
</method> </method>
<method name="body_get_canvas_instance_id" qualifiers="const"> <method name="body_get_canvas_instance_id" qualifiers="const">
@ -513,7 +513,7 @@
<argument index="1" name="param" type="int" enum="Physics2DServer.BodyParameter"> <argument index="1" name="param" type="int" enum="Physics2DServer.BodyParameter">
</argument> </argument>
<description> <description>
Returns the value of a body parameter. A list of available parameters is on the BODY_PARAM_* constants. Returns the value of a body parameter. See [enum BodyParameter] for a list of available parameters.
</description> </description>
</method> </method>
<method name="body_get_shape" qualifiers="const"> <method name="body_get_shape" qualifiers="const">
@ -650,7 +650,7 @@
<argument index="1" name="mode" type="int" enum="Physics2DServer.CCDMode"> <argument index="1" name="mode" type="int" enum="Physics2DServer.CCDMode">
</argument> </argument>
<description> <description>
Sets the continuous collision detection mode from any of the CCD_MODE_* constants. Sets the continuous collision detection mode using one of the [enum CCDMode] constants.
Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided.
</description> </description>
</method> </method>
@ -688,7 +688,7 @@
<argument index="1" name="mode" type="int" enum="Physics2DServer.BodyMode"> <argument index="1" name="mode" type="int" enum="Physics2DServer.BodyMode">
</argument> </argument>
<description> <description>
Sets the body mode, from one of the constants BODY_MODE*. Sets the body mode using one of the [enum BodyMode] constants.
</description> </description>
</method> </method>
<method name="body_set_omit_force_integration"> <method name="body_set_omit_force_integration">
@ -712,7 +712,7 @@
<argument index="2" name="value" type="float"> <argument index="2" name="value" type="float">
</argument> </argument>
<description> <description>
Sets a body parameter. A list of available parameters is on the BODY_PARAM_* constants. Sets a body parameter. See [enum BodyParameter] for a list of available parameters.
</description> </description>
</method> </method>
<method name="body_set_shape"> <method name="body_set_shape">
@ -803,7 +803,7 @@
<argument index="2" name="value" type="Variant"> <argument index="2" name="value" type="Variant">
</argument> </argument>
<description> <description>
Sets a body state (see BODY_STATE* constants). Sets a body state using one of the [enum BodyState] constants.
</description> </description>
</method> </method>
<method name="body_test_motion"> <method name="body_test_motion">
@ -885,7 +885,7 @@
<argument index="2" name="value" type="float"> <argument index="2" name="value" type="float">
</argument> </argument>
<description> <description>
Sets a damped spring joint parameter. Parameters are explained in the DAMPED_STRING* constants. Sets a damped spring joint parameter. See [enum DampedStringParam] for a list of available parameters.
</description> </description>
</method> </method>
<method name="free_rid"> <method name="free_rid">
@ -903,7 +903,7 @@
<argument index="0" name="process_info" type="int" enum="Physics2DServer.ProcessInfo"> <argument index="0" name="process_info" type="int" enum="Physics2DServer.ProcessInfo">
</argument> </argument>
<description> <description>
Returns information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. Returns information about the current state of the 2D physics engine. See [enum ProcessInfo] for a list of available states.
</description> </description>
</method> </method>
<method name="groove_joint_create"> <method name="groove_joint_create">
@ -920,7 +920,7 @@
<argument index="4" name="body_b" type="RID"> <argument index="4" name="body_b" type="RID">
</argument> </argument>
<description> <description>
Creates a groove joint between two bodies. If not specified, the bodyies are assumed to be the joint itself. Creates a groove joint between two bodies. If not specified, the bodies are assumed to be the joint itself.
</description> </description>
</method> </method>
<method name="joint_get_param" qualifiers="const"> <method name="joint_get_param" qualifiers="const">
@ -940,7 +940,7 @@
<argument index="0" name="joint" type="RID"> <argument index="0" name="joint" type="RID">
</argument> </argument>
<description> <description>
Returns the type of a joint (see JOINT_* constants). Returns the type of a joint (see [enum JointType]).
</description> </description>
</method> </method>
<method name="joint_set_param"> <method name="joint_set_param">
@ -953,7 +953,7 @@
<argument index="2" name="value" type="float"> <argument index="2" name="value" type="float">
</argument> </argument>
<description> <description>
Sets a joint parameter. Parameters are explained in the JOINT_PARAM* constants. Sets a joint parameter. See [enum JointParam] for a list of available parameters.
</description> </description>
</method> </method>
<method name="line_shape_create"> <method name="line_shape_create">
@ -1017,7 +1017,7 @@
<argument index="0" name="shape" type="RID"> <argument index="0" name="shape" type="RID">
</argument> </argument>
<description> <description>
Returns the type of shape (see SHAPE_* constants). Returns the type of shape (see [enum ShapeType]).
</description> </description>
</method> </method>
<method name="shape_set_data"> <method name="shape_set_data">
@ -1088,7 +1088,7 @@
<argument index="2" name="value" type="float"> <argument index="2" name="value" type="float">
</argument> </argument>
<description> <description>
Sets the value for a space parameter. A list of available parameters is on the SPACE_PARAM_* constants. Sets the value for a space parameter. See [enum SpaceParameter] for a list of available parameters.
</description> </description>
</method> </method>
</methods> </methods>
@ -1215,7 +1215,7 @@
Constant to set/get a body's angular dampening factor. Constant to set/get a body's angular dampening factor.
</constant> </constant>
<constant name="BODY_PARAM_MAX" value="7" enum="BodyParameter"> <constant name="BODY_PARAM_MAX" value="7" enum="BodyParameter">
This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. Represents the size of the [enum BodyParameter] enum.
</constant> </constant>
<constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState"> <constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState">
Constant to set/get the current transform matrix of the body. Constant to set/get the current transform matrix of the body.

View File

@ -1384,7 +1384,7 @@
The amount of damping of the rotation across axes orthogonal to the slider. The amount of damping of the rotation across axes orthogonal to the slider.
</constant> </constant>
<constant name="SLIDER_JOINT_MAX" value="22" enum="SliderJointParam"> <constant name="SLIDER_JOINT_MAX" value="22" enum="SliderJointParam">
End flag of SLIDER_JOINT_* constants, used internally. Represents the size of the [enum SliderJointParam] enum.
</constant> </constant>
<constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0" enum="ConeTwistJointParam"> <constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0" enum="ConeTwistJointParam">
Swing is rotation from side to side, around the axis perpendicular to the twist axis. Swing is rotation from side to side, around the axis perpendicular to the twist axis.
@ -1566,7 +1566,7 @@
Constant to set/get a body's angular dampening factor. Constant to set/get a body's angular dampening factor.
</constant> </constant>
<constant name="BODY_PARAM_MAX" value="6" enum="BodyParameter"> <constant name="BODY_PARAM_MAX" value="6" enum="BodyParameter">
This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. Represents the size of the [enum BodyParameter] enum.
</constant> </constant>
<constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState"> <constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState">
Constant to set/get the current transform matrix of the body. Constant to set/get the current transform matrix of the body.

View File

@ -46,7 +46,7 @@
Color of the sun. Color of the sun.
</member> </member>
<member name="sun_curve" type="float" setter="set_sun_curve" getter="get_sun_curve"> <member name="sun_curve" type="float" setter="set_sun_curve" getter="get_sun_curve">
How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max] How quickly the sun fades away between [member sun_angle_min] and [member sun_angle_max].
</member> </member>
<member name="sun_energy" type="float" setter="set_sun_energy" getter="get_sun_energy"> <member name="sun_energy" type="float" setter="set_sun_energy" getter="get_sun_energy">
Amount of energy contribution from the sun. Amount of energy contribution from the sun.
@ -58,7 +58,7 @@
The direction of the sun using polar coordinates. The direction of the sun using polar coordinates.
</member> </member>
<member name="texture_size" type="int" setter="set_texture_size" getter="get_texture_size" enum="ProceduralSky.TextureSize"> <member name="texture_size" type="int" setter="set_texture_size" getter="get_texture_size" enum="ProceduralSky.TextureSize">
Size of [Texture] that the ProceduralSky will generate. Size of [Texture] that the ProceduralSky will generate. The size is set using [enum TextureSize].
</member> </member>
</members> </members>
<constants> <constants>
@ -73,6 +73,7 @@
<constant name="TEXTURE_SIZE_4096" value="4" enum="TextureSize"> <constant name="TEXTURE_SIZE_4096" value="4" enum="TextureSize">
</constant> </constant>
<constant name="TEXTURE_SIZE_MAX" value="5" enum="TextureSize"> <constant name="TEXTURE_SIZE_MAX" value="5" enum="TextureSize">
Represents the size of the [enum TextureSize] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ResourceImporter" inherits="Reference" category="Core" version="3.2">
<brief_description>
</brief_description>
<description>
</description>
<tutorials>
</tutorials>
<methods>
</methods>
<constants>
</constants>
</class>

View File

@ -12,9 +12,9 @@
</methods> </methods>
<members> <members>
<member name="radiance_size" type="int" setter="set_radiance_size" getter="get_radiance_size" enum="Sky.RadianceSize"> <member name="radiance_size" type="int" setter="set_radiance_size" getter="get_radiance_size" enum="Sky.RadianceSize">
The Sky's radiance map size. The [Sky]'s radiance map size.
The higher the radiance map size, the more detailed the lighting from the Sky will be. The higher the radiance map size, the more detailed the lighting from the [Sky] will be.
See RADIANCE_SIZE_* constants for values. Default size is RADIANCE_SIZE_512. See [enum RadianceSize] constants for values. Default size is [constant RADIANCE_SIZE_512].
</member> </member>
</members> </members>
<constants> <constants>
@ -40,7 +40,7 @@
Radiance texture size is 2048x2048 pixels. Radiance texture size is 2048x2048 pixels.
</constant> </constant>
<constant name="RADIANCE_SIZE_MAX" value="7" enum="RadianceSize"> <constant name="RADIANCE_SIZE_MAX" value="7" enum="RadianceSize">
Radiance texture size is the largest size it can be. Represents the size of the [enum RadianceSize] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -149,7 +149,7 @@
The amount of damping of the rotation across axes orthogonal to the slider. The amount of damping of the rotation across axes orthogonal to the slider.
</constant> </constant>
<constant name="PARAM_MAX" value="22" enum="Param"> <constant name="PARAM_MAX" value="22" enum="Param">
End flag of PARAM_* constants, used internally. Represents the size of the [enum Param] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -295,6 +295,7 @@
<constant name="TEXTURE_DETAIL_NORMAL" value="15" enum="TextureParam"> <constant name="TEXTURE_DETAIL_NORMAL" value="15" enum="TextureParam">
</constant> </constant>
<constant name="TEXTURE_MAX" value="16" enum="TextureParam"> <constant name="TEXTURE_MAX" value="16" enum="TextureParam">
Represents the size of the [enum TextureParam] enum.
</constant> </constant>
<constant name="DETAIL_UV_1" value="0" enum="DetailUV"> <constant name="DETAIL_UV_1" value="0" enum="DetailUV">
</constant> </constant>
@ -325,6 +326,7 @@
<constant name="FEATURE_DETAIL" value="11" enum="Feature"> <constant name="FEATURE_DETAIL" value="11" enum="Feature">
</constant> </constant>
<constant name="FEATURE_MAX" value="12" enum="Feature"> <constant name="FEATURE_MAX" value="12" enum="Feature">
Represents the size of the [enum Feature] enum.
</constant> </constant>
<constant name="BLEND_MODE_MIX" value="0" enum="BlendMode"> <constant name="BLEND_MODE_MIX" value="0" enum="BlendMode">
Default blend mode. Default blend mode.
@ -395,6 +397,7 @@
<constant name="FLAG_USE_SHADOW_TO_OPACITY" value="18" enum="Flags"> <constant name="FLAG_USE_SHADOW_TO_OPACITY" value="18" enum="Flags">
</constant> </constant>
<constant name="FLAG_MAX" value="19" enum="Flags"> <constant name="FLAG_MAX" value="19" enum="Flags">
Represents the size of the [enum Flags] enum.
</constant> </constant>
<constant name="DIFFUSE_BURLEY" value="0" enum="DiffuseMode"> <constant name="DIFFUSE_BURLEY" value="0" enum="DiffuseMode">
Default diffuse scattering algorithm. Default diffuse scattering algorithm.

View File

@ -70,7 +70,7 @@
If set, texture can be seen from the back as well, if not, it is invisible when looking at it from behind. If set, texture can be seen from the back as well, if not, it is invisible when looking at it from behind.
</constant> </constant>
<constant name="FLAG_MAX" value="3" enum="DrawFlags"> <constant name="FLAG_MAX" value="3" enum="DrawFlags">
Used internally to mark the end of the Flags section. Represents the size of the [enum DrawFlags] enum.
</constant> </constant>
<constant name="ALPHA_CUT_DISABLED" value="0" enum="AlphaCutMode"> <constant name="ALPHA_CUT_DISABLED" value="0" enum="AlphaCutMode">
</constant> </constant>

View File

@ -234,6 +234,7 @@
Align the tabs to the right. Align the tabs to the right.
</constant> </constant>
<constant name="ALIGN_MAX" value="3" enum="TabAlign"> <constant name="ALIGN_MAX" value="3" enum="TabAlign">
Represents the size of the [enum TabAlign] enum.
</constant> </constant>
<constant name="CLOSE_BUTTON_SHOW_NEVER" value="0" enum="CloseButtonDisplayPolicy"> <constant name="CLOSE_BUTTON_SHOW_NEVER" value="0" enum="CloseButtonDisplayPolicy">
</constant> </constant>
@ -242,6 +243,7 @@
<constant name="CLOSE_BUTTON_SHOW_ALWAYS" value="2" enum="CloseButtonDisplayPolicy"> <constant name="CLOSE_BUTTON_SHOW_ALWAYS" value="2" enum="CloseButtonDisplayPolicy">
</constant> </constant>
<constant name="CLOSE_BUTTON_MAX" value="3" enum="CloseButtonDisplayPolicy"> <constant name="CLOSE_BUTTON_MAX" value="3" enum="CloseButtonDisplayPolicy">
Represents the size of the [enum CloseButtonDisplayPolicy] enum.
</constant> </constant>
</constants> </constants>
<theme_items> <theme_items>

View File

@ -331,7 +331,7 @@
<constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1024" value="6" enum="ShadowAtlasQuadrantSubdiv"> <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1024" value="6" enum="ShadowAtlasQuadrantSubdiv">
</constant> </constant>
<constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_MAX" value="7" enum="ShadowAtlasQuadrantSubdiv"> <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_MAX" value="7" enum="ShadowAtlasQuadrantSubdiv">
Enum limiter. Do not use it directly. Represents the size of the [enum ShadowAtlasQuadrantSubdiv] enum.
</constant> </constant>
<constant name="RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="RenderInfo"> <constant name="RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="RenderInfo">
Amount of objects in frame. Amount of objects in frame.
@ -352,7 +352,7 @@
Amount of draw calls in frame. Amount of draw calls in frame.
</constant> </constant>
<constant name="RENDER_INFO_MAX" value="6" enum="RenderInfo"> <constant name="RENDER_INFO_MAX" value="6" enum="RenderInfo">
Enum limiter. Do not use it directly. Represents the size of the [enum RenderInfo] enum.
</constant> </constant>
<constant name="DEBUG_DRAW_DISABLED" value="0" enum="DebugDraw"> <constant name="DEBUG_DRAW_DISABLED" value="0" enum="DebugDraw">
Objects are displayed normally. Objects are displayed normally.

View File

@ -26,6 +26,7 @@
This enabler will freeze [RigidBody] nodes. This enabler will freeze [RigidBody] nodes.
</constant> </constant>
<constant name="ENABLER_MAX" value="2" enum="Enabler"> <constant name="ENABLER_MAX" value="2" enum="Enabler">
Represents the size of the [enum Enabler] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -49,6 +49,7 @@
<constant name="ENABLER_PAUSE_ANIMATED_SPRITES" value="5" enum="Enabler"> <constant name="ENABLER_PAUSE_ANIMATED_SPRITES" value="5" enum="Enabler">
</constant> </constant>
<constant name="ENABLER_MAX" value="6" enum="Enabler"> <constant name="ENABLER_MAX" value="6" enum="Enabler">
Represents the size of the [enum Enabler] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -4020,7 +4020,7 @@
Shader is a particle shader. Shader is a particle shader.
</constant> </constant>
<constant name="SHADER_MAX" value="3" enum="ShaderMode"> <constant name="SHADER_MAX" value="3" enum="ShaderMode">
Marks maximum of the shader types array. used internally. Represents the size of the [enum ShaderMode] enum.
</constant> </constant>
<constant name="ARRAY_VERTEX" value="0" enum="ArrayType"> <constant name="ARRAY_VERTEX" value="0" enum="ArrayType">
Array is a vertex array. Array is a vertex array.
@ -4050,7 +4050,7 @@
Array is index array. Array is index array.
</constant> </constant>
<constant name="ARRAY_MAX" value="9" enum="ArrayType"> <constant name="ARRAY_MAX" value="9" enum="ArrayType">
Marks the maximum of the array types. Used internally. Represents the size of the [enum ArrayType] enum.
</constant> </constant>
<constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat"> <constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat">
Flag used to mark a vertex array. Flag used to mark a vertex array.
@ -4135,7 +4135,7 @@
Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle). Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
</constant> </constant>
<constant name="PRIMITIVE_MAX" value="7" enum="PrimitiveType"> <constant name="PRIMITIVE_MAX" value="7" enum="PrimitiveType">
Marks the primitive types endpoint. used internally. Represents the size of the [enum PrimitiveType] enum.
</constant> </constant>
<constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode"> <constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode">
</constant> </constant>
@ -4186,7 +4186,7 @@
<constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="LightParam"> <constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="LightParam">
</constant> </constant>
<constant name="LIGHT_PARAM_MAX" value="15" enum="LightParam"> <constant name="LIGHT_PARAM_MAX" value="15" enum="LightParam">
The light parameters endpoint. Used internally. Represents the size of the [enum LightParam] enum.
</constant> </constant>
<constant name="LIGHT_OMNI_SHADOW_DUAL_PARABOLOID" value="0" enum="LightOmniShadowMode"> <constant name="LIGHT_OMNI_SHADOW_DUAL_PARABOLOID" value="0" enum="LightOmniShadowMode">
</constant> </constant>
@ -4263,7 +4263,7 @@
<constant name="VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5" enum="ViewportRenderInfo"> <constant name="VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5" enum="ViewportRenderInfo">
</constant> </constant>
<constant name="VIEWPORT_RENDER_INFO_MAX" value="6" enum="ViewportRenderInfo"> <constant name="VIEWPORT_RENDER_INFO_MAX" value="6" enum="ViewportRenderInfo">
Marks end of VIEWPORT_RENDER_INFO* constants. Used internally. Represents the size of the [enum ViewportRenderInfo] enum.
</constant> </constant>
<constant name="VIEWPORT_DEBUG_DRAW_DISABLED" value="0" enum="ViewportDebugDraw"> <constant name="VIEWPORT_DEBUG_DRAW_DISABLED" value="0" enum="ViewportDebugDraw">
Debug draw is disabled. Default setting. Debug draw is disabled. Default setting.
@ -4310,7 +4310,7 @@
<constant name="INSTANCE_LIGHTMAP_CAPTURE" value="8" enum="InstanceType"> <constant name="INSTANCE_LIGHTMAP_CAPTURE" value="8" enum="InstanceType">
</constant> </constant>
<constant name="INSTANCE_MAX" value="9" enum="InstanceType"> <constant name="INSTANCE_MAX" value="9" enum="InstanceType">
The max value for INSTANCE_* constants, used internally. Represents the size of the [enum InstanceType] enum.
</constant> </constant>
<constant name="INSTANCE_GEOMETRY_MASK" value="30" enum="InstanceType"> <constant name="INSTANCE_GEOMETRY_MASK" value="30" enum="InstanceType">
A combination of the flags of geometry instances (mesh, multimesh, immediate and particles). A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
@ -4320,6 +4320,7 @@
<constant name="INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value="1" enum="InstanceFlags"> <constant name="INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value="1" enum="InstanceFlags">
</constant> </constant>
<constant name="INSTANCE_FLAG_MAX" value="2" enum="InstanceFlags"> <constant name="INSTANCE_FLAG_MAX" value="2" enum="InstanceFlags">
Represents the size of the [enum InstanceFlags] enum.
</constant> </constant>
<constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum="ShadowCastingSetting"> <constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum="ShadowCastingSetting">
</constant> </constant>
@ -4444,6 +4445,7 @@
<constant name="ENV_BG_KEEP" value="5" enum="EnvironmentBG"> <constant name="ENV_BG_KEEP" value="5" enum="EnvironmentBG">
</constant> </constant>
<constant name="ENV_BG_MAX" value="7" enum="EnvironmentBG"> <constant name="ENV_BG_MAX" value="7" enum="EnvironmentBG">
Represents the size of the [enum EnvironmentBG] enum.
</constant> </constant>
<constant name="ENV_DOF_BLUR_QUALITY_LOW" value="0" enum="EnvironmentDOFBlurQuality"> <constant name="ENV_DOF_BLUR_QUALITY_LOW" value="0" enum="EnvironmentDOFBlurQuality">
</constant> </constant>

View File

@ -194,6 +194,7 @@
<constant name="TYPE_LIGHT" value="2" enum="Type"> <constant name="TYPE_LIGHT" value="2" enum="Type">
</constant> </constant>
<constant name="TYPE_MAX" value="3" enum="Type"> <constant name="TYPE_MAX" value="3" enum="Type">
Represents the size of the [enum Type] enum.
</constant> </constant>
<constant name="NODE_ID_INVALID" value="-1"> <constant name="NODE_ID_INVALID" value="-1">
</constant> </constant>

View File

@ -213,7 +213,7 @@
[/codeblock] [/codeblock]
</constant> </constant>
<constant name="FUNC_MAX" value="65" enum="BuiltinFunc"> <constant name="FUNC_MAX" value="65" enum="BuiltinFunc">
The maximum value the [member function] property can have. Represents the size of the [enum BuiltinFunc] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -45,6 +45,7 @@
Not a number: [code]nan[/code] Not a number: [code]nan[/code]
</constant> </constant>
<constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant"> <constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant">
Represents the size of the [enum MathConstant] enum.
</constant> </constant>
</constants> </constants>
</class> </class>

View File

@ -326,6 +326,7 @@ void GeometryInstance::_bind_methods() {
BIND_ENUM_CONSTANT(SHADOW_CASTING_SETTING_SHADOWS_ONLY); BIND_ENUM_CONSTANT(SHADOW_CASTING_SETTING_SHADOWS_ONLY);
BIND_ENUM_CONSTANT(FLAG_USE_BAKED_LIGHT); BIND_ENUM_CONSTANT(FLAG_USE_BAKED_LIGHT);
BIND_ENUM_CONSTANT(FLAG_DRAW_NEXT_FRAME_IF_VISIBLE);
BIND_ENUM_CONSTANT(FLAG_MAX); BIND_ENUM_CONSTANT(FLAG_MAX);
} }