mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Sync classref with godotengine/godot#24607 deterministic sorting
This commit is contained in:
@@ -64,437 +64,17 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Variant.Operator:
|
.. _enum_@GlobalScope_Margin:
|
||||||
|
|
||||||
enum **Variant.Operator**:
|
enum **Margin**:
|
||||||
|
|
||||||
- **OP_EQUAL** = **0**
|
- **MARGIN_LEFT** = **0** --- Left margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
||||||
|
|
||||||
- **OP_NOT_EQUAL** = **1**
|
- **MARGIN_TOP** = **1** --- Top margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
||||||
|
|
||||||
- **OP_LESS** = **2**
|
- **MARGIN_RIGHT** = **2** --- Right margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
||||||
|
|
||||||
- **OP_LESS_EQUAL** = **3**
|
- **MARGIN_BOTTOM** = **3** --- Bottom margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
||||||
|
|
||||||
- **OP_GREATER** = **4**
|
|
||||||
|
|
||||||
- **OP_GREATER_EQUAL** = **5**
|
|
||||||
|
|
||||||
- **OP_ADD** = **6**
|
|
||||||
|
|
||||||
- **OP_SUBTRACT** = **7**
|
|
||||||
|
|
||||||
- **OP_MULTIPLY** = **8**
|
|
||||||
|
|
||||||
- **OP_DIVIDE** = **9**
|
|
||||||
|
|
||||||
- **OP_NEGATE** = **10**
|
|
||||||
|
|
||||||
- **OP_POSITIVE** = **11**
|
|
||||||
|
|
||||||
- **OP_MODULE** = **12**
|
|
||||||
|
|
||||||
- **OP_STRING_CONCAT** = **13**
|
|
||||||
|
|
||||||
- **OP_SHIFT_LEFT** = **14**
|
|
||||||
|
|
||||||
- **OP_SHIFT_RIGHT** = **15**
|
|
||||||
|
|
||||||
- **OP_BIT_AND** = **16**
|
|
||||||
|
|
||||||
- **OP_BIT_OR** = **17**
|
|
||||||
|
|
||||||
- **OP_BIT_XOR** = **18**
|
|
||||||
|
|
||||||
- **OP_BIT_NEGATE** = **19**
|
|
||||||
|
|
||||||
- **OP_AND** = **20**
|
|
||||||
|
|
||||||
- **OP_OR** = **21**
|
|
||||||
|
|
||||||
- **OP_XOR** = **22**
|
|
||||||
|
|
||||||
- **OP_NOT** = **23**
|
|
||||||
|
|
||||||
- **OP_IN** = **24**
|
|
||||||
|
|
||||||
- **OP_MAX** = **25**
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_MethodFlags:
|
|
||||||
|
|
||||||
enum **MethodFlags**:
|
|
||||||
|
|
||||||
- **METHOD_FLAG_NORMAL** = **1** --- Flag for normal method
|
|
||||||
|
|
||||||
- **METHOD_FLAG_EDITOR** = **2** --- Flag for editor method
|
|
||||||
|
|
||||||
- **METHOD_FLAG_NOSCRIPT** = **4**
|
|
||||||
|
|
||||||
- **METHOD_FLAG_CONST** = **8** --- Flag for constant method
|
|
||||||
|
|
||||||
- **METHOD_FLAG_REVERSE** = **16**
|
|
||||||
|
|
||||||
- **METHOD_FLAG_VIRTUAL** = **32** --- Flag for virtual method
|
|
||||||
|
|
||||||
- **METHOD_FLAG_FROM_SCRIPT** = **64** --- Flag for method from script
|
|
||||||
|
|
||||||
- **METHOD_FLAGS_DEFAULT** = **1** --- Default method flags
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Orientation:
|
|
||||||
|
|
||||||
enum **Orientation**:
|
|
||||||
|
|
||||||
- **VERTICAL** = **1** --- General vertical alignment, used usually for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
|
|
||||||
|
|
||||||
- **HORIZONTAL** = **0** --- General horizontal alignment, used usually for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_PropertyUsageFlags:
|
|
||||||
|
|
||||||
enum **PropertyUsageFlags**:
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_STORAGE** = **1** --- Property will be used as storage (default).
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_EDITOR** = **2** --- Property will be visible in editor (default).
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_NETWORK** = **4**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_EDITOR_HELPER** = **8**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_CHECKABLE** = **16**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_CHECKED** = **32**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_INTERNATIONALIZED** = **64**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_GROUP** = **128**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_CATEGORY** = **256**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_NO_INSTANCE_STATE** = **2048**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_RESTART_IF_CHANGED** = **4096**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_SCRIPT_VARIABLE** = **8192**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_DEFAULT** = **7** --- Default usage (storage and editor).
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_DEFAULT_INTL** = **71**
|
|
||||||
|
|
||||||
- **PROPERTY_USAGE_NOEDITOR** = **5**
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_JoystickList:
|
|
||||||
|
|
||||||
enum **JoystickList**:
|
|
||||||
|
|
||||||
- **JOY_BUTTON_0** = **0** --- Joypad Button 0
|
|
||||||
|
|
||||||
- **JOY_BUTTON_1** = **1** --- Joypad Button 1
|
|
||||||
|
|
||||||
- **JOY_BUTTON_2** = **2** --- Joypad Button 2
|
|
||||||
|
|
||||||
- **JOY_BUTTON_3** = **3** --- Joypad Button 3
|
|
||||||
|
|
||||||
- **JOY_BUTTON_4** = **4** --- Joypad Button 4
|
|
||||||
|
|
||||||
- **JOY_BUTTON_5** = **5** --- Joypad Button 5
|
|
||||||
|
|
||||||
- **JOY_BUTTON_6** = **6** --- Joypad Button 6
|
|
||||||
|
|
||||||
- **JOY_BUTTON_7** = **7** --- Joypad Button 7
|
|
||||||
|
|
||||||
- **JOY_BUTTON_8** = **8** --- Joypad Button 8
|
|
||||||
|
|
||||||
- **JOY_BUTTON_9** = **9** --- Joypad Button 9
|
|
||||||
|
|
||||||
- **JOY_BUTTON_10** = **10** --- Joypad Button 10
|
|
||||||
|
|
||||||
- **JOY_BUTTON_11** = **11** --- Joypad Button 11
|
|
||||||
|
|
||||||
- **JOY_BUTTON_12** = **12** --- Joypad Button 12
|
|
||||||
|
|
||||||
- **JOY_BUTTON_13** = **13** --- Joypad Button 13
|
|
||||||
|
|
||||||
- **JOY_BUTTON_14** = **14** --- Joypad Button 14
|
|
||||||
|
|
||||||
- **JOY_BUTTON_15** = **15** --- Joypad Button 15
|
|
||||||
|
|
||||||
- **JOY_BUTTON_MAX** = **16** --- Joypad Button 16
|
|
||||||
|
|
||||||
- **JOY_SONY_CIRCLE** = **1** --- DUALSHOCK circle button
|
|
||||||
|
|
||||||
- **JOY_SONY_X** = **0** --- DUALSHOCK X button
|
|
||||||
|
|
||||||
- **JOY_SONY_SQUARE** = **2** --- DUALSHOCK square button
|
|
||||||
|
|
||||||
- **JOY_SONY_TRIANGLE** = **3** --- DUALSHOCK triangle button
|
|
||||||
|
|
||||||
- **JOY_XBOX_B** = **1** --- XBOX controller B button
|
|
||||||
|
|
||||||
- **JOY_XBOX_A** = **0** --- XBOX controller A button
|
|
||||||
|
|
||||||
- **JOY_XBOX_X** = **2** --- XBOX controller X button
|
|
||||||
|
|
||||||
- **JOY_XBOX_Y** = **3** --- XBOX controller Y button
|
|
||||||
|
|
||||||
- **JOY_DS_A** = **1** --- DualShock controller A button
|
|
||||||
|
|
||||||
- **JOY_DS_B** = **0** --- DualShock controller B button
|
|
||||||
|
|
||||||
- **JOY_DS_X** = **3** --- DualShock controller X button
|
|
||||||
|
|
||||||
- **JOY_DS_Y** = **2** --- DualShock controller Y button
|
|
||||||
|
|
||||||
- **JOY_SELECT** = **10** --- Joypad Button Select
|
|
||||||
|
|
||||||
- **JOY_START** = **11** --- Joypad Button Start
|
|
||||||
|
|
||||||
- **JOY_DPAD_UP** = **12** --- Joypad DPad Up
|
|
||||||
|
|
||||||
- **JOY_DPAD_DOWN** = **13** --- Joypad DPad Down
|
|
||||||
|
|
||||||
- **JOY_DPAD_LEFT** = **14** --- Joypad DPad Left
|
|
||||||
|
|
||||||
- **JOY_DPAD_RIGHT** = **15** --- Joypad DPad Right
|
|
||||||
|
|
||||||
- **JOY_L** = **4** --- Joypad Left Shoulder Button
|
|
||||||
|
|
||||||
- **JOY_L2** = **6** --- Joypad Left Trigger
|
|
||||||
|
|
||||||
- **JOY_L3** = **8** --- Joypad Left Stick Click
|
|
||||||
|
|
||||||
- **JOY_R** = **5** --- Joypad Right Shoulder Button
|
|
||||||
|
|
||||||
- **JOY_R2** = **7** --- Joypad Right Trigger
|
|
||||||
|
|
||||||
- **JOY_R3** = **9** --- Joypad Right Stick Click
|
|
||||||
|
|
||||||
- **JOY_AXIS_0** = **0** --- Joypad Left Stick Horizontal Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_1** = **1** --- Joypad Left Stick Vertical Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_2** = **2** --- Joypad Right Stick Horizontal Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_3** = **3** --- Joypad Right Stick Vertical Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_4** = **4**
|
|
||||||
|
|
||||||
- **JOY_AXIS_5** = **5**
|
|
||||||
|
|
||||||
- **JOY_AXIS_6** = **6** --- Joypad Left Trigger Analog Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_7** = **7** --- Joypad Right Trigger Analog Axis
|
|
||||||
|
|
||||||
- **JOY_AXIS_8** = **8**
|
|
||||||
|
|
||||||
- **JOY_AXIS_9** = **9**
|
|
||||||
|
|
||||||
- **JOY_AXIS_MAX** = **10**
|
|
||||||
|
|
||||||
- **JOY_ANALOG_LX** = **0** --- Joypad Left Stick Horizontal Axis
|
|
||||||
|
|
||||||
- **JOY_ANALOG_LY** = **1** --- Joypad Left Stick Vertical Axis
|
|
||||||
|
|
||||||
- **JOY_ANALOG_RX** = **2** --- Joypad Right Stick Horizontal Axis
|
|
||||||
|
|
||||||
- **JOY_ANALOG_RY** = **3** --- Joypad Right Stick Vertical Axis
|
|
||||||
|
|
||||||
- **JOY_ANALOG_L2** = **6** --- Joypad Left Analog Trigger
|
|
||||||
|
|
||||||
- **JOY_ANALOG_R2** = **7** --- Joypad Right Analog Trigger
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_MidiMessageList:
|
|
||||||
|
|
||||||
enum **MidiMessageList**:
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_NOTE_OFF** = **8**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_NOTE_ON** = **9**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_AFTERTOUCH** = **10**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_CONTROL_CHANGE** = **11**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_PROGRAM_CHANGE** = **12**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_CHANNEL_PRESSURE** = **13**
|
|
||||||
|
|
||||||
- **MIDI_MESSAGE_PITCH_BEND** = **14**
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_KeyModifierMask:
|
|
||||||
|
|
||||||
enum **KeyModifierMask**:
|
|
||||||
|
|
||||||
- **KEY_CODE_MASK** = **33554431** --- Key Code Mask
|
|
||||||
|
|
||||||
- **KEY_MODIFIER_MASK** = **-16777216** --- Modifier Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_SHIFT** = **33554432** --- Shift Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_ALT** = **67108864** --- Alt Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_META** = **134217728** --- Meta Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_CTRL** = **268435456** --- CTRL Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_CMD** = **268435456** --- CMD Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_KPAD** = **536870912** --- Keypad Key Mask
|
|
||||||
|
|
||||||
- **KEY_MASK_GROUP_SWITCH** = **1073741824** --- Group Switch Key Mask
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_HAlign:
|
|
||||||
|
|
||||||
enum **HAlign**:
|
|
||||||
|
|
||||||
- **HALIGN_LEFT** = **0** --- Horizontal left alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
- **HALIGN_CENTER** = **1** --- Horizontal center alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
- **HALIGN_RIGHT** = **2** --- Horizontal right alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Error:
|
|
||||||
|
|
||||||
enum **Error**:
|
|
||||||
|
|
||||||
- **OK** = **0** --- Functions that return Error return OK when no error occurred. Most functions don't return errors and/or just print errors to STDOUT.
|
|
||||||
|
|
||||||
- **FAILED** = **1** --- Generic error.
|
|
||||||
|
|
||||||
- **ERR_UNAVAILABLE** = **2** --- Unavailable error
|
|
||||||
|
|
||||||
- **ERR_UNCONFIGURED** = **3** --- Unconfigured error
|
|
||||||
|
|
||||||
- **ERR_UNAUTHORIZED** = **4** --- Unauthorized error
|
|
||||||
|
|
||||||
- **ERR_PARAMETER_RANGE_ERROR** = **5** --- Parameter range error
|
|
||||||
|
|
||||||
- **ERR_OUT_OF_MEMORY** = **6** --- Out of memory (OOM) error
|
|
||||||
|
|
||||||
- **ERR_FILE_NOT_FOUND** = **7** --- File: Not found error
|
|
||||||
|
|
||||||
- **ERR_FILE_BAD_DRIVE** = **8** --- File: Bad drive error
|
|
||||||
|
|
||||||
- **ERR_FILE_BAD_PATH** = **9** --- File: Bad path error
|
|
||||||
|
|
||||||
- **ERR_FILE_NO_PERMISSION** = **10** --- File: No permission error
|
|
||||||
|
|
||||||
- **ERR_FILE_ALREADY_IN_USE** = **11** --- File: Already in use error
|
|
||||||
|
|
||||||
- **ERR_FILE_CANT_OPEN** = **12** --- File: Can't open error
|
|
||||||
|
|
||||||
- **ERR_FILE_CANT_WRITE** = **13** --- File: Can't write error
|
|
||||||
|
|
||||||
- **ERR_FILE_CANT_READ** = **14** --- File: Can't read error
|
|
||||||
|
|
||||||
- **ERR_FILE_UNRECOGNIZED** = **15** --- File: Unrecognized error
|
|
||||||
|
|
||||||
- **ERR_FILE_CORRUPT** = **16** --- File: Corrupt error
|
|
||||||
|
|
||||||
- **ERR_FILE_MISSING_DEPENDENCIES** = **17** --- File: Missing dependencies error
|
|
||||||
|
|
||||||
- **ERR_FILE_EOF** = **18** --- File: End of file (EOF) error
|
|
||||||
|
|
||||||
- **ERR_CANT_OPEN** = **19** --- Can't open error
|
|
||||||
|
|
||||||
- **ERR_CANT_CREATE** = **20** --- Can't create error
|
|
||||||
|
|
||||||
- **ERR_PARSE_ERROR** = **43** --- Parse error
|
|
||||||
|
|
||||||
- **ERR_QUERY_FAILED** = **21** --- Query failed error
|
|
||||||
|
|
||||||
- **ERR_ALREADY_IN_USE** = **22** --- Already in use error
|
|
||||||
|
|
||||||
- **ERR_LOCKED** = **23** --- Locked error
|
|
||||||
|
|
||||||
- **ERR_TIMEOUT** = **24** --- Timeout error
|
|
||||||
|
|
||||||
- **ERR_CANT_ACQUIRE_RESOURCE** = **28** --- Can't acquire resource error
|
|
||||||
|
|
||||||
- **ERR_INVALID_DATA** = **30** --- Invalid data error
|
|
||||||
|
|
||||||
- **ERR_INVALID_PARAMETER** = **31** --- Invalid parameter error
|
|
||||||
|
|
||||||
- **ERR_ALREADY_EXISTS** = **32** --- Already exists error
|
|
||||||
|
|
||||||
- **ERR_DOES_NOT_EXIST** = **33** --- Does not exist error
|
|
||||||
|
|
||||||
- **ERR_DATABASE_CANT_READ** = **34** --- Database: Read error
|
|
||||||
|
|
||||||
- **ERR_DATABASE_CANT_WRITE** = **35** --- Database: Write error
|
|
||||||
|
|
||||||
- **ERR_COMPILATION_FAILED** = **36** --- Compilation failed error
|
|
||||||
|
|
||||||
- **ERR_METHOD_NOT_FOUND** = **37** --- Method not found error
|
|
||||||
|
|
||||||
- **ERR_LINK_FAILED** = **38** --- Linking failed error
|
|
||||||
|
|
||||||
- **ERR_SCRIPT_FAILED** = **39** --- Script failed error
|
|
||||||
|
|
||||||
- **ERR_CYCLIC_LINK** = **40** --- Cycling link (import cycle) error
|
|
||||||
|
|
||||||
- **ERR_BUSY** = **44** --- Busy error
|
|
||||||
|
|
||||||
- **ERR_HELP** = **46** --- Help error
|
|
||||||
|
|
||||||
- **ERR_BUG** = **47** --- Bug error
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_VAlign:
|
|
||||||
|
|
||||||
enum **VAlign**:
|
|
||||||
|
|
||||||
- **VALIGN_TOP** = **0** --- Vertical top alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
- **VALIGN_CENTER** = **1** --- Vertical center alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
- **VALIGN_BOTTOM** = **2** --- Vertical bottom alignment, usually for text-derived classes.
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_PropertyHint:
|
|
||||||
|
|
||||||
enum **PropertyHint**:
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_NONE** = **0** --- No hint for edited property.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_RANGE** = **1** --- Hints that the string is a range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_EXP_RANGE** = **2** --- Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_ENUM** = **3** --- Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_EXP_EASING** = **4**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_LENGTH** = **5**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_KEY_ACCEL** = **7**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_FLAGS** = **8** --- Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_LAYERS_2D_RENDER** = **9**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_LAYERS_2D_PHYSICS** = **10**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_LAYERS_3D_RENDER** = **11**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_LAYERS_3D_PHYSICS** = **12**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_FILE** = **13** --- String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "\*.doc".
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_DIR** = **14** --- String property is a directory (so pop up a file dialog when edited).
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_GLOBAL_FILE** = **15**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_GLOBAL_DIR** = **16**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_RESOURCE_TYPE** = **17** --- String property is a resource, so open the resource popup menu when edited.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_MULTILINE_TEXT** = **18**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_PLACEHOLDER_TEXT** = **19**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_COLOR_NO_ALPHA** = **20**
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSY** = **21** --- Hints that the image is compressed using lossy compression.
|
|
||||||
|
|
||||||
- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS** = **22** --- Hints that the image is compressed using lossless compression.
|
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Corner:
|
.. _enum_@GlobalScope_Corner:
|
||||||
|
|
||||||
@@ -508,6 +88,34 @@ enum **Corner**:
|
|||||||
|
|
||||||
- **CORNER_BOTTOM_LEFT** = **3**
|
- **CORNER_BOTTOM_LEFT** = **3**
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_Orientation:
|
||||||
|
|
||||||
|
enum **Orientation**:
|
||||||
|
|
||||||
|
- **VERTICAL** = **1** --- General vertical alignment, used usually for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
|
||||||
|
|
||||||
|
- **HORIZONTAL** = **0** --- General horizontal alignment, used usually for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_HAlign:
|
||||||
|
|
||||||
|
enum **HAlign**:
|
||||||
|
|
||||||
|
- **HALIGN_LEFT** = **0** --- Horizontal left alignment, usually for text-derived classes.
|
||||||
|
|
||||||
|
- **HALIGN_CENTER** = **1** --- Horizontal center alignment, usually for text-derived classes.
|
||||||
|
|
||||||
|
- **HALIGN_RIGHT** = **2** --- Horizontal right alignment, usually for text-derived classes.
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_VAlign:
|
||||||
|
|
||||||
|
enum **VAlign**:
|
||||||
|
|
||||||
|
- **VALIGN_TOP** = **0** --- Vertical top alignment, usually for text-derived classes.
|
||||||
|
|
||||||
|
- **VALIGN_CENTER** = **1** --- Vertical center alignment, usually for text-derived classes.
|
||||||
|
|
||||||
|
- **VALIGN_BOTTOM** = **2** --- Vertical bottom alignment, usually for text-derived classes.
|
||||||
|
|
||||||
.. _enum_@GlobalScope_KeyList:
|
.. _enum_@GlobalScope_KeyList:
|
||||||
|
|
||||||
enum **KeyList**:
|
enum **KeyList**:
|
||||||
@@ -996,6 +604,386 @@ enum **KeyList**:
|
|||||||
|
|
||||||
- **KEY_YDIAERESIS** = **255** --- ÿ key
|
- **KEY_YDIAERESIS** = **255** --- ÿ key
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_KeyModifierMask:
|
||||||
|
|
||||||
|
enum **KeyModifierMask**:
|
||||||
|
|
||||||
|
- **KEY_CODE_MASK** = **33554431** --- Key Code Mask
|
||||||
|
|
||||||
|
- **KEY_MODIFIER_MASK** = **-16777216** --- Modifier Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_SHIFT** = **33554432** --- Shift Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_ALT** = **67108864** --- Alt Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_META** = **134217728** --- Meta Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_CTRL** = **268435456** --- CTRL Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_CMD** = **268435456** --- CMD Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_KPAD** = **536870912** --- Keypad Key Mask
|
||||||
|
|
||||||
|
- **KEY_MASK_GROUP_SWITCH** = **1073741824** --- Group Switch Key Mask
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_ButtonList:
|
||||||
|
|
||||||
|
enum **ButtonList**:
|
||||||
|
|
||||||
|
- **BUTTON_LEFT** = **1** --- Left Mouse Button
|
||||||
|
|
||||||
|
- **BUTTON_RIGHT** = **2** --- Right Mouse Button
|
||||||
|
|
||||||
|
- **BUTTON_MIDDLE** = **3** --- Middle Mouse Button
|
||||||
|
|
||||||
|
- **BUTTON_XBUTTON1** = **8** --- Extra Mouse Button 1
|
||||||
|
|
||||||
|
- **BUTTON_XBUTTON2** = **9** --- Extra Mouse Button 2
|
||||||
|
|
||||||
|
- **BUTTON_WHEEL_UP** = **4** --- Mouse wheel up
|
||||||
|
|
||||||
|
- **BUTTON_WHEEL_DOWN** = **5** --- Mouse wheel down
|
||||||
|
|
||||||
|
- **BUTTON_WHEEL_LEFT** = **6** --- Mouse wheel left button
|
||||||
|
|
||||||
|
- **BUTTON_WHEEL_RIGHT** = **7** --- Mouse wheel right button
|
||||||
|
|
||||||
|
- **BUTTON_MASK_LEFT** = **1** --- Left Mouse Button Mask
|
||||||
|
|
||||||
|
- **BUTTON_MASK_RIGHT** = **2** --- Right Mouse Button Mask
|
||||||
|
|
||||||
|
- **BUTTON_MASK_MIDDLE** = **4** --- Middle Mouse Button Mask
|
||||||
|
|
||||||
|
- **BUTTON_MASK_XBUTTON1** = **128** --- Extra Mouse Button 1 Mask
|
||||||
|
|
||||||
|
- **BUTTON_MASK_XBUTTON2** = **256** --- Extra Mouse Button 2 Mask
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_JoystickList:
|
||||||
|
|
||||||
|
enum **JoystickList**:
|
||||||
|
|
||||||
|
- **JOY_BUTTON_0** = **0** --- Joypad Button 0
|
||||||
|
|
||||||
|
- **JOY_BUTTON_1** = **1** --- Joypad Button 1
|
||||||
|
|
||||||
|
- **JOY_BUTTON_2** = **2** --- Joypad Button 2
|
||||||
|
|
||||||
|
- **JOY_BUTTON_3** = **3** --- Joypad Button 3
|
||||||
|
|
||||||
|
- **JOY_BUTTON_4** = **4** --- Joypad Button 4
|
||||||
|
|
||||||
|
- **JOY_BUTTON_5** = **5** --- Joypad Button 5
|
||||||
|
|
||||||
|
- **JOY_BUTTON_6** = **6** --- Joypad Button 6
|
||||||
|
|
||||||
|
- **JOY_BUTTON_7** = **7** --- Joypad Button 7
|
||||||
|
|
||||||
|
- **JOY_BUTTON_8** = **8** --- Joypad Button 8
|
||||||
|
|
||||||
|
- **JOY_BUTTON_9** = **9** --- Joypad Button 9
|
||||||
|
|
||||||
|
- **JOY_BUTTON_10** = **10** --- Joypad Button 10
|
||||||
|
|
||||||
|
- **JOY_BUTTON_11** = **11** --- Joypad Button 11
|
||||||
|
|
||||||
|
- **JOY_BUTTON_12** = **12** --- Joypad Button 12
|
||||||
|
|
||||||
|
- **JOY_BUTTON_13** = **13** --- Joypad Button 13
|
||||||
|
|
||||||
|
- **JOY_BUTTON_14** = **14** --- Joypad Button 14
|
||||||
|
|
||||||
|
- **JOY_BUTTON_15** = **15** --- Joypad Button 15
|
||||||
|
|
||||||
|
- **JOY_BUTTON_MAX** = **16** --- Joypad Button 16
|
||||||
|
|
||||||
|
- **JOY_SONY_CIRCLE** = **1** --- DUALSHOCK circle button
|
||||||
|
|
||||||
|
- **JOY_SONY_X** = **0** --- DUALSHOCK X button
|
||||||
|
|
||||||
|
- **JOY_SONY_SQUARE** = **2** --- DUALSHOCK square button
|
||||||
|
|
||||||
|
- **JOY_SONY_TRIANGLE** = **3** --- DUALSHOCK triangle button
|
||||||
|
|
||||||
|
- **JOY_XBOX_B** = **1** --- XBOX controller B button
|
||||||
|
|
||||||
|
- **JOY_XBOX_A** = **0** --- XBOX controller A button
|
||||||
|
|
||||||
|
- **JOY_XBOX_X** = **2** --- XBOX controller X button
|
||||||
|
|
||||||
|
- **JOY_XBOX_Y** = **3** --- XBOX controller Y button
|
||||||
|
|
||||||
|
- **JOY_DS_A** = **1** --- DualShock controller A button
|
||||||
|
|
||||||
|
- **JOY_DS_B** = **0** --- DualShock controller B button
|
||||||
|
|
||||||
|
- **JOY_DS_X** = **3** --- DualShock controller X button
|
||||||
|
|
||||||
|
- **JOY_DS_Y** = **2** --- DualShock controller Y button
|
||||||
|
|
||||||
|
- **JOY_SELECT** = **10** --- Joypad Button Select
|
||||||
|
|
||||||
|
- **JOY_START** = **11** --- Joypad Button Start
|
||||||
|
|
||||||
|
- **JOY_DPAD_UP** = **12** --- Joypad DPad Up
|
||||||
|
|
||||||
|
- **JOY_DPAD_DOWN** = **13** --- Joypad DPad Down
|
||||||
|
|
||||||
|
- **JOY_DPAD_LEFT** = **14** --- Joypad DPad Left
|
||||||
|
|
||||||
|
- **JOY_DPAD_RIGHT** = **15** --- Joypad DPad Right
|
||||||
|
|
||||||
|
- **JOY_L** = **4** --- Joypad Left Shoulder Button
|
||||||
|
|
||||||
|
- **JOY_L2** = **6** --- Joypad Left Trigger
|
||||||
|
|
||||||
|
- **JOY_L3** = **8** --- Joypad Left Stick Click
|
||||||
|
|
||||||
|
- **JOY_R** = **5** --- Joypad Right Shoulder Button
|
||||||
|
|
||||||
|
- **JOY_R2** = **7** --- Joypad Right Trigger
|
||||||
|
|
||||||
|
- **JOY_R3** = **9** --- Joypad Right Stick Click
|
||||||
|
|
||||||
|
- **JOY_AXIS_0** = **0** --- Joypad Left Stick Horizontal Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_1** = **1** --- Joypad Left Stick Vertical Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_2** = **2** --- Joypad Right Stick Horizontal Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_3** = **3** --- Joypad Right Stick Vertical Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_4** = **4**
|
||||||
|
|
||||||
|
- **JOY_AXIS_5** = **5**
|
||||||
|
|
||||||
|
- **JOY_AXIS_6** = **6** --- Joypad Left Trigger Analog Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_7** = **7** --- Joypad Right Trigger Analog Axis
|
||||||
|
|
||||||
|
- **JOY_AXIS_8** = **8**
|
||||||
|
|
||||||
|
- **JOY_AXIS_9** = **9**
|
||||||
|
|
||||||
|
- **JOY_AXIS_MAX** = **10**
|
||||||
|
|
||||||
|
- **JOY_ANALOG_LX** = **0** --- Joypad Left Stick Horizontal Axis
|
||||||
|
|
||||||
|
- **JOY_ANALOG_LY** = **1** --- Joypad Left Stick Vertical Axis
|
||||||
|
|
||||||
|
- **JOY_ANALOG_RX** = **2** --- Joypad Right Stick Horizontal Axis
|
||||||
|
|
||||||
|
- **JOY_ANALOG_RY** = **3** --- Joypad Right Stick Vertical Axis
|
||||||
|
|
||||||
|
- **JOY_ANALOG_L2** = **6** --- Joypad Left Analog Trigger
|
||||||
|
|
||||||
|
- **JOY_ANALOG_R2** = **7** --- Joypad Right Analog Trigger
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_MidiMessageList:
|
||||||
|
|
||||||
|
enum **MidiMessageList**:
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_NOTE_OFF** = **8**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_NOTE_ON** = **9**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_AFTERTOUCH** = **10**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_CONTROL_CHANGE** = **11**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_PROGRAM_CHANGE** = **12**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_CHANNEL_PRESSURE** = **13**
|
||||||
|
|
||||||
|
- **MIDI_MESSAGE_PITCH_BEND** = **14**
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_Error:
|
||||||
|
|
||||||
|
enum **Error**:
|
||||||
|
|
||||||
|
- **OK** = **0** --- Functions that return Error return OK when no error occurred. Most functions don't return errors and/or just print errors to STDOUT.
|
||||||
|
|
||||||
|
- **FAILED** = **1** --- Generic error.
|
||||||
|
|
||||||
|
- **ERR_UNAVAILABLE** = **2** --- Unavailable error
|
||||||
|
|
||||||
|
- **ERR_UNCONFIGURED** = **3** --- Unconfigured error
|
||||||
|
|
||||||
|
- **ERR_UNAUTHORIZED** = **4** --- Unauthorized error
|
||||||
|
|
||||||
|
- **ERR_PARAMETER_RANGE_ERROR** = **5** --- Parameter range error
|
||||||
|
|
||||||
|
- **ERR_OUT_OF_MEMORY** = **6** --- Out of memory (OOM) error
|
||||||
|
|
||||||
|
- **ERR_FILE_NOT_FOUND** = **7** --- File: Not found error
|
||||||
|
|
||||||
|
- **ERR_FILE_BAD_DRIVE** = **8** --- File: Bad drive error
|
||||||
|
|
||||||
|
- **ERR_FILE_BAD_PATH** = **9** --- File: Bad path error
|
||||||
|
|
||||||
|
- **ERR_FILE_NO_PERMISSION** = **10** --- File: No permission error
|
||||||
|
|
||||||
|
- **ERR_FILE_ALREADY_IN_USE** = **11** --- File: Already in use error
|
||||||
|
|
||||||
|
- **ERR_FILE_CANT_OPEN** = **12** --- File: Can't open error
|
||||||
|
|
||||||
|
- **ERR_FILE_CANT_WRITE** = **13** --- File: Can't write error
|
||||||
|
|
||||||
|
- **ERR_FILE_CANT_READ** = **14** --- File: Can't read error
|
||||||
|
|
||||||
|
- **ERR_FILE_UNRECOGNIZED** = **15** --- File: Unrecognized error
|
||||||
|
|
||||||
|
- **ERR_FILE_CORRUPT** = **16** --- File: Corrupt error
|
||||||
|
|
||||||
|
- **ERR_FILE_MISSING_DEPENDENCIES** = **17** --- File: Missing dependencies error
|
||||||
|
|
||||||
|
- **ERR_FILE_EOF** = **18** --- File: End of file (EOF) error
|
||||||
|
|
||||||
|
- **ERR_CANT_OPEN** = **19** --- Can't open error
|
||||||
|
|
||||||
|
- **ERR_CANT_CREATE** = **20** --- Can't create error
|
||||||
|
|
||||||
|
- **ERR_PARSE_ERROR** = **43** --- Parse error
|
||||||
|
|
||||||
|
- **ERR_QUERY_FAILED** = **21** --- Query failed error
|
||||||
|
|
||||||
|
- **ERR_ALREADY_IN_USE** = **22** --- Already in use error
|
||||||
|
|
||||||
|
- **ERR_LOCKED** = **23** --- Locked error
|
||||||
|
|
||||||
|
- **ERR_TIMEOUT** = **24** --- Timeout error
|
||||||
|
|
||||||
|
- **ERR_CANT_ACQUIRE_RESOURCE** = **28** --- Can't acquire resource error
|
||||||
|
|
||||||
|
- **ERR_INVALID_DATA** = **30** --- Invalid data error
|
||||||
|
|
||||||
|
- **ERR_INVALID_PARAMETER** = **31** --- Invalid parameter error
|
||||||
|
|
||||||
|
- **ERR_ALREADY_EXISTS** = **32** --- Already exists error
|
||||||
|
|
||||||
|
- **ERR_DOES_NOT_EXIST** = **33** --- Does not exist error
|
||||||
|
|
||||||
|
- **ERR_DATABASE_CANT_READ** = **34** --- Database: Read error
|
||||||
|
|
||||||
|
- **ERR_DATABASE_CANT_WRITE** = **35** --- Database: Write error
|
||||||
|
|
||||||
|
- **ERR_COMPILATION_FAILED** = **36** --- Compilation failed error
|
||||||
|
|
||||||
|
- **ERR_METHOD_NOT_FOUND** = **37** --- Method not found error
|
||||||
|
|
||||||
|
- **ERR_LINK_FAILED** = **38** --- Linking failed error
|
||||||
|
|
||||||
|
- **ERR_SCRIPT_FAILED** = **39** --- Script failed error
|
||||||
|
|
||||||
|
- **ERR_CYCLIC_LINK** = **40** --- Cycling link (import cycle) error
|
||||||
|
|
||||||
|
- **ERR_BUSY** = **44** --- Busy error
|
||||||
|
|
||||||
|
- **ERR_HELP** = **46** --- Help error
|
||||||
|
|
||||||
|
- **ERR_BUG** = **47** --- Bug error
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_PropertyHint:
|
||||||
|
|
||||||
|
enum **PropertyHint**:
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_NONE** = **0** --- No hint for edited property.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_RANGE** = **1** --- Hints that the string is a range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_EXP_RANGE** = **2** --- Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_ENUM** = **3** --- Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_EXP_EASING** = **4**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_LENGTH** = **5**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_KEY_ACCEL** = **7**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_FLAGS** = **8** --- Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_LAYERS_2D_RENDER** = **9**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_LAYERS_2D_PHYSICS** = **10**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_LAYERS_3D_RENDER** = **11**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_LAYERS_3D_PHYSICS** = **12**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_FILE** = **13** --- String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "\*.doc".
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_DIR** = **14** --- String property is a directory (so pop up a file dialog when edited).
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_GLOBAL_FILE** = **15**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_GLOBAL_DIR** = **16**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_RESOURCE_TYPE** = **17** --- String property is a resource, so open the resource popup menu when edited.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_MULTILINE_TEXT** = **18**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_PLACEHOLDER_TEXT** = **19**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_COLOR_NO_ALPHA** = **20**
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSY** = **21** --- Hints that the image is compressed using lossy compression.
|
||||||
|
|
||||||
|
- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS** = **22** --- Hints that the image is compressed using lossless compression.
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_PropertyUsageFlags:
|
||||||
|
|
||||||
|
enum **PropertyUsageFlags**:
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_STORAGE** = **1** --- Property will be used as storage (default).
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_EDITOR** = **2** --- Property will be visible in editor (default).
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_NETWORK** = **4**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_EDITOR_HELPER** = **8**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_CHECKABLE** = **16**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_CHECKED** = **32**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_INTERNATIONALIZED** = **64**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_GROUP** = **128**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_CATEGORY** = **256**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_NO_INSTANCE_STATE** = **2048**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_RESTART_IF_CHANGED** = **4096**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_SCRIPT_VARIABLE** = **8192**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_DEFAULT** = **7** --- Default usage (storage and editor).
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_DEFAULT_INTL** = **71**
|
||||||
|
|
||||||
|
- **PROPERTY_USAGE_NOEDITOR** = **5**
|
||||||
|
|
||||||
|
.. _enum_@GlobalScope_MethodFlags:
|
||||||
|
|
||||||
|
enum **MethodFlags**:
|
||||||
|
|
||||||
|
- **METHOD_FLAG_NORMAL** = **1** --- Flag for normal method
|
||||||
|
|
||||||
|
- **METHOD_FLAG_EDITOR** = **2** --- Flag for editor method
|
||||||
|
|
||||||
|
- **METHOD_FLAG_NOSCRIPT** = **4**
|
||||||
|
|
||||||
|
- **METHOD_FLAG_CONST** = **8** --- Flag for constant method
|
||||||
|
|
||||||
|
- **METHOD_FLAG_REVERSE** = **16**
|
||||||
|
|
||||||
|
- **METHOD_FLAG_VIRTUAL** = **32** --- Flag for virtual method
|
||||||
|
|
||||||
|
- **METHOD_FLAG_FROM_SCRIPT** = **64** --- Flag for method from script
|
||||||
|
|
||||||
|
- **METHOD_FLAGS_DEFAULT** = **1** --- Default method flags
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Variant.Type:
|
.. _enum_@GlobalScope_Variant.Type:
|
||||||
|
|
||||||
enum **Variant.Type**:
|
enum **Variant.Type**:
|
||||||
@@ -1056,49 +1044,61 @@ enum **Variant.Type**:
|
|||||||
|
|
||||||
- **TYPE_MAX** = **27** --- Marker for end of type constants.
|
- **TYPE_MAX** = **27** --- Marker for end of type constants.
|
||||||
|
|
||||||
.. _enum_@GlobalScope_Margin:
|
.. _enum_@GlobalScope_Variant.Operator:
|
||||||
|
|
||||||
enum **Margin**:
|
enum **Variant.Operator**:
|
||||||
|
|
||||||
- **MARGIN_LEFT** = **0** --- Left margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
- **OP_EQUAL** = **0**
|
||||||
|
|
||||||
- **MARGIN_TOP** = **1** --- Top margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
- **OP_NOT_EQUAL** = **1**
|
||||||
|
|
||||||
- **MARGIN_RIGHT** = **2** --- Right margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
- **OP_LESS** = **2**
|
||||||
|
|
||||||
- **MARGIN_BOTTOM** = **3** --- Bottom margin, used usually for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>` derived classes.
|
- **OP_LESS_EQUAL** = **3**
|
||||||
|
|
||||||
.. _enum_@GlobalScope_ButtonList:
|
- **OP_GREATER** = **4**
|
||||||
|
|
||||||
enum **ButtonList**:
|
- **OP_GREATER_EQUAL** = **5**
|
||||||
|
|
||||||
- **BUTTON_LEFT** = **1** --- Left Mouse Button
|
- **OP_ADD** = **6**
|
||||||
|
|
||||||
- **BUTTON_RIGHT** = **2** --- Right Mouse Button
|
- **OP_SUBTRACT** = **7**
|
||||||
|
|
||||||
- **BUTTON_MIDDLE** = **3** --- Middle Mouse Button
|
- **OP_MULTIPLY** = **8**
|
||||||
|
|
||||||
- **BUTTON_XBUTTON1** = **8** --- Extra Mouse Button 1
|
- **OP_DIVIDE** = **9**
|
||||||
|
|
||||||
- **BUTTON_XBUTTON2** = **9** --- Extra Mouse Button 2
|
- **OP_NEGATE** = **10**
|
||||||
|
|
||||||
- **BUTTON_WHEEL_UP** = **4** --- Mouse wheel up
|
- **OP_POSITIVE** = **11**
|
||||||
|
|
||||||
- **BUTTON_WHEEL_DOWN** = **5** --- Mouse wheel down
|
- **OP_MODULE** = **12**
|
||||||
|
|
||||||
- **BUTTON_WHEEL_LEFT** = **6** --- Mouse wheel left button
|
- **OP_STRING_CONCAT** = **13**
|
||||||
|
|
||||||
- **BUTTON_WHEEL_RIGHT** = **7** --- Mouse wheel right button
|
- **OP_SHIFT_LEFT** = **14**
|
||||||
|
|
||||||
- **BUTTON_MASK_LEFT** = **1** --- Left Mouse Button Mask
|
- **OP_SHIFT_RIGHT** = **15**
|
||||||
|
|
||||||
- **BUTTON_MASK_RIGHT** = **2** --- Right Mouse Button Mask
|
- **OP_BIT_AND** = **16**
|
||||||
|
|
||||||
- **BUTTON_MASK_MIDDLE** = **4** --- Middle Mouse Button Mask
|
- **OP_BIT_OR** = **17**
|
||||||
|
|
||||||
- **BUTTON_MASK_XBUTTON1** = **128** --- Extra Mouse Button 1 Mask
|
- **OP_BIT_XOR** = **18**
|
||||||
|
|
||||||
- **BUTTON_MASK_XBUTTON2** = **256** --- Extra Mouse Button 2 Mask
|
- **OP_BIT_NEGATE** = **19**
|
||||||
|
|
||||||
|
- **OP_AND** = **20**
|
||||||
|
|
||||||
|
- **OP_OR** = **21**
|
||||||
|
|
||||||
|
- **OP_XOR** = **22**
|
||||||
|
|
||||||
|
- **OP_NOT** = **23**
|
||||||
|
|
||||||
|
- **OP_IN** = **24**
|
||||||
|
|
||||||
|
- **OP_MAX** = **25**
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|||||||
@@ -147,28 +147,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Animation_UpdateMode:
|
|
||||||
|
|
||||||
enum **UpdateMode**:
|
|
||||||
|
|
||||||
- **UPDATE_CONTINUOUS** = **0** --- Update between keyframes.
|
|
||||||
|
|
||||||
- **UPDATE_DISCRETE** = **1** --- Update at the keyframes and hold the value.
|
|
||||||
|
|
||||||
- **UPDATE_TRIGGER** = **2** --- Update at the keyframes.
|
|
||||||
|
|
||||||
- **UPDATE_CAPTURE** = **3**
|
|
||||||
|
|
||||||
.. _enum_Animation_InterpolationType:
|
|
||||||
|
|
||||||
enum **InterpolationType**:
|
|
||||||
|
|
||||||
- **INTERPOLATION_NEAREST** = **0** --- No interpolation (nearest value).
|
|
||||||
|
|
||||||
- **INTERPOLATION_LINEAR** = **1** --- Linear interpolation.
|
|
||||||
|
|
||||||
- **INTERPOLATION_CUBIC** = **2** --- Cubic interpolation.
|
|
||||||
|
|
||||||
.. _enum_Animation_TrackType:
|
.. _enum_Animation_TrackType:
|
||||||
|
|
||||||
enum **TrackType**:
|
enum **TrackType**:
|
||||||
@@ -185,6 +163,28 @@ enum **TrackType**:
|
|||||||
|
|
||||||
- **TYPE_ANIMATION** = **5**
|
- **TYPE_ANIMATION** = **5**
|
||||||
|
|
||||||
|
.. _enum_Animation_InterpolationType:
|
||||||
|
|
||||||
|
enum **InterpolationType**:
|
||||||
|
|
||||||
|
- **INTERPOLATION_NEAREST** = **0** --- No interpolation (nearest value).
|
||||||
|
|
||||||
|
- **INTERPOLATION_LINEAR** = **1** --- Linear interpolation.
|
||||||
|
|
||||||
|
- **INTERPOLATION_CUBIC** = **2** --- Cubic interpolation.
|
||||||
|
|
||||||
|
.. _enum_Animation_UpdateMode:
|
||||||
|
|
||||||
|
enum **UpdateMode**:
|
||||||
|
|
||||||
|
- **UPDATE_CONTINUOUS** = **0** --- Update between keyframes.
|
||||||
|
|
||||||
|
- **UPDATE_DISCRETE** = **1** --- Update at the keyframes and hold the value.
|
||||||
|
|
||||||
|
- **UPDATE_TRIGGER** = **2** --- Update at the keyframes.
|
||||||
|
|
||||||
|
- **UPDATE_CAPTURE** = **3**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AnimationNode
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AnimationNodeAdd2<class_AnimationNodeAdd2>`, :ref:`AnimationNodeAdd3<class_AnimationNodeAdd3>`, :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`, :ref:`AnimationRootNode<class_AnimationRootNode>`, :ref:`AnimationNodeBlend2<class_AnimationNodeBlend2>`, :ref:`AnimationNodeBlend3<class_AnimationNodeBlend3>`, :ref:`AnimationNodeTimeSeek<class_AnimationNodeTimeSeek>`, :ref:`AnimationNodeOneShot<class_AnimationNodeOneShot>`, :ref:`AnimationNodeTransition<class_AnimationNodeTransition>`, :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`
|
**Inherited By:** :ref:`AnimationNodeAdd2<class_AnimationNodeAdd2>`, :ref:`AnimationNodeAdd3<class_AnimationNodeAdd3>`, :ref:`AnimationNodeBlend2<class_AnimationNodeBlend2>`, :ref:`AnimationNodeBlend3<class_AnimationNodeBlend3>`, :ref:`AnimationNodeOneShot<class_AnimationNodeOneShot>`, :ref:`AnimationNodeOutput<class_AnimationNodeOutput>`, :ref:`AnimationNodeTimeScale<class_AnimationNodeTimeScale>`, :ref:`AnimationNodeTimeSeek<class_AnimationNodeTimeSeek>`, :ref:`AnimationNodeTransition<class_AnimationNodeTransition>`, :ref:`AnimationRootNode<class_AnimationRootNode>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AnimationRootNode
|
|||||||
|
|
||||||
**Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AnimationNodeAnimation<class_AnimationNodeAnimation>`, :ref:`AnimationNodeBlendSpace2D<class_AnimationNodeBlendSpace2D>`, :ref:`AnimationNodeStateMachine<class_AnimationNodeStateMachine>`, :ref:`AnimationNodeBlendSpace1D<class_AnimationNodeBlendSpace1D>`, :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`
|
**Inherited By:** :ref:`AnimationNodeAnimation<class_AnimationNodeAnimation>`, :ref:`AnimationNodeBlendSpace1D<class_AnimationNodeBlendSpace1D>`, :ref:`AnimationNodeBlendSpace2D<class_AnimationNodeBlendSpace2D>`, :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`, :ref:`AnimationNodeStateMachine<class_AnimationNodeStateMachine>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -151,14 +151,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_AnimationTreePlayer_AnimationProcessMode:
|
|
||||||
|
|
||||||
enum **AnimationProcessMode**:
|
|
||||||
|
|
||||||
- **ANIMATION_PROCESS_PHYSICS** = **0** --- Process animation during the physics process. This is especially useful when animating physics bodies.
|
|
||||||
|
|
||||||
- **ANIMATION_PROCESS_IDLE** = **1** --- Process animation during the idle process.
|
|
||||||
|
|
||||||
.. _enum_AnimationTreePlayer_NodeType:
|
.. _enum_AnimationTreePlayer_NodeType:
|
||||||
|
|
||||||
enum **NodeType**:
|
enum **NodeType**:
|
||||||
@@ -183,6 +175,14 @@ enum **NodeType**:
|
|||||||
|
|
||||||
- **NODE_TRANSITION** = **9** --- Transition node.
|
- **NODE_TRANSITION** = **9** --- Transition node.
|
||||||
|
|
||||||
|
.. _enum_AnimationTreePlayer_AnimationProcessMode:
|
||||||
|
|
||||||
|
enum **AnimationProcessMode**:
|
||||||
|
|
||||||
|
- **ANIMATION_PROCESS_PHYSICS** = **0** --- Process animation during the physics process. This is especially useful when animating physics bodies.
|
||||||
|
|
||||||
|
- **ANIMATION_PROCESS_IDLE** = **1** --- Process animation during the idle process.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -69,28 +69,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_ArrayMesh_ArrayFormat:
|
|
||||||
|
|
||||||
enum **ArrayFormat**:
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_VERTEX** = **1** --- Array format will include vertices (mandatory).
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_NORMAL** = **2** --- Array format will include normals
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_TANGENT** = **4** --- Array format will include tangents
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_COLOR** = **8** --- Array format will include a color array.
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_TEX_UV** = **16** --- Array format will include UVs.
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_TEX_UV2** = **32** --- Array format will include another set of UVs.
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_BONES** = **64** --- Array format will include bone indices.
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_WEIGHTS** = **128** --- Array format will include bone weights.
|
|
||||||
|
|
||||||
- **ARRAY_FORMAT_INDEX** = **256** --- Index array will be used.
|
|
||||||
|
|
||||||
.. _enum_ArrayMesh_ArrayType:
|
.. _enum_ArrayMesh_ArrayType:
|
||||||
|
|
||||||
enum **ArrayType**:
|
enum **ArrayType**:
|
||||||
@@ -117,6 +95,28 @@ For triangles, the index array is interpreted as triples, referring to the verti
|
|||||||
|
|
||||||
- **ARRAY_MAX** = **9**
|
- **ARRAY_MAX** = **9**
|
||||||
|
|
||||||
|
.. _enum_ArrayMesh_ArrayFormat:
|
||||||
|
|
||||||
|
enum **ArrayFormat**:
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_VERTEX** = **1** --- Array format will include vertices (mandatory).
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_NORMAL** = **2** --- Array format will include normals
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_TANGENT** = **4** --- Array format will include tangents
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_COLOR** = **8** --- Array format will include a color array.
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_TEX_UV** = **16** --- Array format will include UVs.
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_TEX_UV2** = **32** --- Array format will include another set of UVs.
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_BONES** = **64** --- Array format will include bone indices.
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_WEIGHTS** = **128** --- Array format will include bone weights.
|
||||||
|
|
||||||
|
- **ARRAY_FORMAT_INDEX** = **256** --- Index array will be used.
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,20 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_ARVRInterface_Capabilities:
|
||||||
|
|
||||||
|
enum **Capabilities**:
|
||||||
|
|
||||||
|
- **ARVR_NONE** = **0** --- No ARVR capabilities.
|
||||||
|
|
||||||
|
- **ARVR_MONO** = **1** --- This interface can work with normal rendering output (non-HMD based AR).
|
||||||
|
|
||||||
|
- **ARVR_STEREO** = **2** --- This interface supports stereoscopic rendering.
|
||||||
|
|
||||||
|
- **ARVR_AR** = **4** --- This interface support AR (video background and real world tracking).
|
||||||
|
|
||||||
|
- **ARVR_EXTERNAL** = **8** --- This interface outputs to an external device, if the main viewport is used the on screen output is an unmodified buffer of either the left or right eye (stretched if the viewport size is not changed to the same aspect ratio of get_render_targetsize. Using a separate viewport node frees up the main viewport for other purposes.
|
||||||
|
|
||||||
.. _enum_ARVRInterface_Eyes:
|
.. _enum_ARVRInterface_Eyes:
|
||||||
|
|
||||||
enum **Eyes**:
|
enum **Eyes**:
|
||||||
@@ -75,20 +89,6 @@ enum **Tracking_status**:
|
|||||||
|
|
||||||
- **ARVR_NOT_TRACKING** = **4** --- Tracking is not functional (camera not plugged in or obscured, lighthouses turned off, etc.)
|
- **ARVR_NOT_TRACKING** = **4** --- Tracking is not functional (camera not plugged in or obscured, lighthouses turned off, etc.)
|
||||||
|
|
||||||
.. _enum_ARVRInterface_Capabilities:
|
|
||||||
|
|
||||||
enum **Capabilities**:
|
|
||||||
|
|
||||||
- **ARVR_NONE** = **0** --- No ARVR capabilities.
|
|
||||||
|
|
||||||
- **ARVR_MONO** = **1** --- This interface can work with normal rendering output (non-HMD based AR).
|
|
||||||
|
|
||||||
- **ARVR_STEREO** = **2** --- This interface supports stereoscopic rendering.
|
|
||||||
|
|
||||||
- **ARVR_AR** = **4** --- This interface support AR (video background and real world tracking).
|
|
||||||
|
|
||||||
- **ARVR_EXTERNAL** = **8** --- This interface outputs to an external device, if the main viewport is used the on screen output is an unmodified buffer of either the left or right eye (stretched if the viewport size is not changed to the same aspect ratio of get_render_targetsize. Using a separate viewport node frees up the main viewport for other purposes.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -84,16 +84,6 @@ Signal send when a tracker is removed, you should remove any ARVRController or A
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_ARVRServer_RotationMode:
|
|
||||||
|
|
||||||
enum **RotationMode**:
|
|
||||||
|
|
||||||
- **RESET_FULL_ROTATION** = **0** --- Fully reset the orientation of the HMD. Regardless of what direction the user is looking to in the real world. The user will look dead ahead in the virtual world.
|
|
||||||
|
|
||||||
- **RESET_BUT_KEEP_TILT** = **1** --- Resets the orientation but keeps the tilt of the device. So if we're looking down, we keep looking down but heading will be reset.
|
|
||||||
|
|
||||||
- **DONT_RESET_ROTATION** = **2** --- Does not reset the orientation of the HMD, only the position of the player gets centered.
|
|
||||||
|
|
||||||
.. _enum_ARVRServer_TrackerType:
|
.. _enum_ARVRServer_TrackerType:
|
||||||
|
|
||||||
enum **TrackerType**:
|
enum **TrackerType**:
|
||||||
@@ -110,6 +100,16 @@ enum **TrackerType**:
|
|||||||
|
|
||||||
- **TRACKER_ANY** = **255** --- Used internally to select all trackers.
|
- **TRACKER_ANY** = **255** --- Used internally to select all trackers.
|
||||||
|
|
||||||
|
.. _enum_ARVRServer_RotationMode:
|
||||||
|
|
||||||
|
enum **RotationMode**:
|
||||||
|
|
||||||
|
- **RESET_FULL_ROTATION** = **0** --- Fully reset the orientation of the HMD. Regardless of what direction the user is looking to in the real world. The user will look dead ahead in the virtual world.
|
||||||
|
|
||||||
|
- **RESET_BUT_KEEP_TILT** = **1** --- Resets the orientation but keeps the tilt of the device. So if we're looking down, we keep looking down but heading will be reset.
|
||||||
|
|
||||||
|
- **DONT_RESET_ROTATION** = **2** --- Does not reset the orientation of the HMD, only the position of the player gets centered.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AudioEffect
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AudioEffectCompressor<class_AudioEffectCompressor>`, :ref:`AudioEffectLimiter<class_AudioEffectLimiter>`, :ref:`AudioEffectAmplify<class_AudioEffectAmplify>`, :ref:`AudioEffectFilter<class_AudioEffectFilter>`, :ref:`AudioEffectDistortion<class_AudioEffectDistortion>`, :ref:`AudioEffectDelay<class_AudioEffectDelay>`, :ref:`AudioEffectStereoEnhance<class_AudioEffectStereoEnhance>`, :ref:`AudioEffectReverb<class_AudioEffectReverb>`, :ref:`AudioEffectPanner<class_AudioEffectPanner>`, :ref:`AudioEffectEQ<class_AudioEffectEQ>`, :ref:`AudioEffectRecord<class_AudioEffectRecord>`, :ref:`AudioEffectChorus<class_AudioEffectChorus>`, :ref:`AudioEffectPitchShift<class_AudioEffectPitchShift>`, :ref:`AudioEffectPhaser<class_AudioEffectPhaser>`
|
**Inherited By:** :ref:`AudioEffectAmplify<class_AudioEffectAmplify>`, :ref:`AudioEffectChorus<class_AudioEffectChorus>`, :ref:`AudioEffectCompressor<class_AudioEffectCompressor>`, :ref:`AudioEffectDelay<class_AudioEffectDelay>`, :ref:`AudioEffectDistortion<class_AudioEffectDistortion>`, :ref:`AudioEffectEQ<class_AudioEffectEQ>`, :ref:`AudioEffectFilter<class_AudioEffectFilter>`, :ref:`AudioEffectLimiter<class_AudioEffectLimiter>`, :ref:`AudioEffectPanner<class_AudioEffectPanner>`, :ref:`AudioEffectPhaser<class_AudioEffectPhaser>`, :ref:`AudioEffectPitchShift<class_AudioEffectPitchShift>`, :ref:`AudioEffectRecord<class_AudioEffectRecord>`, :ref:`AudioEffectReverb<class_AudioEffectReverb>`, :ref:`AudioEffectStereoEnhance<class_AudioEffectStereoEnhance>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AudioEffectEQ
|
|||||||
|
|
||||||
**Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AudioEffectEQ6<class_AudioEffectEQ6>`, :ref:`AudioEffectEQ21<class_AudioEffectEQ21>`, :ref:`AudioEffectEQ10<class_AudioEffectEQ10>`
|
**Inherited By:** :ref:`AudioEffectEQ10<class_AudioEffectEQ10>`, :ref:`AudioEffectEQ21<class_AudioEffectEQ21>`, :ref:`AudioEffectEQ6<class_AudioEffectEQ6>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AudioEffectFilter
|
|||||||
|
|
||||||
**Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`AudioEffect<class_AudioEffect>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AudioEffectHighPassFilter<class_AudioEffectHighPassFilter>`, :ref:`AudioEffectBandLimitFilter<class_AudioEffectBandLimitFilter>`, :ref:`AudioEffectLowShelfFilter<class_AudioEffectLowShelfFilter>`, :ref:`AudioEffectHighShelfFilter<class_AudioEffectHighShelfFilter>`, :ref:`AudioEffectBandPassFilter<class_AudioEffectBandPassFilter>`, :ref:`AudioEffectNotchFilter<class_AudioEffectNotchFilter>`, :ref:`AudioEffectLowPassFilter<class_AudioEffectLowPassFilter>`
|
**Inherited By:** :ref:`AudioEffectBandLimitFilter<class_AudioEffectBandLimitFilter>`, :ref:`AudioEffectBandPassFilter<class_AudioEffectBandPassFilter>`, :ref:`AudioEffectHighPassFilter<class_AudioEffectHighPassFilter>`, :ref:`AudioEffectHighShelfFilter<class_AudioEffectHighShelfFilter>`, :ref:`AudioEffectLowPassFilter<class_AudioEffectLowPassFilter>`, :ref:`AudioEffectLowShelfFilter<class_AudioEffectLowShelfFilter>`, :ref:`AudioEffectNotchFilter<class_AudioEffectNotchFilter>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ AudioStream
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AudioStreamMicrophone<class_AudioStreamMicrophone>`, :ref:`AudioStreamSample<class_AudioStreamSample>`, :ref:`AudioStreamRandomPitch<class_AudioStreamRandomPitch>`, :ref:`AudioStreamOGGVorbis<class_AudioStreamOGGVorbis>`
|
**Inherited By:** :ref:`AudioStreamMicrophone<class_AudioStreamMicrophone>`, :ref:`AudioStreamOGGVorbis<class_AudioStreamOGGVorbis>`, :ref:`AudioStreamRandomPitch<class_AudioStreamRandomPitch>`, :ref:`AudioStreamSample<class_AudioStreamSample>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -84,24 +84,6 @@ Fires when the audio stops playing.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_AudioStreamPlayer3D_DopplerTracking:
|
|
||||||
|
|
||||||
enum **DopplerTracking**:
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_DISABLED** = **0** --- Disables doppler tracking.
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_IDLE_STEP** = **1** --- Executes doppler tracking in idle step.
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_PHYSICS_STEP** = **2** --- Executes doppler tracking in physics step.
|
|
||||||
|
|
||||||
.. _enum_AudioStreamPlayer3D_OutOfRangeMode:
|
|
||||||
|
|
||||||
enum **OutOfRangeMode**:
|
|
||||||
|
|
||||||
- **OUT_OF_RANGE_MIX** = **0** --- Mix this audio in, even when it's out of range.
|
|
||||||
|
|
||||||
- **OUT_OF_RANGE_PAUSE** = **1** --- Pause this audio when it gets out of range.
|
|
||||||
|
|
||||||
.. _enum_AudioStreamPlayer3D_AttenuationModel:
|
.. _enum_AudioStreamPlayer3D_AttenuationModel:
|
||||||
|
|
||||||
enum **AttenuationModel**:
|
enum **AttenuationModel**:
|
||||||
@@ -112,6 +94,24 @@ enum **AttenuationModel**:
|
|||||||
|
|
||||||
- **ATTENUATION_LOGARITHMIC** = **2** --- Logarithmic dampening of loudness according to distance.
|
- **ATTENUATION_LOGARITHMIC** = **2** --- Logarithmic dampening of loudness according to distance.
|
||||||
|
|
||||||
|
.. _enum_AudioStreamPlayer3D_OutOfRangeMode:
|
||||||
|
|
||||||
|
enum **OutOfRangeMode**:
|
||||||
|
|
||||||
|
- **OUT_OF_RANGE_MIX** = **0** --- Mix this audio in, even when it's out of range.
|
||||||
|
|
||||||
|
- **OUT_OF_RANGE_PAUSE** = **1** --- Pause this audio when it gets out of range.
|
||||||
|
|
||||||
|
.. _enum_AudioStreamPlayer3D_DopplerTracking:
|
||||||
|
|
||||||
|
enum **DopplerTracking**:
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_DISABLED** = **0** --- Disables doppler tracking.
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_IDLE_STEP** = **1** --- Executes doppler tracking in idle step.
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_PHYSICS_STEP** = **2** --- Executes doppler tracking in physics step.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,16 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_AudioStreamSample_Format:
|
||||||
|
|
||||||
|
enum **Format**:
|
||||||
|
|
||||||
|
- **FORMAT_8_BITS** = **0** --- Audio codec 8 bit.
|
||||||
|
|
||||||
|
- **FORMAT_16_BITS** = **1** --- Audio codec 16 bit.
|
||||||
|
|
||||||
|
- **FORMAT_IMA_ADPCM** = **2** --- Audio codec IMA ADPCM.
|
||||||
|
|
||||||
.. _enum_AudioStreamSample_LoopMode:
|
.. _enum_AudioStreamSample_LoopMode:
|
||||||
|
|
||||||
enum **LoopMode**:
|
enum **LoopMode**:
|
||||||
@@ -57,16 +67,6 @@ enum **LoopMode**:
|
|||||||
|
|
||||||
- **LOOP_BACKWARD** = **3** --- Audio loops the data between loop_begin and loop_end playing backward only.
|
- **LOOP_BACKWARD** = **3** --- Audio loops the data between loop_begin and loop_end playing backward only.
|
||||||
|
|
||||||
.. _enum_AudioStreamSample_Format:
|
|
||||||
|
|
||||||
enum **Format**:
|
|
||||||
|
|
||||||
- **FORMAT_8_BITS** = **0** --- Audio codec 8 bit.
|
|
||||||
|
|
||||||
- **FORMAT_16_BITS** = **1** --- Audio codec 16 bit.
|
|
||||||
|
|
||||||
- **FORMAT_IMA_ADPCM** = **2** --- Audio codec IMA ADPCM.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,14 @@ enum **BakeQuality**:
|
|||||||
|
|
||||||
- **BAKE_QUALITY_HIGH** = **2** --- Highest bake quality mode. Takes longer to calculate.
|
- **BAKE_QUALITY_HIGH** = **2** --- Highest bake quality mode. Takes longer to calculate.
|
||||||
|
|
||||||
|
.. _enum_BakedLightmap_BakeMode:
|
||||||
|
|
||||||
|
enum **BakeMode**:
|
||||||
|
|
||||||
|
- **BAKE_MODE_CONE_TRACE** = **0** --- Less precise but faster bake mode.
|
||||||
|
|
||||||
|
- **BAKE_MODE_RAY_TRACE** = **1** --- More precise bake mode but can take considerably longer to bake.
|
||||||
|
|
||||||
.. _enum_BakedLightmap_BakeError:
|
.. _enum_BakedLightmap_BakeError:
|
||||||
|
|
||||||
enum **BakeError**:
|
enum **BakeError**:
|
||||||
@@ -77,14 +85,6 @@ enum **BakeError**:
|
|||||||
|
|
||||||
- **BAKE_ERROR_USER_ABORTED** = **4**
|
- **BAKE_ERROR_USER_ABORTED** = **4**
|
||||||
|
|
||||||
.. _enum_BakedLightmap_BakeMode:
|
|
||||||
|
|
||||||
enum **BakeMode**:
|
|
||||||
|
|
||||||
- **BAKE_MODE_CONE_TRACE** = **0** --- Less precise but faster bake mode.
|
|
||||||
|
|
||||||
- **BAKE_MODE_RAY_TRACE** = **1** --- More precise bake mode but can take considerably longer to bake.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BaseButton
|
|||||||
|
|
||||||
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`LinkButton<class_LinkButton>`, :ref:`TextureButton<class_TextureButton>`, :ref:`Button<class_Button>`
|
**Inherited By:** :ref:`Button<class_Button>`, :ref:`LinkButton<class_LinkButton>`, :ref:`TextureButton<class_TextureButton>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
@@ -84,14 +84,6 @@ This signal is emitted when the button was just toggled between pressed and norm
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_BaseButton_ActionMode:
|
|
||||||
|
|
||||||
enum **ActionMode**:
|
|
||||||
|
|
||||||
- **ACTION_MODE_BUTTON_PRESS** = **0** --- Require just a press to consider the button clicked.
|
|
||||||
|
|
||||||
- **ACTION_MODE_BUTTON_RELEASE** = **1** --- Require a press and a subsequent release before considering the button clicked.
|
|
||||||
|
|
||||||
.. _enum_BaseButton_DrawMode:
|
.. _enum_BaseButton_DrawMode:
|
||||||
|
|
||||||
enum **DrawMode**:
|
enum **DrawMode**:
|
||||||
@@ -106,6 +98,14 @@ enum **DrawMode**:
|
|||||||
|
|
||||||
- **DRAW_HOVER_PRESSED** = **4**
|
- **DRAW_HOVER_PRESSED** = **4**
|
||||||
|
|
||||||
|
.. _enum_BaseButton_ActionMode:
|
||||||
|
|
||||||
|
enum **ActionMode**:
|
||||||
|
|
||||||
|
- **ACTION_MODE_BUTTON_PRESS** = **0** --- Require just a press to consider the button clicked.
|
||||||
|
|
||||||
|
- **ACTION_MODE_BUTTON_RELEASE** = **1** --- Require a press and a subsequent release before considering the button clicked.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BoxContainer
|
|||||||
|
|
||||||
**Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VBoxContainer<class_VBoxContainer>`, :ref:`HBoxContainer<class_HBoxContainer>`, :ref:`ColorPicker<class_ColorPicker>`
|
**Inherited By:** :ref:`ColorPicker<class_ColorPicker>`, :ref:`HBoxContainer<class_HBoxContainer>`, :ref:`VBoxContainer<class_VBoxContainer>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Button
|
|||||||
|
|
||||||
**Inherits:** :ref:`BaseButton<class_BaseButton>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`BaseButton<class_BaseButton>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`OptionButton<class_OptionButton>`, :ref:`ColorPickerButton<class_ColorPickerButton>`, :ref:`CheckButton<class_CheckButton>`, :ref:`MenuButton<class_MenuButton>`, :ref:`ToolButton<class_ToolButton>`, :ref:`CheckBox<class_CheckBox>`
|
**Inherited By:** :ref:`CheckBox<class_CheckBox>`, :ref:`CheckButton<class_CheckButton>`, :ref:`ColorPickerButton<class_ColorPickerButton>`, :ref:`MenuButton<class_MenuButton>`, :ref:`OptionButton<class_OptionButton>`, :ref:`ToolButton<class_ToolButton>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Camera
|
|||||||
|
|
||||||
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`InterpolatedCamera<class_InterpolatedCamera>`, :ref:`ClippedCamera<class_ClippedCamera>`, :ref:`ARVRCamera<class_ARVRCamera>`
|
**Inherited By:** :ref:`ARVRCamera<class_ARVRCamera>`, :ref:`ClippedCamera<class_ClippedCamera>`, :ref:`InterpolatedCamera<class_InterpolatedCamera>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
@@ -81,16 +81,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Camera_DopplerTracking:
|
|
||||||
|
|
||||||
enum **DopplerTracking**:
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_DISABLED** = **0** --- Disable Doppler effect simulation (default).
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_IDLE_STEP** = **1** --- Simulate Doppler effect by tracking positions of objects that are changed in ``_process``. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's ``pitch shift``).
|
|
||||||
|
|
||||||
- **DOPPLER_TRACKING_PHYSICS_STEP** = **2** --- Simulate Doppler effect by tracking positions of objects that are changed in ``_physics_process``. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's ``pitch shift``).
|
|
||||||
|
|
||||||
.. _enum_Camera_Projection:
|
.. _enum_Camera_Projection:
|
||||||
|
|
||||||
enum **Projection**:
|
enum **Projection**:
|
||||||
@@ -107,6 +97,16 @@ enum **KeepAspect**:
|
|||||||
|
|
||||||
- **KEEP_HEIGHT** = **1** --- Preserves the vertical aspect ratio.
|
- **KEEP_HEIGHT** = **1** --- Preserves the vertical aspect ratio.
|
||||||
|
|
||||||
|
.. _enum_Camera_DopplerTracking:
|
||||||
|
|
||||||
|
enum **DopplerTracking**:
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_DISABLED** = **0** --- Disable Doppler effect simulation (default).
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_IDLE_STEP** = **1** --- Simulate Doppler effect by tracking positions of objects that are changed in ``_process``. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's ``pitch shift``).
|
||||||
|
|
||||||
|
- **DOPPLER_TRACKING_PHYSICS_STEP** = **2** --- Simulate Doppler effect by tracking positions of objects that are changed in ``_physics_process``. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's ``pitch shift``).
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CanvasItem
|
|||||||
|
|
||||||
**Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`Node2D<class_Node2D>`, :ref:`Control<class_Control>`
|
**Inherited By:** :ref:`Control<class_Control>`, :ref:`Node2D<class_Node2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -36,16 +36,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_CanvasItemMaterial_LightMode:
|
|
||||||
|
|
||||||
enum **LightMode**:
|
|
||||||
|
|
||||||
- **LIGHT_MODE_NORMAL** = **0** --- Render the material using both light and non-light sensitive material properties.
|
|
||||||
|
|
||||||
- **LIGHT_MODE_UNSHADED** = **1** --- Render the material as if there were no light.
|
|
||||||
|
|
||||||
- **LIGHT_MODE_LIGHT_ONLY** = **2** --- Render the material as if there were only light.
|
|
||||||
|
|
||||||
.. _enum_CanvasItemMaterial_BlendMode:
|
.. _enum_CanvasItemMaterial_BlendMode:
|
||||||
|
|
||||||
enum **BlendMode**:
|
enum **BlendMode**:
|
||||||
@@ -60,6 +50,16 @@ enum **BlendMode**:
|
|||||||
|
|
||||||
- **BLEND_MODE_PREMULT_ALPHA** = **4** --- Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
|
- **BLEND_MODE_PREMULT_ALPHA** = **4** --- Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
|
||||||
|
|
||||||
|
.. _enum_CanvasItemMaterial_LightMode:
|
||||||
|
|
||||||
|
enum **LightMode**:
|
||||||
|
|
||||||
|
- **LIGHT_MODE_NORMAL** = **0** --- Render the material using both light and non-light sensitive material properties.
|
||||||
|
|
||||||
|
- **LIGHT_MODE_UNSHADED** = **1** --- Render the material as if there were no light.
|
||||||
|
|
||||||
|
- **LIGHT_MODE_LIGHT_ONLY** = **2** --- Render the material as if there were only light.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CollisionObject
|
|||||||
|
|
||||||
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PhysicsBody<class_PhysicsBody>`, :ref:`Area<class_Area>`
|
**Inherited By:** :ref:`Area<class_Area>`, :ref:`PhysicsBody<class_PhysicsBody>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CollisionObject2D
|
|||||||
|
|
||||||
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PhysicsBody2D<class_PhysicsBody2D>`, :ref:`Area2D<class_Area2D>`
|
**Inherited By:** :ref:`Area2D<class_Area2D>`, :ref:`PhysicsBody2D<class_PhysicsBody2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ConfirmationDialog
|
|||||||
|
|
||||||
**Inherits:** :ref:`AcceptDialog<class_AcceptDialog>` **<** :ref:`WindowDialog<class_WindowDialog>` **<** :ref:`Popup<class_Popup>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`AcceptDialog<class_AcceptDialog>` **<** :ref:`WindowDialog<class_WindowDialog>` **<** :ref:`Popup<class_Popup>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`ScriptCreateDialog<class_ScriptCreateDialog>`, :ref:`EditorFileDialog<class_EditorFileDialog>`, :ref:`FileDialog<class_FileDialog>`
|
**Inherited By:** :ref:`EditorFileDialog<class_EditorFileDialog>`, :ref:`FileDialog<class_FileDialog>`, :ref:`ScriptCreateDialog<class_ScriptCreateDialog>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Container
|
|||||||
|
|
||||||
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PanelContainer<class_PanelContainer>`, :ref:`EditorProperty<class_EditorProperty>`, :ref:`GridContainer<class_GridContainer>`, :ref:`ScrollContainer<class_ScrollContainer>`, :ref:`ViewportContainer<class_ViewportContainer>`, :ref:`MarginContainer<class_MarginContainer>`, :ref:`CenterContainer<class_CenterContainer>`, :ref:`GraphNode<class_GraphNode>`, :ref:`SplitContainer<class_SplitContainer>`, :ref:`BoxContainer<class_BoxContainer>`, :ref:`TabContainer<class_TabContainer>`
|
**Inherited By:** :ref:`BoxContainer<class_BoxContainer>`, :ref:`CenterContainer<class_CenterContainer>`, :ref:`EditorProperty<class_EditorProperty>`, :ref:`GraphNode<class_GraphNode>`, :ref:`GridContainer<class_GridContainer>`, :ref:`MarginContainer<class_MarginContainer>`, :ref:`PanelContainer<class_PanelContainer>`, :ref:`ScrollContainer<class_ScrollContainer>`, :ref:`SplitContainer<class_SplitContainer>`, :ref:`TabContainer<class_TabContainer>`, :ref:`ViewportContainer<class_ViewportContainer>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Control
|
|||||||
|
|
||||||
**Inherits:** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`TextureRect<class_TextureRect>`, :ref:`ColorRect<class_ColorRect>`, :ref:`Label<class_Label>`, :ref:`Tabs<class_Tabs>`, :ref:`GraphEdit<class_GraphEdit>`, :ref:`VideoPlayer<class_VideoPlayer>`, :ref:`NinePatchRect<class_NinePatchRect>`, :ref:`LineEdit<class_LineEdit>`, :ref:`Container<class_Container>`, :ref:`TextEdit<class_TextEdit>`, :ref:`BaseButton<class_BaseButton>`, :ref:`Popup<class_Popup>`, :ref:`Tree<class_Tree>`, :ref:`Separator<class_Separator>`, :ref:`ReferenceRect<class_ReferenceRect>`, :ref:`Panel<class_Panel>`, :ref:`Range<class_Range>`, :ref:`RichTextLabel<class_RichTextLabel>`, :ref:`ItemList<class_ItemList>`
|
**Inherited By:** :ref:`BaseButton<class_BaseButton>`, :ref:`ColorRect<class_ColorRect>`, :ref:`Container<class_Container>`, :ref:`GraphEdit<class_GraphEdit>`, :ref:`ItemList<class_ItemList>`, :ref:`Label<class_Label>`, :ref:`LineEdit<class_LineEdit>`, :ref:`NinePatchRect<class_NinePatchRect>`, :ref:`Panel<class_Panel>`, :ref:`Popup<class_Popup>`, :ref:`Range<class_Range>`, :ref:`ReferenceRect<class_ReferenceRect>`, :ref:`RichTextLabel<class_RichTextLabel>`, :ref:`Separator<class_Separator>`, :ref:`Tabs<class_Tabs>`, :ref:`TextEdit<class_TextEdit>`, :ref:`TextureRect<class_TextureRect>`, :ref:`Tree<class_Tree>`, :ref:`VideoPlayer<class_VideoPlayer>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
@@ -274,19 +274,15 @@ Emitted when one of the size flags changes. See :ref:`size_flags_horizontal<clas
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Control_SizeFlags:
|
.. _enum_Control_FocusMode:
|
||||||
|
|
||||||
enum **SizeFlags**:
|
enum **FocusMode**:
|
||||||
|
|
||||||
- **SIZE_FILL** = **1** --- Tells the parent :ref:`Container<class_Container>` to expand the bounds of this node to fill all the available space without pushing any other node. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
- **FOCUS_NONE** = **0** --- The node cannot grab focus. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
||||||
|
|
||||||
- **SIZE_EXPAND** = **2** --- Tells the parent :ref:`Container<class_Container>` to let this node take all the available space on the axis you flag. If multiple neighboring nodes are set to expand, they'll share the space based on their stretch ratio. See :ref:`size_flags_stretch_ratio<class_Control_size_flags_stretch_ratio>`. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
- **FOCUS_CLICK** = **1** --- The node can only grab focus on mouse clicks. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
||||||
|
|
||||||
- **SIZE_EXPAND_FILL** = **3** --- Sets the node's size flags to both fill and expand. See the 2 constants above for more information.
|
- **FOCUS_ALL** = **2** --- The node can grab focus on mouse click or using the arrows and the Tab keys on the keyboard. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
||||||
|
|
||||||
- **SIZE_SHRINK_CENTER** = **4** --- Tells the parent :ref:`Container<class_Container>` to center the node in itself. It centers the control based on its bounding box, so it doesn't work with the fill or expand size flags. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
|
||||||
|
|
||||||
- **SIZE_SHRINK_END** = **8** --- Tells the parent :ref:`Container<class_Container>` to align the node with its end, either the bottom or the right edge. It doesn't work with the fill or expand size flags. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
|
||||||
|
|
||||||
.. _enum_Control_CursorShape:
|
.. _enum_Control_CursorShape:
|
||||||
|
|
||||||
@@ -326,38 +322,6 @@ enum **CursorShape**:
|
|||||||
|
|
||||||
- **CURSOR_HELP** = **16** --- Show the system's help mouse cursor when the user hovers the node, a question mark.
|
- **CURSOR_HELP** = **16** --- Show the system's help mouse cursor when the user hovers the node, a question mark.
|
||||||
|
|
||||||
.. _enum_Control_FocusMode:
|
|
||||||
|
|
||||||
enum **FocusMode**:
|
|
||||||
|
|
||||||
- **FOCUS_NONE** = **0** --- The node cannot grab focus. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
|
||||||
|
|
||||||
- **FOCUS_CLICK** = **1** --- The node can only grab focus on mouse clicks. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
|
||||||
|
|
||||||
- **FOCUS_ALL** = **2** --- The node can grab focus on mouse click or using the arrows and the Tab keys on the keyboard. Use with :ref:`focus_mode<class_Control_focus_mode>`.
|
|
||||||
|
|
||||||
.. _enum_Control_GrowDirection:
|
|
||||||
|
|
||||||
enum **GrowDirection**:
|
|
||||||
|
|
||||||
- **GROW_DIRECTION_BEGIN** = **0**
|
|
||||||
|
|
||||||
- **GROW_DIRECTION_END** = **1**
|
|
||||||
|
|
||||||
- **GROW_DIRECTION_BOTH** = **2**
|
|
||||||
|
|
||||||
.. _enum_Control_LayoutPresetMode:
|
|
||||||
|
|
||||||
enum **LayoutPresetMode**:
|
|
||||||
|
|
||||||
- **PRESET_MODE_MINSIZE** = **0**
|
|
||||||
|
|
||||||
- **PRESET_MODE_KEEP_WIDTH** = **1**
|
|
||||||
|
|
||||||
- **PRESET_MODE_KEEP_HEIGHT** = **2**
|
|
||||||
|
|
||||||
- **PRESET_MODE_KEEP_SIZE** = **3**
|
|
||||||
|
|
||||||
.. _enum_Control_LayoutPreset:
|
.. _enum_Control_LayoutPreset:
|
||||||
|
|
||||||
enum **LayoutPreset**:
|
enum **LayoutPreset**:
|
||||||
@@ -394,6 +358,32 @@ enum **LayoutPreset**:
|
|||||||
|
|
||||||
- **PRESET_WIDE** = **15** --- Snap all 4 anchors to the respective corners of the parent container. Set all 4 margins to 0 after you applied this preset and the ``Control`` will fit its parent container. Use with :ref:`set_anchors_preset<class_Control_set_anchors_preset>`.
|
- **PRESET_WIDE** = **15** --- Snap all 4 anchors to the respective corners of the parent container. Set all 4 margins to 0 after you applied this preset and the ``Control`` will fit its parent container. Use with :ref:`set_anchors_preset<class_Control_set_anchors_preset>`.
|
||||||
|
|
||||||
|
.. _enum_Control_LayoutPresetMode:
|
||||||
|
|
||||||
|
enum **LayoutPresetMode**:
|
||||||
|
|
||||||
|
- **PRESET_MODE_MINSIZE** = **0**
|
||||||
|
|
||||||
|
- **PRESET_MODE_KEEP_WIDTH** = **1**
|
||||||
|
|
||||||
|
- **PRESET_MODE_KEEP_HEIGHT** = **2**
|
||||||
|
|
||||||
|
- **PRESET_MODE_KEEP_SIZE** = **3**
|
||||||
|
|
||||||
|
.. _enum_Control_SizeFlags:
|
||||||
|
|
||||||
|
enum **SizeFlags**:
|
||||||
|
|
||||||
|
- **SIZE_FILL** = **1** --- Tells the parent :ref:`Container<class_Container>` to expand the bounds of this node to fill all the available space without pushing any other node. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
||||||
|
|
||||||
|
- **SIZE_EXPAND** = **2** --- Tells the parent :ref:`Container<class_Container>` to let this node take all the available space on the axis you flag. If multiple neighboring nodes are set to expand, they'll share the space based on their stretch ratio. See :ref:`size_flags_stretch_ratio<class_Control_size_flags_stretch_ratio>`. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
||||||
|
|
||||||
|
- **SIZE_EXPAND_FILL** = **3** --- Sets the node's size flags to both fill and expand. See the 2 constants above for more information.
|
||||||
|
|
||||||
|
- **SIZE_SHRINK_CENTER** = **4** --- Tells the parent :ref:`Container<class_Container>` to center the node in itself. It centers the control based on its bounding box, so it doesn't work with the fill or expand size flags. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
||||||
|
|
||||||
|
- **SIZE_SHRINK_END** = **8** --- Tells the parent :ref:`Container<class_Container>` to align the node with its end, either the bottom or the right edge. It doesn't work with the fill or expand size flags. Use with :ref:`size_flags_horizontal<class_Control_size_flags_horizontal>` and :ref:`size_flags_vertical<class_Control_size_flags_vertical>`.
|
||||||
|
|
||||||
.. _enum_Control_MouseFilter:
|
.. _enum_Control_MouseFilter:
|
||||||
|
|
||||||
enum **MouseFilter**:
|
enum **MouseFilter**:
|
||||||
@@ -404,6 +394,16 @@ enum **MouseFilter**:
|
|||||||
|
|
||||||
- **MOUSE_FILTER_IGNORE** = **2** --- The control will not receive mouse button input events through :ref:`_gui_input<class_Control__gui_input>` and will not block other controls from receiving these events. These events will also not be handled automatically.
|
- **MOUSE_FILTER_IGNORE** = **2** --- The control will not receive mouse button input events through :ref:`_gui_input<class_Control__gui_input>` and will not block other controls from receiving these events. These events will also not be handled automatically.
|
||||||
|
|
||||||
|
.. _enum_Control_GrowDirection:
|
||||||
|
|
||||||
|
enum **GrowDirection**:
|
||||||
|
|
||||||
|
- **GROW_DIRECTION_BEGIN** = **0**
|
||||||
|
|
||||||
|
- **GROW_DIRECTION_END** = **1**
|
||||||
|
|
||||||
|
- **GROW_DIRECTION_BOTH** = **2**
|
||||||
|
|
||||||
.. _enum_Control_Anchor:
|
.. _enum_Control_Anchor:
|
||||||
|
|
||||||
enum **Anchor**:
|
enum **Anchor**:
|
||||||
|
|||||||
@@ -151,15 +151,15 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_CPUParticles_Flags:
|
.. _enum_CPUParticles_DrawOrder:
|
||||||
|
|
||||||
enum **Flags**:
|
enum **DrawOrder**:
|
||||||
|
|
||||||
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0**
|
- **DRAW_ORDER_INDEX** = **0**
|
||||||
|
|
||||||
- **FLAG_ROTATE_Y** = **1**
|
- **DRAW_ORDER_LIFETIME** = **1**
|
||||||
|
|
||||||
- **FLAG_MAX** = **3**
|
- **DRAW_ORDER_VIEW_DEPTH** = **2**
|
||||||
|
|
||||||
.. _enum_CPUParticles_Parameter:
|
.. _enum_CPUParticles_Parameter:
|
||||||
|
|
||||||
@@ -189,6 +189,16 @@ enum **Parameter**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **11**
|
- **PARAM_MAX** = **11**
|
||||||
|
|
||||||
|
.. _enum_CPUParticles_Flags:
|
||||||
|
|
||||||
|
enum **Flags**:
|
||||||
|
|
||||||
|
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0**
|
||||||
|
|
||||||
|
- **FLAG_ROTATE_Y** = **1**
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **3**
|
||||||
|
|
||||||
.. _enum_CPUParticles_EmissionShape:
|
.. _enum_CPUParticles_EmissionShape:
|
||||||
|
|
||||||
enum **EmissionShape**:
|
enum **EmissionShape**:
|
||||||
@@ -203,16 +213,6 @@ enum **EmissionShape**:
|
|||||||
|
|
||||||
- **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
|
- **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
|
||||||
|
|
||||||
.. _enum_CPUParticles_DrawOrder:
|
|
||||||
|
|
||||||
enum **DrawOrder**:
|
|
||||||
|
|
||||||
- **DRAW_ORDER_INDEX** = **0**
|
|
||||||
|
|
||||||
- **DRAW_ORDER_LIFETIME** = **1**
|
|
||||||
|
|
||||||
- **DRAW_ORDER_VIEW_DEPTH** = **2**
|
|
||||||
|
|
||||||
Property Descriptions
|
Property Descriptions
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
@@ -149,13 +149,13 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_CPUParticles2D_Flags:
|
.. _enum_CPUParticles2D_DrawOrder:
|
||||||
|
|
||||||
enum **Flags**:
|
enum **DrawOrder**:
|
||||||
|
|
||||||
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0**
|
- **DRAW_ORDER_INDEX** = **0**
|
||||||
|
|
||||||
- **FLAG_MAX** = **1**
|
- **DRAW_ORDER_LIFETIME** = **1**
|
||||||
|
|
||||||
.. _enum_CPUParticles2D_Parameter:
|
.. _enum_CPUParticles2D_Parameter:
|
||||||
|
|
||||||
@@ -187,6 +187,14 @@ enum **Parameter**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **12**
|
- **PARAM_MAX** = **12**
|
||||||
|
|
||||||
|
.. _enum_CPUParticles2D_Flags:
|
||||||
|
|
||||||
|
enum **Flags**:
|
||||||
|
|
||||||
|
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0**
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **1**
|
||||||
|
|
||||||
.. _enum_CPUParticles2D_EmissionShape:
|
.. _enum_CPUParticles2D_EmissionShape:
|
||||||
|
|
||||||
enum **EmissionShape**:
|
enum **EmissionShape**:
|
||||||
@@ -201,14 +209,6 @@ enum **EmissionShape**:
|
|||||||
|
|
||||||
- **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
|
- **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
|
||||||
|
|
||||||
.. _enum_CPUParticles2D_DrawOrder:
|
|
||||||
|
|
||||||
enum **DrawOrder**:
|
|
||||||
|
|
||||||
- **DRAW_ORDER_INDEX** = **0**
|
|
||||||
|
|
||||||
- **DRAW_ORDER_LIFETIME** = **1**
|
|
||||||
|
|
||||||
Property Descriptions
|
Property Descriptions
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ CSGPrimitive
|
|||||||
|
|
||||||
**Inherits:** :ref:`CSGShape<class_CSGShape>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`CSGShape<class_CSGShape>` **<** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`CSGSphere<class_CSGSphere>`, :ref:`CSGPolygon<class_CSGPolygon>`, :ref:`CSGCylinder<class_CSGCylinder>`, :ref:`CSGBox<class_CSGBox>`, :ref:`CSGTorus<class_CSGTorus>`, :ref:`CSGMesh<class_CSGMesh>`
|
**Inherited By:** :ref:`CSGBox<class_CSGBox>`, :ref:`CSGCylinder<class_CSGCylinder>`, :ref:`CSGMesh<class_CSGMesh>`, :ref:`CSGPolygon<class_CSGPolygon>`, :ref:`CSGSphere<class_CSGSphere>`, :ref:`CSGTorus<class_CSGTorus>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -43,18 +43,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_CubeMap_Flags:
|
|
||||||
|
|
||||||
enum **Flags**:
|
|
||||||
|
|
||||||
- **FLAG_MIPMAPS** = **1** --- Generate mipmaps, to enable smooth zooming out of the texture.
|
|
||||||
|
|
||||||
- **FLAG_REPEAT** = **2** --- Repeat (instead of clamp to edge).
|
|
||||||
|
|
||||||
- **FLAG_FILTER** = **4** --- Turn on magnifying filter, to enable smooth zooming in of the texture.
|
|
||||||
|
|
||||||
- **FLAGS_DEFAULT** = **7** --- Default flags. Generate mipmaps, repeat, and filter are enabled.
|
|
||||||
|
|
||||||
.. _enum_CubeMap_Storage:
|
.. _enum_CubeMap_Storage:
|
||||||
|
|
||||||
enum **Storage**:
|
enum **Storage**:
|
||||||
@@ -81,6 +69,18 @@ enum **Side**:
|
|||||||
|
|
||||||
- **SIDE_BACK** = **5** --- Identifier for the back face of the ``CubeMap``.
|
- **SIDE_BACK** = **5** --- Identifier for the back face of the ``CubeMap``.
|
||||||
|
|
||||||
|
.. _enum_CubeMap_Flags:
|
||||||
|
|
||||||
|
enum **Flags**:
|
||||||
|
|
||||||
|
- **FLAG_MIPMAPS** = **1** --- Generate mipmaps, to enable smooth zooming out of the texture.
|
||||||
|
|
||||||
|
- **FLAG_REPEAT** = **2** --- Repeat (instead of clamp to edge).
|
||||||
|
|
||||||
|
- **FLAG_FILTER** = **4** --- Turn on magnifying filter, to enable smooth zooming in of the texture.
|
||||||
|
|
||||||
|
- **FLAGS_DEFAULT** = **7** --- Default flags. Generate mipmaps, repeat, and filter are enabled.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -42,14 +42,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_DirectionalLight_ShadowDepthRange:
|
|
||||||
|
|
||||||
enum **ShadowDepthRange**:
|
|
||||||
|
|
||||||
- **SHADOW_DEPTH_RANGE_STABLE** = **0** --- Keeps the shadow stable when the camera moves, at the cost of lower effective shadow resolution. Default value.
|
|
||||||
|
|
||||||
- **SHADOW_DEPTH_RANGE_OPTIMIZED** = **1** --- Tries to achieve maximum shadow resolution. May result in saw effect on shadow edges.
|
|
||||||
|
|
||||||
.. _enum_DirectionalLight_ShadowMode:
|
.. _enum_DirectionalLight_ShadowMode:
|
||||||
|
|
||||||
enum **ShadowMode**:
|
enum **ShadowMode**:
|
||||||
@@ -60,6 +52,14 @@ enum **ShadowMode**:
|
|||||||
|
|
||||||
- **SHADOW_PARALLEL_4_SPLITS** = **2** --- Splits the view frustum in 4 areas, each with its own shadow map.
|
- **SHADOW_PARALLEL_4_SPLITS** = **2** --- Splits the view frustum in 4 areas, each with its own shadow map.
|
||||||
|
|
||||||
|
.. _enum_DirectionalLight_ShadowDepthRange:
|
||||||
|
|
||||||
|
enum **ShadowDepthRange**:
|
||||||
|
|
||||||
|
- **SHADOW_DEPTH_RANGE_STABLE** = **0** --- Keeps the shadow stable when the camera moves, at the cost of lower effective shadow resolution. Default value.
|
||||||
|
|
||||||
|
- **SHADOW_DEPTH_RANGE_OPTIMIZED** = **1** --- Tries to achieve maximum shadow resolution. May result in saw effect on shadow edges.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -74,6 +74,20 @@ Emitted when multiple files are selected.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_EditorFileDialog_Mode:
|
||||||
|
|
||||||
|
enum **Mode**:
|
||||||
|
|
||||||
|
- **MODE_OPEN_FILE** = **0** --- The ``EditorFileDialog`` can select only one file. Accepting the window will open the file.
|
||||||
|
|
||||||
|
- **MODE_OPEN_FILES** = **1** --- The ``EditorFileDialog`` can select multiple files. Accepting the window will open all files.
|
||||||
|
|
||||||
|
- **MODE_OPEN_DIR** = **2** --- The ``EditorFileDialog`` can select only one directory. Accepting the window will open the directory.
|
||||||
|
|
||||||
|
- **MODE_OPEN_ANY** = **3** --- The ``EditorFileDialog`` can select a file or directory. Accepting the window will open it.
|
||||||
|
|
||||||
|
- **MODE_SAVE_FILE** = **4** --- The ``EditorFileDialog`` can select only one file. Accepting the window will save the file.
|
||||||
|
|
||||||
.. _enum_EditorFileDialog_Access:
|
.. _enum_EditorFileDialog_Access:
|
||||||
|
|
||||||
enum **Access**:
|
enum **Access**:
|
||||||
@@ -92,20 +106,6 @@ enum **DisplayMode**:
|
|||||||
|
|
||||||
- **DISPLAY_LIST** = **1** --- The ``EditorFileDialog`` displays resources as a list of filenames.
|
- **DISPLAY_LIST** = **1** --- The ``EditorFileDialog`` displays resources as a list of filenames.
|
||||||
|
|
||||||
.. _enum_EditorFileDialog_Mode:
|
|
||||||
|
|
||||||
enum **Mode**:
|
|
||||||
|
|
||||||
- **MODE_OPEN_FILE** = **0** --- The ``EditorFileDialog`` can select only one file. Accepting the window will open the file.
|
|
||||||
|
|
||||||
- **MODE_OPEN_FILES** = **1** --- The ``EditorFileDialog`` can select multiple files. Accepting the window will open all files.
|
|
||||||
|
|
||||||
- **MODE_OPEN_DIR** = **2** --- The ``EditorFileDialog`` can select only one directory. Accepting the window will open the directory.
|
|
||||||
|
|
||||||
- **MODE_OPEN_ANY** = **3** --- The ``EditorFileDialog`` can select a file or directory. Accepting the window will open it.
|
|
||||||
|
|
||||||
- **MODE_SAVE_FILE** = **4** --- The ``EditorFileDialog`` can select only one file. Accepting the window will save the file.
|
|
||||||
|
|
||||||
Property Descriptions
|
Property Descriptions
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
@@ -151,28 +151,6 @@ Emitted when user closes a scene. The argument is file path to a closed scene.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_EditorPlugin_DockSlot:
|
|
||||||
|
|
||||||
enum **DockSlot**:
|
|
||||||
|
|
||||||
- **DOCK_SLOT_LEFT_UL** = **0**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_LEFT_BL** = **1**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_LEFT_UR** = **2**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_LEFT_BR** = **3**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_RIGHT_UL** = **4**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_RIGHT_BL** = **5**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_RIGHT_UR** = **6**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_RIGHT_BR** = **7**
|
|
||||||
|
|
||||||
- **DOCK_SLOT_MAX** = **8**
|
|
||||||
|
|
||||||
.. _enum_EditorPlugin_CustomControlContainer:
|
.. _enum_EditorPlugin_CustomControlContainer:
|
||||||
|
|
||||||
enum **CustomControlContainer**:
|
enum **CustomControlContainer**:
|
||||||
@@ -197,6 +175,28 @@ enum **CustomControlContainer**:
|
|||||||
|
|
||||||
- **CONTAINER_PROPERTY_EDITOR_BOTTOM** = **9**
|
- **CONTAINER_PROPERTY_EDITOR_BOTTOM** = **9**
|
||||||
|
|
||||||
|
.. _enum_EditorPlugin_DockSlot:
|
||||||
|
|
||||||
|
enum **DockSlot**:
|
||||||
|
|
||||||
|
- **DOCK_SLOT_LEFT_UL** = **0**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_LEFT_BL** = **1**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_LEFT_UR** = **2**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_LEFT_BR** = **3**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_RIGHT_UL** = **4**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_RIGHT_BL** = **5**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_RIGHT_UR** = **6**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_RIGHT_BR** = **7**
|
||||||
|
|
||||||
|
- **DOCK_SLOT_MAX** = **8**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -208,16 +208,6 @@ enum **BGMode**:
|
|||||||
|
|
||||||
- **BG_MAX** = **6** --- Helper constant keeping track of the enum's size, has no direct usage in API calls.
|
- **BG_MAX** = **6** --- Helper constant keeping track of the enum's size, has no direct usage in API calls.
|
||||||
|
|
||||||
.. _enum_Environment_DOFBlurQuality:
|
|
||||||
|
|
||||||
enum **DOFBlurQuality**:
|
|
||||||
|
|
||||||
- **DOF_BLUR_QUALITY_LOW** = **0** --- Low depth-of-field blur quality.
|
|
||||||
|
|
||||||
- **DOF_BLUR_QUALITY_MEDIUM** = **1** --- Medium depth-of-field blur quality.
|
|
||||||
|
|
||||||
- **DOF_BLUR_QUALITY_HIGH** = **2** --- High depth-of-field blur quality.
|
|
||||||
|
|
||||||
.. _enum_Environment_GlowBlendMode:
|
.. _enum_Environment_GlowBlendMode:
|
||||||
|
|
||||||
enum **GlowBlendMode**:
|
enum **GlowBlendMode**:
|
||||||
@@ -242,6 +232,16 @@ enum **ToneMapper**:
|
|||||||
|
|
||||||
- **TONE_MAPPER_ACES** = **3** --- Academy Color Encoding System tonemapper operator.
|
- **TONE_MAPPER_ACES** = **3** --- Academy Color Encoding System tonemapper operator.
|
||||||
|
|
||||||
|
.. _enum_Environment_DOFBlurQuality:
|
||||||
|
|
||||||
|
enum **DOFBlurQuality**:
|
||||||
|
|
||||||
|
- **DOF_BLUR_QUALITY_LOW** = **0** --- Low depth-of-field blur quality.
|
||||||
|
|
||||||
|
- **DOF_BLUR_QUALITY_MEDIUM** = **1** --- Medium depth-of-field blur quality.
|
||||||
|
|
||||||
|
- **DOF_BLUR_QUALITY_HIGH** = **2** --- High depth-of-field blur quality.
|
||||||
|
|
||||||
.. _enum_Environment_SSAOBlur:
|
.. _enum_Environment_SSAOBlur:
|
||||||
|
|
||||||
enum **SSAOBlur**:
|
enum **SSAOBlur**:
|
||||||
|
|||||||
@@ -119,18 +119,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_File_CompressionMode:
|
|
||||||
|
|
||||||
enum **CompressionMode**:
|
|
||||||
|
|
||||||
- **COMPRESSION_FASTLZ** = **0** --- Uses the FastLZ compression method.
|
|
||||||
|
|
||||||
- **COMPRESSION_DEFLATE** = **1** --- Uses the Deflate compression method.
|
|
||||||
|
|
||||||
- **COMPRESSION_ZSTD** = **2** --- Uses the Zstd compression method.
|
|
||||||
|
|
||||||
- **COMPRESSION_GZIP** = **3** --- Uses the gzip compression method.
|
|
||||||
|
|
||||||
.. _enum_File_ModeFlags:
|
.. _enum_File_ModeFlags:
|
||||||
|
|
||||||
enum **ModeFlags**:
|
enum **ModeFlags**:
|
||||||
@@ -143,6 +131,18 @@ enum **ModeFlags**:
|
|||||||
|
|
||||||
- **WRITE_READ** = **7** --- Opens the file for read and write operations. Create it if the file does not exist and truncate if it exists.
|
- **WRITE_READ** = **7** --- Opens the file for read and write operations. Create it if the file does not exist and truncate if it exists.
|
||||||
|
|
||||||
|
.. _enum_File_CompressionMode:
|
||||||
|
|
||||||
|
enum **CompressionMode**:
|
||||||
|
|
||||||
|
- **COMPRESSION_FASTLZ** = **0** --- Uses the FastLZ compression method.
|
||||||
|
|
||||||
|
- **COMPRESSION_DEFLATE** = **1** --- Uses the Deflate compression method.
|
||||||
|
|
||||||
|
- **COMPRESSION_ZSTD** = **2** --- Uses the Zstd compression method.
|
||||||
|
|
||||||
|
- **COMPRESSION_GZIP** = **3** --- Uses the gzip compression method.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -91,16 +91,6 @@ Event emitted when the user selects multiple files.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_FileDialog_Access:
|
|
||||||
|
|
||||||
enum **Access**:
|
|
||||||
|
|
||||||
- **ACCESS_RESOURCES** = **0** --- The dialog allows the selection of file and directory.
|
|
||||||
|
|
||||||
- **ACCESS_USERDATA** = **1** --- The dialog allows access files under :ref:`Resource<class_Resource>` path(res://) .
|
|
||||||
|
|
||||||
- **ACCESS_FILESYSTEM** = **2** --- The dialog allows access files in whole file system.
|
|
||||||
|
|
||||||
.. _enum_FileDialog_Mode:
|
.. _enum_FileDialog_Mode:
|
||||||
|
|
||||||
enum **Mode**:
|
enum **Mode**:
|
||||||
@@ -115,6 +105,16 @@ enum **Mode**:
|
|||||||
|
|
||||||
- **MODE_SAVE_FILE** = **4** --- The dialog will warn when a file exists.
|
- **MODE_SAVE_FILE** = **4** --- The dialog will warn when a file exists.
|
||||||
|
|
||||||
|
.. _enum_FileDialog_Access:
|
||||||
|
|
||||||
|
enum **Access**:
|
||||||
|
|
||||||
|
- **ACCESS_RESOURCES** = **0** --- The dialog allows the selection of file and directory.
|
||||||
|
|
||||||
|
- **ACCESS_USERDATA** = **1** --- The dialog allows access files under :ref:`Resource<class_Resource>` path(res://) .
|
||||||
|
|
||||||
|
- **ACCESS_FILESYSTEM** = **2** --- The dialog allows access files in whole file system.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Font
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`DynamicFont<class_DynamicFont>`, :ref:`BitmapFont<class_BitmapFont>`
|
**Inherited By:** :ref:`BitmapFont<class_BitmapFont>`, :ref:`DynamicFont<class_DynamicFont>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -194,24 +194,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Generic6DOFJoint_Flag:
|
|
||||||
|
|
||||||
enum **Flag**:
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_LINEAR_LIMIT** = **0** --- If ``set`` there is linear motion possible within the given limits.
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_ANGULAR_LIMIT** = **1** --- If ``set`` there is rotational motion possible.
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_LINEAR_SPRING** = **3**
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_ANGULAR_SPRING** = **2**
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_MOTOR** = **4** --- If ``set`` there is a rotational motor across these axes.
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_LINEAR_MOTOR** = **5**
|
|
||||||
|
|
||||||
- **FLAG_MAX** = **6** --- End flag of FLAG\_\* constants, used internally.
|
|
||||||
|
|
||||||
.. _enum_Generic6DOFJoint_Param:
|
.. _enum_Generic6DOFJoint_Param:
|
||||||
|
|
||||||
enum **Param**:
|
enum **Param**:
|
||||||
@@ -250,6 +232,24 @@ enum **Param**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **22** --- End flag of PARAM\_\* constants, used internally.
|
- **PARAM_MAX** = **22** --- End flag of PARAM\_\* constants, used internally.
|
||||||
|
|
||||||
|
.. _enum_Generic6DOFJoint_Flag:
|
||||||
|
|
||||||
|
enum **Flag**:
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_LINEAR_LIMIT** = **0** --- If ``set`` there is linear motion possible within the given limits.
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_ANGULAR_LIMIT** = **1** --- If ``set`` there is rotational motion possible.
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_LINEAR_SPRING** = **3**
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_ANGULAR_SPRING** = **2**
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_MOTOR** = **4** --- If ``set`` there is a rotational motor across these axes.
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_LINEAR_MOTOR** = **5**
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **6** --- End flag of FLAG\_\* constants, used internally.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ GeometryInstance
|
|||||||
|
|
||||||
**Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`MultiMeshInstance<class_MultiMeshInstance>`, :ref:`Particles<class_Particles>`, :ref:`MeshInstance<class_MeshInstance>`, :ref:`SpriteBase3D<class_SpriteBase3D>`, :ref:`ImmediateGeometry<class_ImmediateGeometry>`, :ref:`CPUParticles<class_CPUParticles>`
|
**Inherited By:** :ref:`CPUParticles<class_CPUParticles>`, :ref:`ImmediateGeometry<class_ImmediateGeometry>`, :ref:`MeshInstance<class_MeshInstance>`, :ref:`MultiMeshInstance<class_MultiMeshInstance>`, :ref:`Particles<class_Particles>`, :ref:`SpriteBase3D<class_SpriteBase3D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
@@ -42,16 +42,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_GeometryInstance_Flags:
|
|
||||||
|
|
||||||
enum **Flags**:
|
|
||||||
|
|
||||||
- **FLAG_USE_BAKED_LIGHT** = **0** --- Will allow the GeometryInstance to be used when baking lights using a :ref:`GIProbe<class_GIProbe>` and/or any other form of baked lighting.
|
|
||||||
|
|
||||||
Added documentation for GeometryInstance and VisualInstance
|
|
||||||
|
|
||||||
- **FLAG_MAX** = **2**
|
|
||||||
|
|
||||||
.. _enum_GeometryInstance_ShadowCastingSetting:
|
.. _enum_GeometryInstance_ShadowCastingSetting:
|
||||||
|
|
||||||
enum **ShadowCastingSetting**:
|
enum **ShadowCastingSetting**:
|
||||||
@@ -70,6 +60,16 @@ Will not take culling into account, so all faces will be taken into account when
|
|||||||
|
|
||||||
In other words: The actual mesh will not be visible, only the shadows casted from the mesh.
|
In other words: The actual mesh will not be visible, only the shadows casted from the mesh.
|
||||||
|
|
||||||
|
.. _enum_GeometryInstance_Flags:
|
||||||
|
|
||||||
|
enum **Flags**:
|
||||||
|
|
||||||
|
- **FLAG_USE_BAKED_LIGHT** = **0** --- Will allow the GeometryInstance to be used when baking lights using a :ref:`GIProbe<class_GIProbe>` and/or any other form of baked lighting.
|
||||||
|
|
||||||
|
Added documentation for GeometryInstance and VisualInstance
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **2**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -44,16 +44,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_HingeJoint_Flag:
|
|
||||||
|
|
||||||
enum **Flag**:
|
|
||||||
|
|
||||||
- **FLAG_USE_LIMIT** = **0** --- If ``true``, the hinges maximum and minimum rotation, defined by :ref:`angular_limit/lower<class_HingeJoint_angular_limit/lower>` and :ref:`angular_limit/upper<class_HingeJoint_angular_limit/upper>` has effects.
|
|
||||||
|
|
||||||
- **FLAG_ENABLE_MOTOR** = **1** --- When activated, a motor turns the hinge.
|
|
||||||
|
|
||||||
- **FLAG_MAX** = **2** --- End flag of FLAG\_\* constants, used internally.
|
|
||||||
|
|
||||||
.. _enum_HingeJoint_Param:
|
.. _enum_HingeJoint_Param:
|
||||||
|
|
||||||
enum **Param**:
|
enum **Param**:
|
||||||
@@ -76,6 +66,16 @@ enum **Param**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **8** --- End flag of PARAM\_\* constants, used internally.
|
- **PARAM_MAX** = **8** --- End flag of PARAM\_\* constants, used internally.
|
||||||
|
|
||||||
|
.. _enum_HingeJoint_Flag:
|
||||||
|
|
||||||
|
enum **Flag**:
|
||||||
|
|
||||||
|
- **FLAG_USE_LIMIT** = **0** --- If ``true``, the hinges maximum and minimum rotation, defined by :ref:`angular_limit/lower<class_HingeJoint_angular_limit/lower>` and :ref:`angular_limit/upper<class_HingeJoint_angular_limit/upper>` has effects.
|
||||||
|
|
||||||
|
- **FLAG_ENABLE_MOTOR** = **1** --- When activated, a motor turns the hinge.
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **2** --- End flag of FLAG\_\* constants, used internally.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -63,30 +63,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_HTTPClient_Status:
|
|
||||||
|
|
||||||
enum **Status**:
|
|
||||||
|
|
||||||
- **STATUS_DISCONNECTED** = **0** --- Status: Disconnected from the server.
|
|
||||||
|
|
||||||
- **STATUS_RESOLVING** = **1** --- Status: Currently resolving the hostname for the given URL into an IP.
|
|
||||||
|
|
||||||
- **STATUS_CANT_RESOLVE** = **2** --- Status: DNS failure: Can't resolve the hostname for the given URL.
|
|
||||||
|
|
||||||
- **STATUS_CONNECTING** = **3** --- Status: Currently connecting to server.
|
|
||||||
|
|
||||||
- **STATUS_CANT_CONNECT** = **4** --- Status: Can't connect to the server.
|
|
||||||
|
|
||||||
- **STATUS_CONNECTED** = **5** --- Status: Connection established.
|
|
||||||
|
|
||||||
- **STATUS_REQUESTING** = **6** --- Status: Currently sending request.
|
|
||||||
|
|
||||||
- **STATUS_BODY** = **7** --- Status: HTTP body received.
|
|
||||||
|
|
||||||
- **STATUS_CONNECTION_ERROR** = **8** --- Status: Error in HTTP connection.
|
|
||||||
|
|
||||||
- **STATUS_SSL_HANDSHAKE_ERROR** = **9** --- Status: Error in SSL handshake.
|
|
||||||
|
|
||||||
.. _enum_HTTPClient_Method:
|
.. _enum_HTTPClient_Method:
|
||||||
|
|
||||||
enum **Method**:
|
enum **Method**:
|
||||||
@@ -111,6 +87,30 @@ enum **Method**:
|
|||||||
|
|
||||||
- **METHOD_MAX** = **9** --- Marker for end of ``METHOD_*`` enum. Not used.
|
- **METHOD_MAX** = **9** --- Marker for end of ``METHOD_*`` enum. Not used.
|
||||||
|
|
||||||
|
.. _enum_HTTPClient_Status:
|
||||||
|
|
||||||
|
enum **Status**:
|
||||||
|
|
||||||
|
- **STATUS_DISCONNECTED** = **0** --- Status: Disconnected from the server.
|
||||||
|
|
||||||
|
- **STATUS_RESOLVING** = **1** --- Status: Currently resolving the hostname for the given URL into an IP.
|
||||||
|
|
||||||
|
- **STATUS_CANT_RESOLVE** = **2** --- Status: DNS failure: Can't resolve the hostname for the given URL.
|
||||||
|
|
||||||
|
- **STATUS_CONNECTING** = **3** --- Status: Currently connecting to server.
|
||||||
|
|
||||||
|
- **STATUS_CANT_CONNECT** = **4** --- Status: Can't connect to the server.
|
||||||
|
|
||||||
|
- **STATUS_CONNECTED** = **5** --- Status: Connection established.
|
||||||
|
|
||||||
|
- **STATUS_REQUESTING** = **6** --- Status: Currently sending request.
|
||||||
|
|
||||||
|
- **STATUS_BODY** = **7** --- Status: HTTP body received.
|
||||||
|
|
||||||
|
- **STATUS_CONNECTION_ERROR** = **8** --- Status: Error in HTTP connection.
|
||||||
|
|
||||||
|
- **STATUS_SSL_HANDSHAKE_ERROR** = **9** --- Status: Error in SSL handshake.
|
||||||
|
|
||||||
.. _enum_HTTPClient_ResponseCode:
|
.. _enum_HTTPClient_ResponseCode:
|
||||||
|
|
||||||
enum **ResponseCode**:
|
enum **ResponseCode**:
|
||||||
|
|||||||
@@ -131,58 +131,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Image_CompressMode:
|
|
||||||
|
|
||||||
enum **CompressMode**:
|
|
||||||
|
|
||||||
- **COMPRESS_S3TC** = **0**
|
|
||||||
|
|
||||||
- **COMPRESS_PVRTC2** = **1**
|
|
||||||
|
|
||||||
- **COMPRESS_PVRTC4** = **2**
|
|
||||||
|
|
||||||
- **COMPRESS_ETC** = **3**
|
|
||||||
|
|
||||||
- **COMPRESS_ETC2** = **4**
|
|
||||||
|
|
||||||
.. _enum_Image_Interpolation:
|
|
||||||
|
|
||||||
enum **Interpolation**:
|
|
||||||
|
|
||||||
- **INTERPOLATE_NEAREST** = **0**
|
|
||||||
|
|
||||||
- **INTERPOLATE_BILINEAR** = **1**
|
|
||||||
|
|
||||||
- **INTERPOLATE_CUBIC** = **2**
|
|
||||||
|
|
||||||
- **INTERPOLATE_TRILINEAR** = **3** --- Performs bilinear separately on the two most suited mipmap levels, then linearly interpolates between them.
|
|
||||||
|
|
||||||
It's slower than ``INTERPOLATE_BILINEAR``, but produces higher quality results, with much less aliasing artifacts.
|
|
||||||
|
|
||||||
If the image does not have mipmaps, they will be generated and used internally, but no mipmaps will be generated on the resulting image. (Note that if you intend to scale multiple copies of the original image, it's better to call ``generate_mipmaps`` on it in advance, to avoid wasting processing power in generating them again and again.)
|
|
||||||
|
|
||||||
On the other hand, if the image already has mipmaps, they will be used, and a new set will be generated for the resulting image.
|
|
||||||
|
|
||||||
.. _enum_Image_AlphaMode:
|
|
||||||
|
|
||||||
enum **AlphaMode**:
|
|
||||||
|
|
||||||
- **ALPHA_NONE** = **0**
|
|
||||||
|
|
||||||
- **ALPHA_BIT** = **1**
|
|
||||||
|
|
||||||
- **ALPHA_BLEND** = **2**
|
|
||||||
|
|
||||||
.. _enum_Image_CompressSource:
|
|
||||||
|
|
||||||
enum **CompressSource**:
|
|
||||||
|
|
||||||
- **COMPRESS_SOURCE_GENERIC** = **0**
|
|
||||||
|
|
||||||
- **COMPRESS_SOURCE_SRGB** = **1**
|
|
||||||
|
|
||||||
- **COMPRESS_SOURCE_NORMAL** = **2**
|
|
||||||
|
|
||||||
.. _enum_Image_Format:
|
.. _enum_Image_Format:
|
||||||
|
|
||||||
enum **Format**:
|
enum **Format**:
|
||||||
@@ -263,6 +211,58 @@ enum **Format**:
|
|||||||
|
|
||||||
- **FORMAT_MAX** = **37**
|
- **FORMAT_MAX** = **37**
|
||||||
|
|
||||||
|
.. _enum_Image_Interpolation:
|
||||||
|
|
||||||
|
enum **Interpolation**:
|
||||||
|
|
||||||
|
- **INTERPOLATE_NEAREST** = **0**
|
||||||
|
|
||||||
|
- **INTERPOLATE_BILINEAR** = **1**
|
||||||
|
|
||||||
|
- **INTERPOLATE_CUBIC** = **2**
|
||||||
|
|
||||||
|
- **INTERPOLATE_TRILINEAR** = **3** --- Performs bilinear separately on the two most suited mipmap levels, then linearly interpolates between them.
|
||||||
|
|
||||||
|
It's slower than ``INTERPOLATE_BILINEAR``, but produces higher quality results, with much less aliasing artifacts.
|
||||||
|
|
||||||
|
If the image does not have mipmaps, they will be generated and used internally, but no mipmaps will be generated on the resulting image. (Note that if you intend to scale multiple copies of the original image, it's better to call ``generate_mipmaps`` on it in advance, to avoid wasting processing power in generating them again and again.)
|
||||||
|
|
||||||
|
On the other hand, if the image already has mipmaps, they will be used, and a new set will be generated for the resulting image.
|
||||||
|
|
||||||
|
.. _enum_Image_AlphaMode:
|
||||||
|
|
||||||
|
enum **AlphaMode**:
|
||||||
|
|
||||||
|
- **ALPHA_NONE** = **0**
|
||||||
|
|
||||||
|
- **ALPHA_BIT** = **1**
|
||||||
|
|
||||||
|
- **ALPHA_BLEND** = **2**
|
||||||
|
|
||||||
|
.. _enum_Image_CompressMode:
|
||||||
|
|
||||||
|
enum **CompressMode**:
|
||||||
|
|
||||||
|
- **COMPRESS_S3TC** = **0**
|
||||||
|
|
||||||
|
- **COMPRESS_PVRTC2** = **1**
|
||||||
|
|
||||||
|
- **COMPRESS_PVRTC4** = **2**
|
||||||
|
|
||||||
|
- **COMPRESS_ETC** = **3**
|
||||||
|
|
||||||
|
- **COMPRESS_ETC2** = **4**
|
||||||
|
|
||||||
|
.. _enum_Image_CompressSource:
|
||||||
|
|
||||||
|
enum **CompressSource**:
|
||||||
|
|
||||||
|
- **COMPRESS_SOURCE_GENERIC** = **0**
|
||||||
|
|
||||||
|
- **COMPRESS_SOURCE_SRGB** = **1**
|
||||||
|
|
||||||
|
- **COMPRESS_SOURCE_NORMAL** = **2**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ InputEvent
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`InputEventScreenTouch<class_InputEventScreenTouch>`, :ref:`InputEventWithModifiers<class_InputEventWithModifiers>`, :ref:`InputEventScreenDrag<class_InputEventScreenDrag>`, :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>`, :ref:`InputEventJoypadButton<class_InputEventJoypadButton>`, :ref:`InputEventAction<class_InputEventAction>`
|
**Inherited By:** :ref:`InputEventAction<class_InputEventAction>`, :ref:`InputEventJoypadButton<class_InputEventJoypadButton>`, :ref:`InputEventJoypadMotion<class_InputEventJoypadMotion>`, :ref:`InputEventScreenDrag<class_InputEventScreenDrag>`, :ref:`InputEventScreenTouch<class_InputEventScreenTouch>`, :ref:`InputEventWithModifiers<class_InputEventWithModifiers>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ InputEventGesture
|
|||||||
|
|
||||||
**Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`InputEventPanGesture<class_InputEventPanGesture>`, :ref:`InputEventMagnifyGesture<class_InputEventMagnifyGesture>`
|
**Inherited By:** :ref:`InputEventMagnifyGesture<class_InputEventMagnifyGesture>`, :ref:`InputEventPanGesture<class_InputEventPanGesture>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ InputEventMouse
|
|||||||
|
|
||||||
**Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`InputEventMouseMotion<class_InputEventMouseMotion>`, :ref:`InputEventMouseButton<class_InputEventMouseButton>`
|
**Inherited By:** :ref:`InputEventMouseButton<class_InputEventMouseButton>`, :ref:`InputEventMouseMotion<class_InputEventMouseMotion>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ InputEventWithModifiers
|
|||||||
|
|
||||||
**Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventMouse<class_InputEventMouse>`, :ref:`InputEventGesture<class_InputEventGesture>`
|
**Inherited By:** :ref:`InputEventGesture<class_InputEventGesture>`, :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventMouse<class_InputEventMouse>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Joint
|
|||||||
|
|
||||||
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`ConeTwistJoint<class_ConeTwistJoint>`, :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`, :ref:`SliderJoint<class_SliderJoint>`, :ref:`HingeJoint<class_HingeJoint>`, :ref:`PinJoint<class_PinJoint>`
|
**Inherited By:** :ref:`ConeTwistJoint<class_ConeTwistJoint>`, :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`, :ref:`HingeJoint<class_HingeJoint>`, :ref:`PinJoint<class_PinJoint>`, :ref:`SliderJoint<class_SliderJoint>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Joint2D
|
|||||||
|
|
||||||
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PinJoint2D<class_PinJoint2D>`, :ref:`DampedSpringJoint2D<class_DampedSpringJoint2D>`, :ref:`GrooveJoint2D<class_GrooveJoint2D>`
|
**Inherited By:** :ref:`DampedSpringJoint2D<class_DampedSpringJoint2D>`, :ref:`GrooveJoint2D<class_GrooveJoint2D>`, :ref:`PinJoint2D<class_PinJoint2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Light
|
|||||||
|
|
||||||
**Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`SpotLight<class_SpotLight>`, :ref:`OmniLight<class_OmniLight>`, :ref:`DirectionalLight<class_DirectionalLight>`
|
**Inherited By:** :ref:`DirectionalLight<class_DirectionalLight>`, :ref:`OmniLight<class_OmniLight>`, :ref:`SpotLight<class_SpotLight>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
@@ -52,16 +52,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Light_BakeMode:
|
|
||||||
|
|
||||||
enum **BakeMode**:
|
|
||||||
|
|
||||||
- **BAKE_DISABLED** = **0** --- Light is ignored when baking. Note: hiding a light does *not* affect baking.
|
|
||||||
|
|
||||||
- **BAKE_INDIRECT** = **1** --- Only indirect lighting will be baked. Default value.
|
|
||||||
|
|
||||||
- **BAKE_ALL** = **2** --- Both direct and indirect light will be baked. Note: you should hide the light if you don't want it to appear twice (dynamic and baked).
|
|
||||||
|
|
||||||
.. _enum_Light_Param:
|
.. _enum_Light_Param:
|
||||||
|
|
||||||
enum **Param**:
|
enum **Param**:
|
||||||
@@ -98,6 +88,16 @@ enum **Param**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **15**
|
- **PARAM_MAX** = **15**
|
||||||
|
|
||||||
|
.. _enum_Light_BakeMode:
|
||||||
|
|
||||||
|
enum **BakeMode**:
|
||||||
|
|
||||||
|
- **BAKE_DISABLED** = **0** --- Light is ignored when baking. Note: hiding a light does *not* affect baking.
|
||||||
|
|
||||||
|
- **BAKE_INDIRECT** = **1** --- Only indirect lighting will be baked. Default value.
|
||||||
|
|
||||||
|
- **BAKE_ALL** = **2** --- Both direct and indirect light will be baked. Note: you should hide the light if you don't want it to appear twice (dynamic and baked).
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,16 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_Line2D_LineJointMode:
|
||||||
|
|
||||||
|
enum **LineJointMode**:
|
||||||
|
|
||||||
|
- **LINE_JOINT_SHARP** = **0** --- The line's joints will be pointy. If ``sharp_limit`` is greater than the rotation of a joint, it becomes a bevel joint instead.
|
||||||
|
|
||||||
|
- **LINE_JOINT_BEVEL** = **1** --- The line's joints will be bevelled/chamfered.
|
||||||
|
|
||||||
|
- **LINE_JOINT_ROUND** = **2** --- The line's joints will be rounded.
|
||||||
|
|
||||||
.. _enum_Line2D_LineCapMode:
|
.. _enum_Line2D_LineCapMode:
|
||||||
|
|
||||||
enum **LineCapMode**:
|
enum **LineCapMode**:
|
||||||
@@ -81,16 +91,6 @@ enum **LineTextureMode**:
|
|||||||
|
|
||||||
- **LINE_TEXTURE_STRETCH** = **2** --- Stretches the texture across the line. Import the texture with Repeat Disabled for best results.
|
- **LINE_TEXTURE_STRETCH** = **2** --- Stretches the texture across the line. Import the texture with Repeat Disabled for best results.
|
||||||
|
|
||||||
.. _enum_Line2D_LineJointMode:
|
|
||||||
|
|
||||||
enum **LineJointMode**:
|
|
||||||
|
|
||||||
- **LINE_JOINT_SHARP** = **0** --- The line's joints will be pointy. If ``sharp_limit`` is greater than the rotation of a joint, it becomes a bevel joint instead.
|
|
||||||
|
|
||||||
- **LINE_JOINT_BEVEL** = **1** --- The line's joints will be bevelled/chamfered.
|
|
||||||
|
|
||||||
- **LINE_JOINT_ROUND** = **2** --- The line's joints will be rounded.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Material
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`ParticlesMaterial<class_ParticlesMaterial>`, :ref:`ShaderMaterial<class_ShaderMaterial>`, :ref:`SpatialMaterial<class_SpatialMaterial>`, :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`
|
**Inherited By:** :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`, :ref:`ParticlesMaterial<class_ParticlesMaterial>`, :ref:`ShaderMaterial<class_ShaderMaterial>`, :ref:`SpatialMaterial<class_SpatialMaterial>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,24 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_Mesh_PrimitiveType:
|
||||||
|
|
||||||
|
enum **PrimitiveType**:
|
||||||
|
|
||||||
|
- **PRIMITIVE_POINTS** = **0** --- Render array as points (one vertex equals one point).
|
||||||
|
|
||||||
|
- **PRIMITIVE_LINES** = **1** --- Render array as lines (every two vertices a line is created).
|
||||||
|
|
||||||
|
- **PRIMITIVE_LINE_STRIP** = **2** --- Render array as line strip.
|
||||||
|
|
||||||
|
- **PRIMITIVE_LINE_LOOP** = **3** --- Render array as line loop (like line strip, but closed).
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLES** = **4** --- Render array as triangles (every three vertices a triangle is created).
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLE_STRIP** = **5** --- Render array as triangle strips.
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLE_FAN** = **6** --- Render array as triangle fans.
|
||||||
|
|
||||||
.. _enum_Mesh_BlendShapeMode:
|
.. _enum_Mesh_BlendShapeMode:
|
||||||
|
|
||||||
enum **BlendShapeMode**:
|
enum **BlendShapeMode**:
|
||||||
@@ -59,30 +77,6 @@ enum **BlendShapeMode**:
|
|||||||
|
|
||||||
- **BLEND_SHAPE_MODE_RELATIVE** = **1**
|
- **BLEND_SHAPE_MODE_RELATIVE** = **1**
|
||||||
|
|
||||||
.. _enum_Mesh_ArrayType:
|
|
||||||
|
|
||||||
enum **ArrayType**:
|
|
||||||
|
|
||||||
- **ARRAY_VERTEX** = **0** --- Array of vertices.
|
|
||||||
|
|
||||||
- **ARRAY_NORMAL** = **1** --- Array of normals.
|
|
||||||
|
|
||||||
- **ARRAY_TANGENT** = **2** --- Array of tangents as an array of floats, 4 floats per tangent.
|
|
||||||
|
|
||||||
- **ARRAY_COLOR** = **3** --- Array of colors.
|
|
||||||
|
|
||||||
- **ARRAY_TEX_UV** = **4** --- Array of UV coordinates.
|
|
||||||
|
|
||||||
- **ARRAY_TEX_UV2** = **5** --- Array of second set of UV coordinates.
|
|
||||||
|
|
||||||
- **ARRAY_BONES** = **6** --- Array of bone data.
|
|
||||||
|
|
||||||
- **ARRAY_WEIGHTS** = **7** --- Array of weights.
|
|
||||||
|
|
||||||
- **ARRAY_INDEX** = **8** --- Array of indices.
|
|
||||||
|
|
||||||
- **ARRAY_MAX** = **9**
|
|
||||||
|
|
||||||
.. _enum_Mesh_ArrayFormat:
|
.. _enum_Mesh_ArrayFormat:
|
||||||
|
|
||||||
enum **ArrayFormat**:
|
enum **ArrayFormat**:
|
||||||
@@ -131,23 +125,29 @@ enum **ArrayFormat**:
|
|||||||
|
|
||||||
- **ARRAY_COMPRESS_DEFAULT** = **97280**
|
- **ARRAY_COMPRESS_DEFAULT** = **97280**
|
||||||
|
|
||||||
.. _enum_Mesh_PrimitiveType:
|
.. _enum_Mesh_ArrayType:
|
||||||
|
|
||||||
enum **PrimitiveType**:
|
enum **ArrayType**:
|
||||||
|
|
||||||
- **PRIMITIVE_POINTS** = **0** --- Render array as points (one vertex equals one point).
|
- **ARRAY_VERTEX** = **0** --- Array of vertices.
|
||||||
|
|
||||||
- **PRIMITIVE_LINES** = **1** --- Render array as lines (every two vertices a line is created).
|
- **ARRAY_NORMAL** = **1** --- Array of normals.
|
||||||
|
|
||||||
- **PRIMITIVE_LINE_STRIP** = **2** --- Render array as line strip.
|
- **ARRAY_TANGENT** = **2** --- Array of tangents as an array of floats, 4 floats per tangent.
|
||||||
|
|
||||||
- **PRIMITIVE_LINE_LOOP** = **3** --- Render array as line loop (like line strip, but closed).
|
- **ARRAY_COLOR** = **3** --- Array of colors.
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLES** = **4** --- Render array as triangles (every three vertices a triangle is created).
|
- **ARRAY_TEX_UV** = **4** --- Array of UV coordinates.
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLE_STRIP** = **5** --- Render array as triangle strips.
|
- **ARRAY_TEX_UV2** = **5** --- Array of second set of UV coordinates.
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLE_FAN** = **6** --- Render array as triangle fans.
|
- **ARRAY_BONES** = **6** --- Array of bone data.
|
||||||
|
|
||||||
|
- **ARRAY_WEIGHTS** = **7** --- Array of weights.
|
||||||
|
|
||||||
|
- **ARRAY_INDEX** = **8** --- Array of indices.
|
||||||
|
|
||||||
|
- **ARRAY_MAX** = **9**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Node
|
|||||||
|
|
||||||
**Inherits:** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`Viewport<class_Viewport>`, :ref:`AudioStreamPlayer<class_AudioStreamPlayer>`, :ref:`EditorFileSystem<class_EditorFileSystem>`, :ref:`SkeletonIK<class_SkeletonIK>`, :ref:`CanvasLayer<class_CanvasLayer>`, :ref:`Spatial<class_Spatial>`, :ref:`AnimationPlayer<class_AnimationPlayer>`, :ref:`EditorPlugin<class_EditorPlugin>`, :ref:`ResourcePreloader<class_ResourcePreloader>`, :ref:`AnimationTreePlayer<class_AnimationTreePlayer>`, :ref:`AnimationTree<class_AnimationTree>`, :ref:`WorldEnvironment<class_WorldEnvironment>`, :ref:`InstancePlaceholder<class_InstancePlaceholder>`, :ref:`HTTPRequest<class_HTTPRequest>`, :ref:`EditorInterface<class_EditorInterface>`, :ref:`EditorResourcePreview<class_EditorResourcePreview>`, :ref:`CanvasItem<class_CanvasItem>`, :ref:`Timer<class_Timer>`, :ref:`Tween<class_Tween>`
|
**Inherited By:** :ref:`AnimationPlayer<class_AnimationPlayer>`, :ref:`AnimationTree<class_AnimationTree>`, :ref:`AnimationTreePlayer<class_AnimationTreePlayer>`, :ref:`AudioStreamPlayer<class_AudioStreamPlayer>`, :ref:`CanvasItem<class_CanvasItem>`, :ref:`CanvasLayer<class_CanvasLayer>`, :ref:`EditorFileSystem<class_EditorFileSystem>`, :ref:`EditorInterface<class_EditorInterface>`, :ref:`EditorPlugin<class_EditorPlugin>`, :ref:`EditorResourcePreview<class_EditorResourcePreview>`, :ref:`HTTPRequest<class_HTTPRequest>`, :ref:`InstancePlaceholder<class_InstancePlaceholder>`, :ref:`ResourcePreloader<class_ResourcePreloader>`, :ref:`SkeletonIK<class_SkeletonIK>`, :ref:`Spatial<class_Spatial>`, :ref:`Timer<class_Timer>`, :ref:`Tween<class_Tween>`, :ref:`Viewport<class_Viewport>`, :ref:`WorldEnvironment<class_WorldEnvironment>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Node2D
|
|||||||
|
|
||||||
**Inherits:** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`RemoteTransform2D<class_RemoteTransform2D>`, :ref:`Joint2D<class_Joint2D>`, :ref:`Skeleton2D<class_Skeleton2D>`, :ref:`VisibilityNotifier2D<class_VisibilityNotifier2D>`, :ref:`Navigation2D<class_Navigation2D>`, :ref:`CollisionPolygon2D<class_CollisionPolygon2D>`, :ref:`TouchScreenButton<class_TouchScreenButton>`, :ref:`Particles2D<class_Particles2D>`, :ref:`AnimatedSprite<class_AnimatedSprite>`, :ref:`RayCast2D<class_RayCast2D>`, :ref:`Light2D<class_Light2D>`, :ref:`Path2D<class_Path2D>`, :ref:`Line2D<class_Line2D>`, :ref:`AudioStreamPlayer2D<class_AudioStreamPlayer2D>`, :ref:`CanvasModulate<class_CanvasModulate>`, :ref:`Sprite<class_Sprite>`, :ref:`CPUParticles2D<class_CPUParticles2D>`, :ref:`CollisionShape2D<class_CollisionShape2D>`, :ref:`NavigationPolygonInstance<class_NavigationPolygonInstance>`, :ref:`PathFollow2D<class_PathFollow2D>`, :ref:`ParallaxLayer<class_ParallaxLayer>`, :ref:`Polygon2D<class_Polygon2D>`, :ref:`Position2D<class_Position2D>`, :ref:`LightOccluder2D<class_LightOccluder2D>`, :ref:`CollisionObject2D<class_CollisionObject2D>`, :ref:`BackBufferCopy<class_BackBufferCopy>`, :ref:`MeshInstance2D<class_MeshInstance2D>`, :ref:`YSort<class_YSort>`, :ref:`TileMap<class_TileMap>`, :ref:`Bone2D<class_Bone2D>`, :ref:`Camera2D<class_Camera2D>`
|
**Inherited By:** :ref:`AnimatedSprite<class_AnimatedSprite>`, :ref:`AudioStreamPlayer2D<class_AudioStreamPlayer2D>`, :ref:`BackBufferCopy<class_BackBufferCopy>`, :ref:`Bone2D<class_Bone2D>`, :ref:`CPUParticles2D<class_CPUParticles2D>`, :ref:`Camera2D<class_Camera2D>`, :ref:`CanvasModulate<class_CanvasModulate>`, :ref:`CollisionObject2D<class_CollisionObject2D>`, :ref:`CollisionPolygon2D<class_CollisionPolygon2D>`, :ref:`CollisionShape2D<class_CollisionShape2D>`, :ref:`Joint2D<class_Joint2D>`, :ref:`Light2D<class_Light2D>`, :ref:`LightOccluder2D<class_LightOccluder2D>`, :ref:`Line2D<class_Line2D>`, :ref:`MeshInstance2D<class_MeshInstance2D>`, :ref:`Navigation2D<class_Navigation2D>`, :ref:`NavigationPolygonInstance<class_NavigationPolygonInstance>`, :ref:`ParallaxLayer<class_ParallaxLayer>`, :ref:`Particles2D<class_Particles2D>`, :ref:`Path2D<class_Path2D>`, :ref:`PathFollow2D<class_PathFollow2D>`, :ref:`Polygon2D<class_Polygon2D>`, :ref:`Position2D<class_Position2D>`, :ref:`RayCast2D<class_RayCast2D>`, :ref:`RemoteTransform2D<class_RemoteTransform2D>`, :ref:`Skeleton2D<class_Skeleton2D>`, :ref:`Sprite<class_Sprite>`, :ref:`TileMap<class_TileMap>`, :ref:`TouchScreenButton<class_TouchScreenButton>`, :ref:`VisibilityNotifier2D<class_VisibilityNotifier2D>`, :ref:`YSort<class_YSort>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Object
|
Object
|
||||||
======
|
======
|
||||||
|
|
||||||
**Inherited By:** :ref:`Reference<class_Reference>`, :ref:`Physics2DServer<class_Physics2DServer>`, :ref:`MainLoop<class_MainLoop>`, :ref:`PhysicsDirectBodyState<class_PhysicsDirectBodyState>`, :ref:`Input<class_Input>`, :ref:`Node<class_Node>`, :ref:`Geometry<class_Geometry>`, :ref:`ARVRPositionalTracker<class_ARVRPositionalTracker>`, :ref:`TreeItem<class_TreeItem>`, :ref:`JavaScript<class_JavaScript>`, :ref:`ARVRServer<class_ARVRServer>`, :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>`, :ref:`ProjectSettings<class_ProjectSettings>`, :ref:`Engine<class_Engine>`, :ref:`Physics2DDirectSpaceState<class_Physics2DDirectSpaceState>`, :ref:`InputMap<class_InputMap>`, :ref:`UndoRedo<class_UndoRedo>`, :ref:`PhysicsServer<class_PhysicsServer>`, :ref:`ResourceSaver<class_ResourceSaver>`, :ref:`Performance<class_Performance>`, :ref:`ResourceLoader<class_ResourceLoader>`, :ref:`JSON<class_JSON>`, :ref:`AudioServer<class_AudioServer>`, :ref:`IP<class_IP>`, :ref:`ClassDB<class_ClassDB>`, :ref:`VisualServer<class_VisualServer>`, :ref:`OS<class_OS>`, :ref:`GodotSharp<class_GodotSharp>`, :ref:`EditorSelection<class_EditorSelection>`, :ref:`Physics2DDirectBodyState<class_Physics2DDirectBodyState>`, :ref:`VisualScriptEditor<class_VisualScriptEditor>`, :ref:`TranslationServer<class_TranslationServer>`, :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>`
|
**Inherited By:** :ref:`ARVRPositionalTracker<class_ARVRPositionalTracker>`, :ref:`ARVRServer<class_ARVRServer>`, :ref:`AudioServer<class_AudioServer>`, :ref:`ClassDB<class_ClassDB>`, :ref:`EditorFileSystemDirectory<class_EditorFileSystemDirectory>`, :ref:`EditorSelection<class_EditorSelection>`, :ref:`Engine<class_Engine>`, :ref:`Geometry<class_Geometry>`, :ref:`GodotSharp<class_GodotSharp>`, :ref:`IP<class_IP>`, :ref:`Input<class_Input>`, :ref:`InputMap<class_InputMap>`, :ref:`JSON<class_JSON>`, :ref:`JavaScript<class_JavaScript>`, :ref:`MainLoop<class_MainLoop>`, :ref:`Node<class_Node>`, :ref:`OS<class_OS>`, :ref:`Performance<class_Performance>`, :ref:`Physics2DDirectBodyState<class_Physics2DDirectBodyState>`, :ref:`Physics2DDirectSpaceState<class_Physics2DDirectSpaceState>`, :ref:`Physics2DServer<class_Physics2DServer>`, :ref:`PhysicsDirectBodyState<class_PhysicsDirectBodyState>`, :ref:`PhysicsDirectSpaceState<class_PhysicsDirectSpaceState>`, :ref:`PhysicsServer<class_PhysicsServer>`, :ref:`ProjectSettings<class_ProjectSettings>`, :ref:`Reference<class_Reference>`, :ref:`ResourceLoader<class_ResourceLoader>`, :ref:`ResourceSaver<class_ResourceSaver>`, :ref:`TranslationServer<class_TranslationServer>`, :ref:`TreeItem<class_TreeItem>`, :ref:`UndoRedo<class_UndoRedo>`, :ref:`VisualScriptEditor<class_VisualScriptEditor>`, :ref:`VisualServer<class_VisualServer>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -32,14 +32,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_OmniLight_ShadowDetail:
|
|
||||||
|
|
||||||
enum **ShadowDetail**:
|
|
||||||
|
|
||||||
- **SHADOW_DETAIL_VERTICAL** = **0**
|
|
||||||
|
|
||||||
- **SHADOW_DETAIL_HORIZONTAL** = **1**
|
|
||||||
|
|
||||||
.. _enum_OmniLight_ShadowMode:
|
.. _enum_OmniLight_ShadowMode:
|
||||||
|
|
||||||
enum **ShadowMode**:
|
enum **ShadowMode**:
|
||||||
@@ -48,6 +40,14 @@ enum **ShadowMode**:
|
|||||||
|
|
||||||
- **SHADOW_CUBE** = **1**
|
- **SHADOW_CUBE** = **1**
|
||||||
|
|
||||||
|
.. _enum_OmniLight_ShadowDetail:
|
||||||
|
|
||||||
|
enum **ShadowDetail**:
|
||||||
|
|
||||||
|
- **SHADOW_DETAIL_VERTICAL** = **0**
|
||||||
|
|
||||||
|
- **SHADOW_DETAIL_HORIZONTAL** = **1**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -237,58 +237,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_OS_SystemDir:
|
|
||||||
|
|
||||||
enum **SystemDir**:
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_DESKTOP** = **0** --- Desktop directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_DCIM** = **1** --- DCIM (Digital Camera Images) directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_DOCUMENTS** = **2** --- Documents directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_DOWNLOADS** = **3** --- Downloads directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_MOVIES** = **4** --- Movies directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_MUSIC** = **5** --- Music directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_PICTURES** = **6** --- Pictures directory path.
|
|
||||||
|
|
||||||
- **SYSTEM_DIR_RINGTONES** = **7** --- Ringtones directory path.
|
|
||||||
|
|
||||||
.. _enum_OS_ScreenOrientation:
|
|
||||||
|
|
||||||
enum **ScreenOrientation**:
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_LANDSCAPE** = **0** --- Landscape screen orientation.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_PORTRAIT** = **1** --- Portrait screen orientation.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_REVERSE_LANDSCAPE** = **2** --- Reverse landscape screen orientation.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_REVERSE_PORTRAIT** = **3** --- Reverse portrait screen orientation.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_SENSOR_LANDSCAPE** = **4** --- Uses landscape or reverse landscape based on the hardware sensor.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_SENSOR_PORTRAIT** = **5** --- Uses portrait or reverse portrait based on the hardware sensor.
|
|
||||||
|
|
||||||
- **SCREEN_ORIENTATION_SENSOR** = **6** --- Uses most suitable orientation based on the hardware sensor.
|
|
||||||
|
|
||||||
.. _enum_OS_PowerState:
|
|
||||||
|
|
||||||
enum **PowerState**:
|
|
||||||
|
|
||||||
- **POWERSTATE_UNKNOWN** = **0** --- Unknown powerstate.
|
|
||||||
|
|
||||||
- **POWERSTATE_ON_BATTERY** = **1** --- Unplugged, running on battery.
|
|
||||||
|
|
||||||
- **POWERSTATE_NO_BATTERY** = **2** --- Plugged in, no battery available.
|
|
||||||
|
|
||||||
- **POWERSTATE_CHARGING** = **3** --- Plugged in, battery charging.
|
|
||||||
|
|
||||||
- **POWERSTATE_CHARGED** = **4** --- Plugged in, battery fully charged.
|
|
||||||
|
|
||||||
.. _enum_OS_Weekday:
|
.. _enum_OS_Weekday:
|
||||||
|
|
||||||
enum **Weekday**:
|
enum **Weekday**:
|
||||||
@@ -335,6 +283,58 @@ enum **Month**:
|
|||||||
|
|
||||||
- **MONTH_DECEMBER** = **12** --- December.
|
- **MONTH_DECEMBER** = **12** --- December.
|
||||||
|
|
||||||
|
.. _enum_OS_ScreenOrientation:
|
||||||
|
|
||||||
|
enum **ScreenOrientation**:
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_LANDSCAPE** = **0** --- Landscape screen orientation.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_PORTRAIT** = **1** --- Portrait screen orientation.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_REVERSE_LANDSCAPE** = **2** --- Reverse landscape screen orientation.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_REVERSE_PORTRAIT** = **3** --- Reverse portrait screen orientation.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_SENSOR_LANDSCAPE** = **4** --- Uses landscape or reverse landscape based on the hardware sensor.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_SENSOR_PORTRAIT** = **5** --- Uses portrait or reverse portrait based on the hardware sensor.
|
||||||
|
|
||||||
|
- **SCREEN_ORIENTATION_SENSOR** = **6** --- Uses most suitable orientation based on the hardware sensor.
|
||||||
|
|
||||||
|
.. _enum_OS_SystemDir:
|
||||||
|
|
||||||
|
enum **SystemDir**:
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_DESKTOP** = **0** --- Desktop directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_DCIM** = **1** --- DCIM (Digital Camera Images) directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_DOCUMENTS** = **2** --- Documents directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_DOWNLOADS** = **3** --- Downloads directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_MOVIES** = **4** --- Movies directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_MUSIC** = **5** --- Music directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_PICTURES** = **6** --- Pictures directory path.
|
||||||
|
|
||||||
|
- **SYSTEM_DIR_RINGTONES** = **7** --- Ringtones directory path.
|
||||||
|
|
||||||
|
.. _enum_OS_PowerState:
|
||||||
|
|
||||||
|
enum **PowerState**:
|
||||||
|
|
||||||
|
- **POWERSTATE_UNKNOWN** = **0** --- Unknown powerstate.
|
||||||
|
|
||||||
|
- **POWERSTATE_ON_BATTERY** = **1** --- Unplugged, running on battery.
|
||||||
|
|
||||||
|
- **POWERSTATE_NO_BATTERY** = **2** --- Plugged in, no battery available.
|
||||||
|
|
||||||
|
- **POWERSTATE_CHARGING** = **3** --- Plugged in, battery charging.
|
||||||
|
|
||||||
|
- **POWERSTATE_CHARGED** = **4** --- Plugged in, battery fully charged.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ PacketPeer
|
|||||||
|
|
||||||
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PacketPeerStream<class_PacketPeerStream>`, :ref:`PacketPeerUDP<class_PacketPeerUDP>`, :ref:`WebSocketPeer<class_WebSocketPeer>`, :ref:`PacketPeerGDNative<class_PacketPeerGDNative>`, :ref:`NetworkedMultiplayerPeer<class_NetworkedMultiplayerPeer>`
|
**Inherited By:** :ref:`NetworkedMultiplayerPeer<class_NetworkedMultiplayerPeer>`, :ref:`PacketPeerGDNative<class_PacketPeerGDNative>`, :ref:`PacketPeerStream<class_PacketPeerStream>`, :ref:`PacketPeerUDP<class_PacketPeerUDP>`, :ref:`WebSocketPeer<class_WebSocketPeer>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -130,16 +130,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_ParticlesMaterial_Flags:
|
|
||||||
|
|
||||||
enum **Flags**:
|
|
||||||
|
|
||||||
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_align_y<class_ParticlesMaterial_flag_align_y>`.
|
|
||||||
|
|
||||||
- **FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_rotate_y<class_ParticlesMaterial_flag_rotate_y>`
|
|
||||||
|
|
||||||
- **FLAG_MAX** = **3**
|
|
||||||
|
|
||||||
.. _enum_ParticlesMaterial_Parameter:
|
.. _enum_ParticlesMaterial_Parameter:
|
||||||
|
|
||||||
enum **Parameter**:
|
enum **Parameter**:
|
||||||
@@ -170,6 +160,16 @@ enum **Parameter**:
|
|||||||
|
|
||||||
- **PARAM_MAX** = **12**
|
- **PARAM_MAX** = **12**
|
||||||
|
|
||||||
|
.. _enum_ParticlesMaterial_Flags:
|
||||||
|
|
||||||
|
enum **Flags**:
|
||||||
|
|
||||||
|
- **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_align_y<class_ParticlesMaterial_flag_align_y>`.
|
||||||
|
|
||||||
|
- **FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set :ref:`flag_rotate_y<class_ParticlesMaterial_flag_rotate_y>`
|
||||||
|
|
||||||
|
- **FLAG_MAX** = **3**
|
||||||
|
|
||||||
.. _enum_ParticlesMaterial_EmissionShape:
|
.. _enum_ParticlesMaterial_EmissionShape:
|
||||||
|
|
||||||
enum **EmissionShape**:
|
enum **EmissionShape**:
|
||||||
|
|||||||
@@ -230,49 +230,23 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Physics2DServer_CCDMode:
|
.. _enum_Physics2DServer_SpaceParameter:
|
||||||
|
|
||||||
enum **CCDMode**:
|
enum **SpaceParameter**:
|
||||||
|
|
||||||
- **CCD_MODE_DISABLED** = **0** --- Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects.
|
- **SPACE_PARAM_CONTACT_RECYCLE_RADIUS** = **0** --- Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
||||||
|
|
||||||
- **CCD_MODE_CAST_RAY** = **1** --- Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise.
|
- **SPACE_PARAM_CONTACT_MAX_SEPARATION** = **1** --- Constant to set/get the maximum distance a shape can be from another before they are considered separated.
|
||||||
|
|
||||||
- **CCD_MODE_CAST_SHAPE** = **2** --- Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise.
|
- **SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION** = **2** --- Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
||||||
|
|
||||||
.. _enum_Physics2DServer_BodyState:
|
- **SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD** = **3** --- Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
||||||
|
|
||||||
enum **BodyState**:
|
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD** = **4** --- Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
||||||
|
|
||||||
- **BODY_STATE_TRANSFORM** = **0** --- Constant to set/get the current transform matrix of the body.
|
- **SPACE_PARAM_BODY_TIME_TO_SLEEP** = **5** --- Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time.
|
||||||
|
|
||||||
- **BODY_STATE_LINEAR_VELOCITY** = **1** --- Constant to set/get the current linear velocity of the body.
|
- **SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS** = **6** --- Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision.
|
||||||
|
|
||||||
- **BODY_STATE_ANGULAR_VELOCITY** = **2** --- Constant to set/get the current angular velocity of the body.
|
|
||||||
|
|
||||||
- **BODY_STATE_SLEEPING** = **3** --- Constant to sleep/wake up a body, or to get whether it is sleeping.
|
|
||||||
|
|
||||||
- **BODY_STATE_CAN_SLEEP** = **4** --- Constant to set/get whether the body can sleep.
|
|
||||||
|
|
||||||
.. _enum_Physics2DServer_ProcessInfo:
|
|
||||||
|
|
||||||
enum **ProcessInfo**:
|
|
||||||
|
|
||||||
- **INFO_ACTIVE_OBJECTS** = **0** --- Constant to get the number of objects that are not sleeping.
|
|
||||||
|
|
||||||
- **INFO_COLLISION_PAIRS** = **1** --- Constant to get the number of possible collisions.
|
|
||||||
|
|
||||||
- **INFO_ISLAND_COUNT** = **2** --- Constant to get the number of space regions where a collision could occur.
|
|
||||||
|
|
||||||
.. _enum_Physics2DServer_JointParam:
|
|
||||||
|
|
||||||
enum **JointParam**:
|
|
||||||
|
|
||||||
- **JOINT_PARAM_BIAS** = **0**
|
|
||||||
|
|
||||||
- **JOINT_PARAM_MAX_BIAS** = **1**
|
|
||||||
|
|
||||||
- **JOINT_PARAM_MAX_FORCE** = **2**
|
|
||||||
|
|
||||||
.. _enum_Physics2DServer_ShapeType:
|
.. _enum_Physics2DServer_ShapeType:
|
||||||
|
|
||||||
@@ -316,13 +290,31 @@ enum **AreaParameter**:
|
|||||||
|
|
||||||
- **AREA_PARAM_PRIORITY** = **7** --- Constant to set/get the priority (order of processing) of an area.
|
- **AREA_PARAM_PRIORITY** = **7** --- Constant to set/get the priority (order of processing) of an area.
|
||||||
|
|
||||||
.. _enum_Physics2DServer_AreaBodyStatus:
|
.. _enum_Physics2DServer_AreaSpaceOverrideMode:
|
||||||
|
|
||||||
enum **AreaBodyStatus**:
|
enum **AreaSpaceOverrideMode**:
|
||||||
|
|
||||||
- **AREA_BODY_ADDED** = **0** --- The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
- **AREA_SPACE_OVERRIDE_DISABLED** = **0** --- This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
||||||
|
|
||||||
- **AREA_BODY_REMOVED** = **1** --- The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
- **AREA_SPACE_OVERRIDE_COMBINE** = **1** --- This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_COMBINE_REPLACE** = **2** --- This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_REPLACE** = **3** --- This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_REPLACE_COMBINE** = **4** --- This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
||||||
|
|
||||||
|
.. _enum_Physics2DServer_BodyMode:
|
||||||
|
|
||||||
|
enum **BodyMode**:
|
||||||
|
|
||||||
|
- **BODY_MODE_STATIC** = **0** --- Constant for static bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_KINEMATIC** = **1** --- Constant for kinematic bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_RIGID** = **2** --- Constant for rigid bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_CHARACTER** = **3** --- Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
|
||||||
|
|
||||||
.. _enum_Physics2DServer_BodyParameter:
|
.. _enum_Physics2DServer_BodyParameter:
|
||||||
|
|
||||||
@@ -344,17 +336,39 @@ enum **BodyParameter**:
|
|||||||
|
|
||||||
- **BODY_PARAM_MAX** = **7** --- This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0.
|
- **BODY_PARAM_MAX** = **7** --- This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0.
|
||||||
|
|
||||||
.. _enum_Physics2DServer_BodyMode:
|
.. _enum_Physics2DServer_BodyState:
|
||||||
|
|
||||||
enum **BodyMode**:
|
enum **BodyState**:
|
||||||
|
|
||||||
- **BODY_MODE_STATIC** = **0** --- Constant for static bodies.
|
- **BODY_STATE_TRANSFORM** = **0** --- Constant to set/get the current transform matrix of the body.
|
||||||
|
|
||||||
- **BODY_MODE_KINEMATIC** = **1** --- Constant for kinematic bodies.
|
- **BODY_STATE_LINEAR_VELOCITY** = **1** --- Constant to set/get the current linear velocity of the body.
|
||||||
|
|
||||||
- **BODY_MODE_RIGID** = **2** --- Constant for rigid bodies.
|
- **BODY_STATE_ANGULAR_VELOCITY** = **2** --- Constant to set/get the current angular velocity of the body.
|
||||||
|
|
||||||
- **BODY_MODE_CHARACTER** = **3** --- Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
|
- **BODY_STATE_SLEEPING** = **3** --- Constant to sleep/wake up a body, or to get whether it is sleeping.
|
||||||
|
|
||||||
|
- **BODY_STATE_CAN_SLEEP** = **4** --- Constant to set/get whether the body can sleep.
|
||||||
|
|
||||||
|
.. _enum_Physics2DServer_JointType:
|
||||||
|
|
||||||
|
enum **JointType**:
|
||||||
|
|
||||||
|
- **JOINT_PIN** = **0** --- Constant to create pin joints.
|
||||||
|
|
||||||
|
- **JOINT_GROOVE** = **1** --- Constant to create groove joints.
|
||||||
|
|
||||||
|
- **JOINT_DAMPED_SPRING** = **2** --- Constant to create damped spring joints.
|
||||||
|
|
||||||
|
.. _enum_Physics2DServer_JointParam:
|
||||||
|
|
||||||
|
enum **JointParam**:
|
||||||
|
|
||||||
|
- **JOINT_PARAM_BIAS** = **0**
|
||||||
|
|
||||||
|
- **JOINT_PARAM_MAX_BIAS** = **1**
|
||||||
|
|
||||||
|
- **JOINT_PARAM_MAX_FORCE** = **2**
|
||||||
|
|
||||||
.. _enum_Physics2DServer_DampedStringParam:
|
.. _enum_Physics2DServer_DampedStringParam:
|
||||||
|
|
||||||
@@ -366,47 +380,33 @@ enum **DampedStringParam**:
|
|||||||
|
|
||||||
- **DAMPED_STRING_DAMPING** = **2** --- Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping).
|
- **DAMPED_STRING_DAMPING** = **2** --- Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping).
|
||||||
|
|
||||||
.. _enum_Physics2DServer_SpaceParameter:
|
.. _enum_Physics2DServer_CCDMode:
|
||||||
|
|
||||||
enum **SpaceParameter**:
|
enum **CCDMode**:
|
||||||
|
|
||||||
- **SPACE_PARAM_CONTACT_RECYCLE_RADIUS** = **0** --- Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
- **CCD_MODE_DISABLED** = **0** --- Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects.
|
||||||
|
|
||||||
- **SPACE_PARAM_CONTACT_MAX_SEPARATION** = **1** --- Constant to set/get the maximum distance a shape can be from another before they are considered separated.
|
- **CCD_MODE_CAST_RAY** = **1** --- Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise.
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION** = **2** --- Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
- **CCD_MODE_CAST_SHAPE** = **2** --- Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise.
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD** = **3** --- Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
.. _enum_Physics2DServer_AreaBodyStatus:
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD** = **4** --- Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
enum **AreaBodyStatus**:
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_TIME_TO_SLEEP** = **5** --- Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time.
|
- **AREA_BODY_ADDED** = **0** --- The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
||||||
|
|
||||||
- **SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS** = **6** --- Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision.
|
- **AREA_BODY_REMOVED** = **1** --- The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
||||||
|
|
||||||
.. _enum_Physics2DServer_AreaSpaceOverrideMode:
|
.. _enum_Physics2DServer_ProcessInfo:
|
||||||
|
|
||||||
enum **AreaSpaceOverrideMode**:
|
enum **ProcessInfo**:
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_DISABLED** = **0** --- This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
- **INFO_ACTIVE_OBJECTS** = **0** --- Constant to get the number of objects that are not sleeping.
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_COMBINE** = **1** --- This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
- **INFO_COLLISION_PAIRS** = **1** --- Constant to get the number of possible collisions.
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_COMBINE_REPLACE** = **2** --- This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
- **INFO_ISLAND_COUNT** = **2** --- Constant to get the number of space regions where a collision could occur.
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_REPLACE** = **3** --- This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_REPLACE_COMBINE** = **4** --- This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
||||||
|
|
||||||
.. _enum_Physics2DServer_JointType:
|
|
||||||
|
|
||||||
enum **JointType**:
|
|
||||||
|
|
||||||
- **JOINT_PIN** = **0** --- Constant to create pin joints.
|
|
||||||
|
|
||||||
- **JOINT_GROOVE** = **1** --- Constant to create groove joints.
|
|
||||||
|
|
||||||
- **JOINT_DAMPED_SPRING** = **2** --- Constant to create damped spring joints.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ PhysicsBody
|
|||||||
|
|
||||||
**Inherits:** :ref:`CollisionObject<class_CollisionObject>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`CollisionObject<class_CollisionObject>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PhysicalBone<class_PhysicalBone>`, :ref:`StaticBody<class_StaticBody>`, :ref:`KinematicBody<class_KinematicBody>`, :ref:`RigidBody<class_RigidBody>`
|
**Inherited By:** :ref:`KinematicBody<class_KinematicBody>`, :ref:`PhysicalBone<class_PhysicalBone>`, :ref:`RigidBody<class_RigidBody>`, :ref:`StaticBody<class_StaticBody>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ PhysicsBody2D
|
|||||||
|
|
||||||
**Inherits:** :ref:`CollisionObject2D<class_CollisionObject2D>` **<** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`CollisionObject2D<class_CollisionObject2D>` **<** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`RigidBody2D<class_RigidBody2D>`, :ref:`StaticBody2D<class_StaticBody2D>`, :ref:`KinematicBody2D<class_KinematicBody2D>`
|
**Inherited By:** :ref:`KinematicBody2D<class_KinematicBody2D>`, :ref:`RigidBody2D<class_RigidBody2D>`, :ref:`StaticBody2D<class_StaticBody2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -248,117 +248,19 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_PhysicsServer_BodyState:
|
.. _enum_PhysicsServer_JointType:
|
||||||
|
|
||||||
enum **BodyState**:
|
enum **JointType**:
|
||||||
|
|
||||||
- **BODY_STATE_TRANSFORM** = **0** --- Constant to set/get the current transform matrix of the body.
|
- **JOINT_PIN** = **0** --- The :ref:`Joint<class_Joint>` is a :ref:`PinJoint<class_PinJoint>`.
|
||||||
|
|
||||||
- **BODY_STATE_LINEAR_VELOCITY** = **1** --- Constant to set/get the current linear velocity of the body.
|
- **JOINT_HINGE** = **1** --- The :ref:`Joint<class_Joint>` is a :ref:`HingeJoint<class_HingeJoint>`.
|
||||||
|
|
||||||
- **BODY_STATE_ANGULAR_VELOCITY** = **2** --- Constant to set/get the current angular velocity of the body.
|
- **JOINT_SLIDER** = **2** --- The :ref:`Joint<class_Joint>` is a :ref:`SliderJoint<class_SliderJoint>`.
|
||||||
|
|
||||||
- **BODY_STATE_SLEEPING** = **3** --- Constant to sleep/wake up a body, or to get whether it is sleeping.
|
- **JOINT_CONE_TWIST** = **3** --- The :ref:`Joint<class_Joint>` is a :ref:`ConeTwistJoint<class_ConeTwistJoint>`.
|
||||||
|
|
||||||
- **BODY_STATE_CAN_SLEEP** = **4** --- Constant to set/get whether the body can sleep.
|
- **JOINT_6DOF** = **4** --- The :ref:`Joint<class_Joint>` is a :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`.
|
||||||
|
|
||||||
.. _enum_PhysicsServer_G6DOFJointAxisParam:
|
|
||||||
|
|
||||||
enum **G6DOFJointAxisParam**:
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_LOWER_LIMIT** = **0** --- The minimum difference between the pivot points' axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_UPPER_LIMIT** = **1** --- The maximum difference between the pivot points' axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS** = **2** --- A factor that gets applied to the movement across the axes. The lower, the slower the movement.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_RESTITUTION** = **3** --- The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_DAMPING** = **4** --- The amount of damping that happens at the linear motion across the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY** = **5** --- The velocity that the joint's linear motor will attempt to reach.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT** = **6** --- The maximum force that the linear motor can apply while trying to reach the target velocity.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_LOWER_LIMIT** = **10** --- The minimum rotation in negative direction to break loose and rotate around the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_UPPER_LIMIT** = **11** --- The minimum rotation in positive direction to break loose and rotate around the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS** = **12** --- A factor that gets multiplied onto all rotations across the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_DAMPING** = **13** --- The amount of rotational damping across the axes. The lower, the more dampening occurs.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_RESTITUTION** = **14** --- The amount of rotational restitution across the axes. The lower, the more restitution occurs.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_FORCE_LIMIT** = **15** --- The maximum amount of force that can occur, when rotating around the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_ERP** = **16** --- When correcting the crossing of limits in rotation across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY** = **17** --- Target speed for the motor at the axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT** = **18** --- Maximum acceleration for the motor at the axes.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_ProcessInfo:
|
|
||||||
|
|
||||||
enum **ProcessInfo**:
|
|
||||||
|
|
||||||
- **INFO_ACTIVE_OBJECTS** = **0** --- Constant to get the number of objects that are not sleeping.
|
|
||||||
|
|
||||||
- **INFO_COLLISION_PAIRS** = **1** --- Constant to get the number of possible collisions.
|
|
||||||
|
|
||||||
- **INFO_ISLAND_COUNT** = **2** --- Constant to get the number of space regions where a collision could occur.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_ShapeType:
|
|
||||||
|
|
||||||
enum **ShapeType**:
|
|
||||||
|
|
||||||
- **SHAPE_PLANE** = **0** --- The :ref:`Shape<class_Shape>` is a :ref:`PlaneShape<class_PlaneShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_RAY** = **1** --- The :ref:`Shape<class_Shape>` is a :ref:`RayShape<class_RayShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_SPHERE** = **2** --- The :ref:`Shape<class_Shape>` is a :ref:`SphereShape<class_SphereShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_BOX** = **3** --- The :ref:`Shape<class_Shape>` is a :ref:`BoxShape<class_BoxShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_CAPSULE** = **4** --- The :ref:`Shape<class_Shape>` is a :ref:`CapsuleShape<class_CapsuleShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_CYLINDER** = **5** --- The :ref:`Shape<class_Shape>` is a :ref:`CylinderShape<class_CylinderShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_CONVEX_POLYGON** = **6** --- The :ref:`Shape<class_Shape>` is a :ref:`ConvexPolygonShape<class_ConvexPolygonShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_CONCAVE_POLYGON** = **7** --- The :ref:`Shape<class_Shape>` is a :ref:`ConcavePolygonShape<class_ConcavePolygonShape>`.
|
|
||||||
|
|
||||||
- **SHAPE_HEIGHTMAP** = **8** --- The :ref:`Shape<class_Shape>` is a HeightMapShape.
|
|
||||||
|
|
||||||
- **SHAPE_CUSTOM** = **9** --- This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_HingeJointFlag:
|
|
||||||
|
|
||||||
enum **HingeJointFlag**:
|
|
||||||
|
|
||||||
- **HINGE_JOINT_FLAG_USE_LIMIT** = **0** --- If ``true``, the Hinge has a maximum and a minimum rotation.
|
|
||||||
|
|
||||||
- **HINGE_JOINT_FLAG_ENABLE_MOTOR** = **1** --- If ``true``, a motor turns the Hinge
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_AreaParameter:
|
|
||||||
|
|
||||||
enum **AreaParameter**:
|
|
||||||
|
|
||||||
- **AREA_PARAM_GRAVITY** = **0** --- Constant to set/get gravity strength in an area.
|
|
||||||
|
|
||||||
- **AREA_PARAM_GRAVITY_VECTOR** = **1** --- Constant to set/get gravity vector/center in an area.
|
|
||||||
|
|
||||||
- **AREA_PARAM_GRAVITY_IS_POINT** = **2** --- Constant to set/get whether the gravity vector of an area is a direction, or a center point.
|
|
||||||
|
|
||||||
- **AREA_PARAM_GRAVITY_DISTANCE_SCALE** = **3** --- Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance.
|
|
||||||
|
|
||||||
- **AREA_PARAM_GRAVITY_POINT_ATTENUATION** = **4** --- This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE.
|
|
||||||
|
|
||||||
- **AREA_PARAM_LINEAR_DAMP** = **5** --- Constant to set/get the linear dampening factor of an area.
|
|
||||||
|
|
||||||
- **AREA_PARAM_ANGULAR_DAMP** = **6** --- Constant to set/get the angular dampening factor of an area.
|
|
||||||
|
|
||||||
- **AREA_PARAM_PRIORITY** = **7** --- Constant to set/get the priority (order of processing) of an area.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_PinJointParam:
|
.. _enum_PhysicsServer_PinJointParam:
|
||||||
|
|
||||||
@@ -374,119 +276,33 @@ The higher, the stronger.
|
|||||||
|
|
||||||
- **PIN_JOINT_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint puts on its ends.
|
- **PIN_JOINT_IMPULSE_CLAMP** = **2** --- If above 0, this value is the maximum value for an impulse that this Joint puts on its ends.
|
||||||
|
|
||||||
.. _enum_PhysicsServer_BodyParameter:
|
.. _enum_PhysicsServer_HingeJointParam:
|
||||||
|
|
||||||
enum **BodyParameter**:
|
enum **HingeJointParam**:
|
||||||
|
|
||||||
- **BODY_PARAM_BOUNCE** = **0** --- Constant to set/get a body's bounce factor.
|
- **HINGE_JOINT_BIAS** = **0** --- The speed with which the two bodies get pulled together when they move in different directions.
|
||||||
|
|
||||||
- **BODY_PARAM_FRICTION** = **1** --- Constant to set/get a body's friction.
|
- **HINGE_JOINT_LIMIT_UPPER** = **1** --- The maximum rotation across the Hinge.
|
||||||
|
|
||||||
- **BODY_PARAM_MASS** = **2** --- Constant to set/get a body's mass.
|
- **HINGE_JOINT_LIMIT_LOWER** = **2** --- The minimum rotation across the Hinge.
|
||||||
|
|
||||||
- **BODY_PARAM_GRAVITY_SCALE** = **3** --- Constant to set/get a body's gravity multiplier.
|
- **HINGE_JOINT_LIMIT_BIAS** = **3** --- The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
|
||||||
|
|
||||||
- **BODY_PARAM_LINEAR_DAMP** = **4** --- Constant to set/get a body's linear dampening factor.
|
- **HINGE_JOINT_LIMIT_SOFTNESS** = **4**
|
||||||
|
|
||||||
- **BODY_PARAM_ANGULAR_DAMP** = **5** --- Constant to set/get a body's angular dampening factor.
|
- **HINGE_JOINT_LIMIT_RELAXATION** = **5** --- The lower this value, the more the rotation gets slowed down.
|
||||||
|
|
||||||
- **BODY_PARAM_MAX** = **6** --- This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0.
|
- **HINGE_JOINT_MOTOR_TARGET_VELOCITY** = **6** --- Target speed for the motor.
|
||||||
|
|
||||||
.. _enum_PhysicsServer_BodyMode:
|
- **HINGE_JOINT_MOTOR_MAX_IMPULSE** = **7** --- Maximum acceleration for the motor.
|
||||||
|
|
||||||
enum **BodyMode**:
|
.. _enum_PhysicsServer_HingeJointFlag:
|
||||||
|
|
||||||
- **BODY_MODE_STATIC** = **0** --- Constant for static bodies.
|
enum **HingeJointFlag**:
|
||||||
|
|
||||||
- **BODY_MODE_KINEMATIC** = **1** --- Constant for kinematic bodies.
|
- **HINGE_JOINT_FLAG_USE_LIMIT** = **0** --- If ``true``, the Hinge has a maximum and a minimum rotation.
|
||||||
|
|
||||||
- **BODY_MODE_RIGID** = **2** --- Constant for rigid bodies.
|
- **HINGE_JOINT_FLAG_ENABLE_MOTOR** = **1** --- If ``true``, a motor turns the Hinge
|
||||||
|
|
||||||
- **BODY_MODE_CHARACTER** = **3** --- Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_SpaceParameter:
|
|
||||||
|
|
||||||
enum **SpaceParameter**:
|
|
||||||
|
|
||||||
- **SPACE_PARAM_CONTACT_RECYCLE_RADIUS** = **0** --- Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_CONTACT_MAX_SEPARATION** = **1** --- Constant to set/get the maximum distance a shape can be from another before they are considered separated.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION** = **2** --- Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD** = **3** --- Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD** = **4** --- Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_TIME_TO_SLEEP** = **5** --- Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time.
|
|
||||||
|
|
||||||
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO** = **6**
|
|
||||||
|
|
||||||
- **SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS** = **7** --- Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_AreaBodyStatus:
|
|
||||||
|
|
||||||
enum **AreaBodyStatus**:
|
|
||||||
|
|
||||||
- **AREA_BODY_ADDED** = **0** --- The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
|
||||||
|
|
||||||
- **AREA_BODY_REMOVED** = **1** --- The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_BodyAxis:
|
|
||||||
|
|
||||||
enum **BodyAxis**:
|
|
||||||
|
|
||||||
- **BODY_AXIS_LINEAR_X** = **1**
|
|
||||||
|
|
||||||
- **BODY_AXIS_LINEAR_Y** = **2**
|
|
||||||
|
|
||||||
- **BODY_AXIS_LINEAR_Z** = **4**
|
|
||||||
|
|
||||||
- **BODY_AXIS_ANGULAR_X** = **8**
|
|
||||||
|
|
||||||
- **BODY_AXIS_ANGULAR_Y** = **16**
|
|
||||||
|
|
||||||
- **BODY_AXIS_ANGULAR_Z** = **32**
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_JointType:
|
|
||||||
|
|
||||||
enum **JointType**:
|
|
||||||
|
|
||||||
- **JOINT_PIN** = **0** --- The :ref:`Joint<class_Joint>` is a :ref:`PinJoint<class_PinJoint>`.
|
|
||||||
|
|
||||||
- **JOINT_HINGE** = **1** --- The :ref:`Joint<class_Joint>` is a :ref:`HingeJoint<class_HingeJoint>`.
|
|
||||||
|
|
||||||
- **JOINT_SLIDER** = **2** --- The :ref:`Joint<class_Joint>` is a :ref:`SliderJoint<class_SliderJoint>`.
|
|
||||||
|
|
||||||
- **JOINT_CONE_TWIST** = **3** --- The :ref:`Joint<class_Joint>` is a :ref:`ConeTwistJoint<class_ConeTwistJoint>`.
|
|
||||||
|
|
||||||
- **JOINT_6DOF** = **4** --- The :ref:`Joint<class_Joint>` is a :ref:`Generic6DOFJoint<class_Generic6DOFJoint>`.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_AreaSpaceOverrideMode:
|
|
||||||
|
|
||||||
enum **AreaSpaceOverrideMode**:
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_DISABLED** = **0** --- This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_COMBINE** = **1** --- This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_COMBINE_REPLACE** = **2** --- This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_REPLACE** = **3** --- This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
|
||||||
|
|
||||||
- **AREA_SPACE_OVERRIDE_REPLACE_COMBINE** = **4** --- This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_G6DOFJointAxisFlag:
|
|
||||||
|
|
||||||
enum **G6DOFJointAxisFlag**:
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT** = **0** --- If ``set`` there is linear motion possible within the given limits.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT** = **1** --- If ``set`` there is rotational motion possible.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_FLAG_ENABLE_MOTOR** = **4** --- If ``set`` there is a rotational motor across these axes.
|
|
||||||
|
|
||||||
- **G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR** = **5** --- If ``set`` there is a linear motor on this axis that targets a specific velocity.
|
|
||||||
|
|
||||||
.. _enum_PhysicsServer_SliderJointParam:
|
.. _enum_PhysicsServer_SliderJointParam:
|
||||||
|
|
||||||
@@ -562,25 +378,209 @@ The higher, the faster.
|
|||||||
|
|
||||||
- **CONE_TWIST_JOINT_RELAXATION** = **4** --- Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
- **CONE_TWIST_JOINT_RELAXATION** = **4** --- Defines, how fast the swing- and twist-speed-difference on both sides gets synced.
|
||||||
|
|
||||||
.. _enum_PhysicsServer_HingeJointParam:
|
.. _enum_PhysicsServer_G6DOFJointAxisParam:
|
||||||
|
|
||||||
enum **HingeJointParam**:
|
enum **G6DOFJointAxisParam**:
|
||||||
|
|
||||||
- **HINGE_JOINT_BIAS** = **0** --- The speed with which the two bodies get pulled together when they move in different directions.
|
- **G6DOF_JOINT_LINEAR_LOWER_LIMIT** = **0** --- The minimum difference between the pivot points' axes.
|
||||||
|
|
||||||
- **HINGE_JOINT_LIMIT_UPPER** = **1** --- The maximum rotation across the Hinge.
|
- **G6DOF_JOINT_LINEAR_UPPER_LIMIT** = **1** --- The maximum difference between the pivot points' axes.
|
||||||
|
|
||||||
- **HINGE_JOINT_LIMIT_LOWER** = **2** --- The minimum rotation across the Hinge.
|
- **G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS** = **2** --- A factor that gets applied to the movement across the axes. The lower, the slower the movement.
|
||||||
|
|
||||||
- **HINGE_JOINT_LIMIT_BIAS** = **3** --- The speed with which the rotation across the axis perpendicular to the hinge gets corrected.
|
- **G6DOF_JOINT_LINEAR_RESTITUTION** = **3** --- The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost.
|
||||||
|
|
||||||
- **HINGE_JOINT_LIMIT_SOFTNESS** = **4**
|
- **G6DOF_JOINT_LINEAR_DAMPING** = **4** --- The amount of damping that happens at the linear motion across the axes.
|
||||||
|
|
||||||
- **HINGE_JOINT_LIMIT_RELAXATION** = **5** --- The lower this value, the more the rotation gets slowed down.
|
- **G6DOF_JOINT_LINEAR_MOTOR_TARGET_VELOCITY** = **5** --- The velocity that the joint's linear motor will attempt to reach.
|
||||||
|
|
||||||
- **HINGE_JOINT_MOTOR_TARGET_VELOCITY** = **6** --- Target speed for the motor.
|
- **G6DOF_JOINT_LINEAR_MOTOR_FORCE_LIMIT** = **6** --- The maximum force that the linear motor can apply while trying to reach the target velocity.
|
||||||
|
|
||||||
- **HINGE_JOINT_MOTOR_MAX_IMPULSE** = **7** --- Maximum acceleration for the motor.
|
- **G6DOF_JOINT_ANGULAR_LOWER_LIMIT** = **10** --- The minimum rotation in negative direction to break loose and rotate around the axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_UPPER_LIMIT** = **11** --- The minimum rotation in positive direction to break loose and rotate around the axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS** = **12** --- A factor that gets multiplied onto all rotations across the axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_DAMPING** = **13** --- The amount of rotational damping across the axes. The lower, the more dampening occurs.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_RESTITUTION** = **14** --- The amount of rotational restitution across the axes. The lower, the more restitution occurs.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_FORCE_LIMIT** = **15** --- The maximum amount of force that can occur, when rotating around the axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_ERP** = **16** --- When correcting the crossing of limits in rotation across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY** = **17** --- Target speed for the motor at the axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT** = **18** --- Maximum acceleration for the motor at the axes.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_G6DOFJointAxisFlag:
|
||||||
|
|
||||||
|
enum **G6DOFJointAxisFlag**:
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT** = **0** --- If ``set`` there is linear motion possible within the given limits.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT** = **1** --- If ``set`` there is rotational motion possible.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_FLAG_ENABLE_MOTOR** = **4** --- If ``set`` there is a rotational motor across these axes.
|
||||||
|
|
||||||
|
- **G6DOF_JOINT_FLAG_ENABLE_LINEAR_MOTOR** = **5** --- If ``set`` there is a linear motor on this axis that targets a specific velocity.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_ShapeType:
|
||||||
|
|
||||||
|
enum **ShapeType**:
|
||||||
|
|
||||||
|
- **SHAPE_PLANE** = **0** --- The :ref:`Shape<class_Shape>` is a :ref:`PlaneShape<class_PlaneShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_RAY** = **1** --- The :ref:`Shape<class_Shape>` is a :ref:`RayShape<class_RayShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_SPHERE** = **2** --- The :ref:`Shape<class_Shape>` is a :ref:`SphereShape<class_SphereShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_BOX** = **3** --- The :ref:`Shape<class_Shape>` is a :ref:`BoxShape<class_BoxShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_CAPSULE** = **4** --- The :ref:`Shape<class_Shape>` is a :ref:`CapsuleShape<class_CapsuleShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_CYLINDER** = **5** --- The :ref:`Shape<class_Shape>` is a :ref:`CylinderShape<class_CylinderShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_CONVEX_POLYGON** = **6** --- The :ref:`Shape<class_Shape>` is a :ref:`ConvexPolygonShape<class_ConvexPolygonShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_CONCAVE_POLYGON** = **7** --- The :ref:`Shape<class_Shape>` is a :ref:`ConcavePolygonShape<class_ConcavePolygonShape>`.
|
||||||
|
|
||||||
|
- **SHAPE_HEIGHTMAP** = **8** --- The :ref:`Shape<class_Shape>` is a HeightMapShape.
|
||||||
|
|
||||||
|
- **SHAPE_CUSTOM** = **9** --- This constant is used internally by the engine. Any attempt to create this kind of shape results in an error.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_AreaParameter:
|
||||||
|
|
||||||
|
enum **AreaParameter**:
|
||||||
|
|
||||||
|
- **AREA_PARAM_GRAVITY** = **0** --- Constant to set/get gravity strength in an area.
|
||||||
|
|
||||||
|
- **AREA_PARAM_GRAVITY_VECTOR** = **1** --- Constant to set/get gravity vector/center in an area.
|
||||||
|
|
||||||
|
- **AREA_PARAM_GRAVITY_IS_POINT** = **2** --- Constant to set/get whether the gravity vector of an area is a direction, or a center point.
|
||||||
|
|
||||||
|
- **AREA_PARAM_GRAVITY_DISTANCE_SCALE** = **3** --- Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance.
|
||||||
|
|
||||||
|
- **AREA_PARAM_GRAVITY_POINT_ATTENUATION** = **4** --- This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE.
|
||||||
|
|
||||||
|
- **AREA_PARAM_LINEAR_DAMP** = **5** --- Constant to set/get the linear dampening factor of an area.
|
||||||
|
|
||||||
|
- **AREA_PARAM_ANGULAR_DAMP** = **6** --- Constant to set/get the angular dampening factor of an area.
|
||||||
|
|
||||||
|
- **AREA_PARAM_PRIORITY** = **7** --- Constant to set/get the priority (order of processing) of an area.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_AreaSpaceOverrideMode:
|
||||||
|
|
||||||
|
enum **AreaSpaceOverrideMode**:
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_DISABLED** = **0** --- This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_COMBINE** = **1** --- This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_COMBINE_REPLACE** = **2** --- This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_REPLACE** = **3** --- This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas.
|
||||||
|
|
||||||
|
- **AREA_SPACE_OVERRIDE_REPLACE_COMBINE** = **4** --- This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_BodyMode:
|
||||||
|
|
||||||
|
enum **BodyMode**:
|
||||||
|
|
||||||
|
- **BODY_MODE_STATIC** = **0** --- Constant for static bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_KINEMATIC** = **1** --- Constant for kinematic bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_RIGID** = **2** --- Constant for rigid bodies.
|
||||||
|
|
||||||
|
- **BODY_MODE_CHARACTER** = **3** --- Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_BodyParameter:
|
||||||
|
|
||||||
|
enum **BodyParameter**:
|
||||||
|
|
||||||
|
- **BODY_PARAM_BOUNCE** = **0** --- Constant to set/get a body's bounce factor.
|
||||||
|
|
||||||
|
- **BODY_PARAM_FRICTION** = **1** --- Constant to set/get a body's friction.
|
||||||
|
|
||||||
|
- **BODY_PARAM_MASS** = **2** --- Constant to set/get a body's mass.
|
||||||
|
|
||||||
|
- **BODY_PARAM_GRAVITY_SCALE** = **3** --- Constant to set/get a body's gravity multiplier.
|
||||||
|
|
||||||
|
- **BODY_PARAM_LINEAR_DAMP** = **4** --- Constant to set/get a body's linear dampening factor.
|
||||||
|
|
||||||
|
- **BODY_PARAM_ANGULAR_DAMP** = **5** --- Constant to set/get a body's angular dampening factor.
|
||||||
|
|
||||||
|
- **BODY_PARAM_MAX** = **6** --- This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_BodyState:
|
||||||
|
|
||||||
|
enum **BodyState**:
|
||||||
|
|
||||||
|
- **BODY_STATE_TRANSFORM** = **0** --- Constant to set/get the current transform matrix of the body.
|
||||||
|
|
||||||
|
- **BODY_STATE_LINEAR_VELOCITY** = **1** --- Constant to set/get the current linear velocity of the body.
|
||||||
|
|
||||||
|
- **BODY_STATE_ANGULAR_VELOCITY** = **2** --- Constant to set/get the current angular velocity of the body.
|
||||||
|
|
||||||
|
- **BODY_STATE_SLEEPING** = **3** --- Constant to sleep/wake up a body, or to get whether it is sleeping.
|
||||||
|
|
||||||
|
- **BODY_STATE_CAN_SLEEP** = **4** --- Constant to set/get whether the body can sleep.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_AreaBodyStatus:
|
||||||
|
|
||||||
|
enum **AreaBodyStatus**:
|
||||||
|
|
||||||
|
- **AREA_BODY_ADDED** = **0** --- The value of the first parameter and area callback function receives, when an object enters one of its shapes.
|
||||||
|
|
||||||
|
- **AREA_BODY_REMOVED** = **1** --- The value of the first parameter and area callback function receives, when an object exits one of its shapes.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_ProcessInfo:
|
||||||
|
|
||||||
|
enum **ProcessInfo**:
|
||||||
|
|
||||||
|
- **INFO_ACTIVE_OBJECTS** = **0** --- Constant to get the number of objects that are not sleeping.
|
||||||
|
|
||||||
|
- **INFO_COLLISION_PAIRS** = **1** --- Constant to get the number of possible collisions.
|
||||||
|
|
||||||
|
- **INFO_ISLAND_COUNT** = **2** --- Constant to get the number of space regions where a collision could occur.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_SpaceParameter:
|
||||||
|
|
||||||
|
enum **SpaceParameter**:
|
||||||
|
|
||||||
|
- **SPACE_PARAM_CONTACT_RECYCLE_RADIUS** = **0** --- Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_CONTACT_MAX_SEPARATION** = **1** --- Constant to set/get the maximum distance a shape can be from another before they are considered separated.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION** = **2** --- Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD** = **3** --- Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD** = **4** --- Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_BODY_TIME_TO_SLEEP** = **5** --- Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time.
|
||||||
|
|
||||||
|
- **SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO** = **6**
|
||||||
|
|
||||||
|
- **SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS** = **7** --- Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision.
|
||||||
|
|
||||||
|
.. _enum_PhysicsServer_BodyAxis:
|
||||||
|
|
||||||
|
enum **BodyAxis**:
|
||||||
|
|
||||||
|
- **BODY_AXIS_LINEAR_X** = **1**
|
||||||
|
|
||||||
|
- **BODY_AXIS_LINEAR_Y** = **2**
|
||||||
|
|
||||||
|
- **BODY_AXIS_LINEAR_Z** = **4**
|
||||||
|
|
||||||
|
- **BODY_AXIS_ANGULAR_X** = **8**
|
||||||
|
|
||||||
|
- **BODY_AXIS_ANGULAR_Y** = **16**
|
||||||
|
|
||||||
|
- **BODY_AXIS_ANGULAR_Z** = **32**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Popup
|
|||||||
|
|
||||||
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PopupPanel<class_PopupPanel>`, :ref:`PopupDialog<class_PopupDialog>`, :ref:`PopupMenu<class_PopupMenu>`, :ref:`WindowDialog<class_WindowDialog>`
|
**Inherited By:** :ref:`PopupDialog<class_PopupDialog>`, :ref:`PopupMenu<class_PopupMenu>`, :ref:`PopupPanel<class_PopupPanel>`, :ref:`WindowDialog<class_WindowDialog>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ PrimitiveMesh
|
|||||||
|
|
||||||
**Inherits:** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`PlaneMesh<class_PlaneMesh>`, :ref:`CubeMesh<class_CubeMesh>`, :ref:`SphereMesh<class_SphereMesh>`, :ref:`CylinderMesh<class_CylinderMesh>`, :ref:`CapsuleMesh<class_CapsuleMesh>`, :ref:`QuadMesh<class_QuadMesh>`, :ref:`PrismMesh<class_PrismMesh>`
|
**Inherited By:** :ref:`CapsuleMesh<class_CapsuleMesh>`, :ref:`CubeMesh<class_CubeMesh>`, :ref:`CylinderMesh<class_CylinderMesh>`, :ref:`PlaneMesh<class_PlaneMesh>`, :ref:`PrismMesh<class_PrismMesh>`, :ref:`QuadMesh<class_QuadMesh>`, :ref:`SphereMesh<class_SphereMesh>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Range
|
|||||||
|
|
||||||
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`SpinBox<class_SpinBox>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`ProgressBar<class_ProgressBar>`, :ref:`TextureProgress<class_TextureProgress>`, :ref:`Slider<class_Slider>`
|
**Inherited By:** :ref:`ProgressBar<class_ProgressBar>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, :ref:`SpinBox<class_SpinBox>`, :ref:`TextureProgress<class_TextureProgress>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Reference
|
|||||||
|
|
||||||
**Inherits:** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`RegExMatch<class_RegExMatch>`, :ref:`RegEx<class_RegEx>`, :ref:`EncodedObjectAsID<class_EncodedObjectAsID>`, :ref:`SurfaceTool<class_SurfaceTool>`, :ref:`SpatialGizmo<class_SpatialGizmo>`, :ref:`TriangleMesh<class_TriangleMesh>`, :ref:`AnimationTrackEditPlugin<class_AnimationTrackEditPlugin>`, :ref:`EditorScenePostImport<class_EditorScenePostImport>`, :ref:`Expression<class_Expression>`, :ref:`PhysicsShapeQueryResult<class_PhysicsShapeQueryResult>`, :ref:`EditorSceneImporter<class_EditorSceneImporter>`, :ref:`Physics2DTestMotionResult<class_Physics2DTestMotionResult>`, :ref:`FuncRef<class_FuncRef>`, :ref:`File<class_File>`, :ref:`TCP_Server<class_TCP_Server>`, :ref:`Physics2DShapeQueryResult<class_Physics2DShapeQueryResult>`, :ref:`ConfigFile<class_ConfigFile>`, :ref:`StreamPeer<class_StreamPeer>`, :ref:`GDScriptNativeClass<class_GDScriptNativeClass>`, :ref:`HTTPClient<class_HTTPClient>`, :ref:`AudioStreamPlayback<class_AudioStreamPlayback>`, :ref:`VisualScriptFunctionState<class_VisualScriptFunctionState>`, :ref:`EditorInspectorPlugin<class_EditorInspectorPlugin>`, :ref:`Resource<class_Resource>`, :ref:`KinematicCollision<class_KinematicCollision>`, :ref:`JSONParseResult<class_JSONParseResult>`, :ref:`SpatialVelocityTracker<class_SpatialVelocityTracker>`, :ref:`EditorResourcePreviewGenerator<class_EditorResourcePreviewGenerator>`, :ref:`Physics2DShapeQueryParameters<class_Physics2DShapeQueryParameters>`, :ref:`EditorExportPlugin<class_EditorExportPlugin>`, :ref:`ARVRInterface<class_ARVRInterface>`, :ref:`UPNP<class_UPNP>`, :ref:`EditorScript<class_EditorScript>`, :ref:`MultiplayerAPI<class_MultiplayerAPI>`, :ref:`Mutex<class_Mutex>`, :ref:`XMLParser<class_XMLParser>`, :ref:`PacketPeer<class_PacketPeer>`, :ref:`Semaphore<class_Semaphore>`, :ref:`EditorImportPlugin<class_EditorImportPlugin>`, :ref:`Directory<class_Directory>`, :ref:`WeakRef<class_WeakRef>`, :ref:`GDScriptFunctionState<class_GDScriptFunctionState>`, :ref:`Marshalls<class_Marshalls>`, :ref:`ResourceFormatSaver<class_ResourceFormatSaver>`, :ref:`SceneState<class_SceneState>`, :ref:`ResourceFormatLoader<class_ResourceFormatLoader>`, :ref:`PCKPacker<class_PCKPacker>`, :ref:`MeshDataTool<class_MeshDataTool>`, :ref:`AStar<class_AStar>`, :ref:`ResourceImporter<class_ResourceImporter>`, :ref:`RandomNumberGenerator<class_RandomNumberGenerator>`, :ref:`EditorResourceConversionPlugin<class_EditorResourceConversionPlugin>`, :ref:`SceneTreeTimer<class_SceneTreeTimer>`, :ref:`UPNPDevice<class_UPNPDevice>`, :ref:`Thread<class_Thread>`, :ref:`PackedDataContainerRef<class_PackedDataContainerRef>`, :ref:`ResourceInteractiveLoader<class_ResourceInteractiveLoader>`, :ref:`KinematicCollision2D<class_KinematicCollision2D>`, :ref:`GDNative<class_GDNative>`, :ref:`PhysicsShapeQueryParameters<class_PhysicsShapeQueryParameters>`
|
**Inherited By:** :ref:`ARVRInterface<class_ARVRInterface>`, :ref:`AStar<class_AStar>`, :ref:`AnimationTrackEditPlugin<class_AnimationTrackEditPlugin>`, :ref:`AudioStreamPlayback<class_AudioStreamPlayback>`, :ref:`ConfigFile<class_ConfigFile>`, :ref:`Directory<class_Directory>`, :ref:`EditorExportPlugin<class_EditorExportPlugin>`, :ref:`EditorImportPlugin<class_EditorImportPlugin>`, :ref:`EditorInspectorPlugin<class_EditorInspectorPlugin>`, :ref:`EditorResourceConversionPlugin<class_EditorResourceConversionPlugin>`, :ref:`EditorResourcePreviewGenerator<class_EditorResourcePreviewGenerator>`, :ref:`EditorSceneImporter<class_EditorSceneImporter>`, :ref:`EditorScenePostImport<class_EditorScenePostImport>`, :ref:`EditorScript<class_EditorScript>`, :ref:`EncodedObjectAsID<class_EncodedObjectAsID>`, :ref:`Expression<class_Expression>`, :ref:`File<class_File>`, :ref:`FuncRef<class_FuncRef>`, :ref:`GDNative<class_GDNative>`, :ref:`GDScriptFunctionState<class_GDScriptFunctionState>`, :ref:`GDScriptNativeClass<class_GDScriptNativeClass>`, :ref:`HTTPClient<class_HTTPClient>`, :ref:`JSONParseResult<class_JSONParseResult>`, :ref:`KinematicCollision<class_KinematicCollision>`, :ref:`KinematicCollision2D<class_KinematicCollision2D>`, :ref:`Marshalls<class_Marshalls>`, :ref:`MeshDataTool<class_MeshDataTool>`, :ref:`MultiplayerAPI<class_MultiplayerAPI>`, :ref:`Mutex<class_Mutex>`, :ref:`PCKPacker<class_PCKPacker>`, :ref:`PackedDataContainerRef<class_PackedDataContainerRef>`, :ref:`PacketPeer<class_PacketPeer>`, :ref:`Physics2DShapeQueryParameters<class_Physics2DShapeQueryParameters>`, :ref:`Physics2DShapeQueryResult<class_Physics2DShapeQueryResult>`, :ref:`Physics2DTestMotionResult<class_Physics2DTestMotionResult>`, :ref:`PhysicsShapeQueryParameters<class_PhysicsShapeQueryParameters>`, :ref:`PhysicsShapeQueryResult<class_PhysicsShapeQueryResult>`, :ref:`RandomNumberGenerator<class_RandomNumberGenerator>`, :ref:`RegEx<class_RegEx>`, :ref:`RegExMatch<class_RegExMatch>`, :ref:`Resource<class_Resource>`, :ref:`ResourceFormatLoader<class_ResourceFormatLoader>`, :ref:`ResourceFormatSaver<class_ResourceFormatSaver>`, :ref:`ResourceImporter<class_ResourceImporter>`, :ref:`ResourceInteractiveLoader<class_ResourceInteractiveLoader>`, :ref:`SceneState<class_SceneState>`, :ref:`SceneTreeTimer<class_SceneTreeTimer>`, :ref:`Semaphore<class_Semaphore>`, :ref:`SpatialGizmo<class_SpatialGizmo>`, :ref:`SpatialVelocityTracker<class_SpatialVelocityTracker>`, :ref:`StreamPeer<class_StreamPeer>`, :ref:`SurfaceTool<class_SurfaceTool>`, :ref:`TCP_Server<class_TCP_Server>`, :ref:`Thread<class_Thread>`, :ref:`TriangleMesh<class_TriangleMesh>`, :ref:`UPNP<class_UPNP>`, :ref:`UPNPDevice<class_UPNPDevice>`, :ref:`VisualScriptFunctionState<class_VisualScriptFunctionState>`, :ref:`WeakRef<class_WeakRef>`, :ref:`XMLParser<class_XMLParser>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Resource
|
|||||||
|
|
||||||
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`AnimationNodeStateMachinePlayback<class_AnimationNodeStateMachinePlayback>`, :ref:`AudioStream<class_AudioStream>`, :ref:`Sky<class_Sky>`, :ref:`Theme<class_Theme>`, :ref:`TextureLayered<class_TextureLayered>`, :ref:`DynamicFontData<class_DynamicFontData>`, :ref:`InputEvent<class_InputEvent>`, :ref:`VisualShaderNode<class_VisualShaderNode>`, :ref:`Curve2D<class_Curve2D>`, :ref:`Image<class_Image>`, :ref:`Shape<class_Shape>`, :ref:`Shape2D<class_Shape2D>`, :ref:`Curve<class_Curve>`, :ref:`Mesh<class_Mesh>`, :ref:`StyleBox<class_StyleBox>`, :ref:`Environment<class_Environment>`, :ref:`CubeMap<class_CubeMap>`, :ref:`GDNativeLibrary<class_GDNativeLibrary>`, :ref:`Material<class_Material>`, :ref:`PhysicsMaterial<class_PhysicsMaterial>`, :ref:`VideoStream<class_VideoStream>`, :ref:`PackedScene<class_PackedScene>`, :ref:`Texture<class_Texture>`, :ref:`TextFile<class_TextFile>`, :ref:`ButtonGroup<class_ButtonGroup>`, :ref:`TileSet<class_TileSet>`, :ref:`ShortCut<class_ShortCut>`, :ref:`OpenSimplexNoise<class_OpenSimplexNoise>`, :ref:`BitMap<class_BitMap>`, :ref:`Animation<class_Animation>`, :ref:`BakedLightmapData<class_BakedLightmapData>`, :ref:`PolygonPathFinder<class_PolygonPathFinder>`, :ref:`Translation<class_Translation>`, :ref:`Shader<class_Shader>`, :ref:`Script<class_Script>`, :ref:`AudioBusLayout<class_AudioBusLayout>`, :ref:`AnimationNode<class_AnimationNode>`, :ref:`World<class_World>`, :ref:`AudioEffect<class_AudioEffect>`, :ref:`VisualScriptNode<class_VisualScriptNode>`, :ref:`AnimationNodeStateMachineTransition<class_AnimationNodeStateMachineTransition>`, :ref:`World2D<class_World2D>`, :ref:`GIProbeData<class_GIProbeData>`, :ref:`Font<class_Font>`, :ref:`SpriteFrames<class_SpriteFrames>`, :ref:`MeshLibrary<class_MeshLibrary>`, :ref:`Curve3D<class_Curve3D>`, :ref:`NavigationPolygon<class_NavigationPolygon>`, :ref:`EditorSettings<class_EditorSettings>`, :ref:`Gradient<class_Gradient>`, :ref:`OccluderPolygon2D<class_OccluderPolygon2D>`, :ref:`MultiMesh<class_MultiMesh>`, :ref:`PackedDataContainer<class_PackedDataContainer>`, :ref:`NavigationMesh<class_NavigationMesh>`
|
**Inherited By:** :ref:`Animation<class_Animation>`, :ref:`AnimationNode<class_AnimationNode>`, :ref:`AnimationNodeStateMachinePlayback<class_AnimationNodeStateMachinePlayback>`, :ref:`AnimationNodeStateMachineTransition<class_AnimationNodeStateMachineTransition>`, :ref:`AudioBusLayout<class_AudioBusLayout>`, :ref:`AudioEffect<class_AudioEffect>`, :ref:`AudioStream<class_AudioStream>`, :ref:`BakedLightmapData<class_BakedLightmapData>`, :ref:`BitMap<class_BitMap>`, :ref:`ButtonGroup<class_ButtonGroup>`, :ref:`CubeMap<class_CubeMap>`, :ref:`Curve<class_Curve>`, :ref:`Curve2D<class_Curve2D>`, :ref:`Curve3D<class_Curve3D>`, :ref:`DynamicFontData<class_DynamicFontData>`, :ref:`EditorSettings<class_EditorSettings>`, :ref:`Environment<class_Environment>`, :ref:`Font<class_Font>`, :ref:`GDNativeLibrary<class_GDNativeLibrary>`, :ref:`GIProbeData<class_GIProbeData>`, :ref:`Gradient<class_Gradient>`, :ref:`Image<class_Image>`, :ref:`InputEvent<class_InputEvent>`, :ref:`Material<class_Material>`, :ref:`Mesh<class_Mesh>`, :ref:`MeshLibrary<class_MeshLibrary>`, :ref:`MultiMesh<class_MultiMesh>`, :ref:`NavigationMesh<class_NavigationMesh>`, :ref:`NavigationPolygon<class_NavigationPolygon>`, :ref:`OccluderPolygon2D<class_OccluderPolygon2D>`, :ref:`OpenSimplexNoise<class_OpenSimplexNoise>`, :ref:`PackedDataContainer<class_PackedDataContainer>`, :ref:`PackedScene<class_PackedScene>`, :ref:`PhysicsMaterial<class_PhysicsMaterial>`, :ref:`PolygonPathFinder<class_PolygonPathFinder>`, :ref:`Script<class_Script>`, :ref:`Shader<class_Shader>`, :ref:`Shape<class_Shape>`, :ref:`Shape2D<class_Shape2D>`, :ref:`ShortCut<class_ShortCut>`, :ref:`Sky<class_Sky>`, :ref:`SpriteFrames<class_SpriteFrames>`, :ref:`StyleBox<class_StyleBox>`, :ref:`TextFile<class_TextFile>`, :ref:`Texture<class_Texture>`, :ref:`TextureLayered<class_TextureLayered>`, :ref:`Theme<class_Theme>`, :ref:`TileSet<class_TileSet>`, :ref:`Translation<class_Translation>`, :ref:`VideoStream<class_VideoStream>`, :ref:`VisualScriptNode<class_VisualScriptNode>`, :ref:`VisualShaderNode<class_VisualShaderNode>`, :ref:`World<class_World>`, :ref:`World2D<class_World2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ResourceFormatLoader
|
|||||||
|
|
||||||
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`ResourceFormatLoaderNativeScript<class_ResourceFormatLoaderNativeScript>`, :ref:`ResourceFormatLoaderText<class_ResourceFormatLoaderText>`, :ref:`ResourceFormatLoaderGDScript<class_ResourceFormatLoaderGDScript>`, :ref:`ResourceFormatPVR<class_ResourceFormatPVR>`, :ref:`GDNativeLibraryResourceLoader<class_GDNativeLibraryResourceLoader>`, :ref:`ResourceFormatLoaderWebm<class_ResourceFormatLoaderWebm>`, :ref:`ResourceFormatLoaderDynamicFont<class_ResourceFormatLoaderDynamicFont>`, :ref:`ResourceFormatLoaderStreamTexture<class_ResourceFormatLoaderStreamTexture>`, :ref:`ResourceFormatLoaderTheora<class_ResourceFormatLoaderTheora>`, :ref:`ResourceFormatLoaderTextureLayered<class_ResourceFormatLoaderTextureLayered>`, :ref:`ResourceFormatImporter<class_ResourceFormatImporter>`, :ref:`TranslationLoaderPO<class_TranslationLoaderPO>`, :ref:`ResourceFormatLoaderImage<class_ResourceFormatLoaderImage>`, :ref:`ResourceFormatLoaderBinary<class_ResourceFormatLoaderBinary>`, :ref:`ResourceFormatDDS<class_ResourceFormatDDS>`, :ref:`ResourceFormatLoaderBMFont<class_ResourceFormatLoaderBMFont>`, :ref:`ResourceFormatLoaderShader<class_ResourceFormatLoaderShader>`, :ref:`ResourceFormatPKM<class_ResourceFormatPKM>`
|
**Inherited By:** :ref:`GDNativeLibraryResourceLoader<class_GDNativeLibraryResourceLoader>`, :ref:`ResourceFormatDDS<class_ResourceFormatDDS>`, :ref:`ResourceFormatImporter<class_ResourceFormatImporter>`, :ref:`ResourceFormatLoaderBMFont<class_ResourceFormatLoaderBMFont>`, :ref:`ResourceFormatLoaderBinary<class_ResourceFormatLoaderBinary>`, :ref:`ResourceFormatLoaderDynamicFont<class_ResourceFormatLoaderDynamicFont>`, :ref:`ResourceFormatLoaderGDScript<class_ResourceFormatLoaderGDScript>`, :ref:`ResourceFormatLoaderImage<class_ResourceFormatLoaderImage>`, :ref:`ResourceFormatLoaderNativeScript<class_ResourceFormatLoaderNativeScript>`, :ref:`ResourceFormatLoaderShader<class_ResourceFormatLoaderShader>`, :ref:`ResourceFormatLoaderStreamTexture<class_ResourceFormatLoaderStreamTexture>`, :ref:`ResourceFormatLoaderText<class_ResourceFormatLoaderText>`, :ref:`ResourceFormatLoaderTextureLayered<class_ResourceFormatLoaderTextureLayered>`, :ref:`ResourceFormatLoaderTheora<class_ResourceFormatLoaderTheora>`, :ref:`ResourceFormatLoaderWebm<class_ResourceFormatLoaderWebm>`, :ref:`ResourceFormatPKM<class_ResourceFormatPKM>`, :ref:`ResourceFormatPVR<class_ResourceFormatPVR>`, :ref:`TranslationLoaderPO<class_TranslationLoaderPO>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ ResourceFormatSaver
|
|||||||
|
|
||||||
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`ResourceFormatSaverBinary<class_ResourceFormatSaverBinary>`, :ref:`ResourceSaverPNG<class_ResourceSaverPNG>`, :ref:`ResourceFormatSaverGDScript<class_ResourceFormatSaverGDScript>`, :ref:`ResourceFormatSaverShader<class_ResourceFormatSaverShader>`, :ref:`ResourceFormatSaverText<class_ResourceFormatSaverText>`, :ref:`GDNativeLibraryResourceSaver<class_GDNativeLibraryResourceSaver>`, :ref:`ResourceFormatSaverNativeScript<class_ResourceFormatSaverNativeScript>`
|
**Inherited By:** :ref:`GDNativeLibraryResourceSaver<class_GDNativeLibraryResourceSaver>`, :ref:`ResourceFormatSaverBinary<class_ResourceFormatSaverBinary>`, :ref:`ResourceFormatSaverGDScript<class_ResourceFormatSaverGDScript>`, :ref:`ResourceFormatSaverNativeScript<class_ResourceFormatSaverNativeScript>`, :ref:`ResourceFormatSaverShader<class_ResourceFormatSaverShader>`, :ref:`ResourceFormatSaverText<class_ResourceFormatSaverText>`, :ref:`ResourceSaverPNG<class_ResourceSaverPNG>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -161,16 +161,6 @@ Triggers when the mouse enters a meta tag.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_RichTextLabel_ListType:
|
|
||||||
|
|
||||||
enum **ListType**:
|
|
||||||
|
|
||||||
- **LIST_NUMBERS** = **0**
|
|
||||||
|
|
||||||
- **LIST_LETTERS** = **1**
|
|
||||||
|
|
||||||
- **LIST_DOTS** = **2**
|
|
||||||
|
|
||||||
.. _enum_RichTextLabel_Align:
|
.. _enum_RichTextLabel_Align:
|
||||||
|
|
||||||
enum **Align**:
|
enum **Align**:
|
||||||
@@ -183,6 +173,16 @@ enum **Align**:
|
|||||||
|
|
||||||
- **ALIGN_FILL** = **3**
|
- **ALIGN_FILL** = **3**
|
||||||
|
|
||||||
|
.. _enum_RichTextLabel_ListType:
|
||||||
|
|
||||||
|
enum **ListType**:
|
||||||
|
|
||||||
|
- **LIST_NUMBERS** = **0**
|
||||||
|
|
||||||
|
- **LIST_LETTERS** = **1**
|
||||||
|
|
||||||
|
- **LIST_DOTS** = **2**
|
||||||
|
|
||||||
.. _enum_RichTextLabel_ItemType:
|
.. _enum_RichTextLabel_ItemType:
|
||||||
|
|
||||||
enum **ItemType**:
|
enum **ItemType**:
|
||||||
|
|||||||
@@ -122,16 +122,6 @@ Emitted when :ref:`sleeping<class_RigidBody2D_sleeping>` changes.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_RigidBody2D_CCDMode:
|
|
||||||
|
|
||||||
enum **CCDMode**:
|
|
||||||
|
|
||||||
- **CCD_MODE_DISABLED** = **0** --- Continuous collision detection disabled. This is the fastest way to detect body collisions, but can miss small, fast-moving objects.
|
|
||||||
|
|
||||||
- **CCD_MODE_CAST_RAY** = **1** --- Continuous collision detection enabled using raycasting. This is faster than shapecasting but less precise.
|
|
||||||
|
|
||||||
- **CCD_MODE_CAST_SHAPE** = **2** --- Continuous collision detection enabled using shapecasting. This is the slowest CCD method and the most precise.
|
|
||||||
|
|
||||||
.. _enum_RigidBody2D_Mode:
|
.. _enum_RigidBody2D_Mode:
|
||||||
|
|
||||||
enum **Mode**:
|
enum **Mode**:
|
||||||
@@ -144,6 +134,16 @@ enum **Mode**:
|
|||||||
|
|
||||||
- **MODE_KINEMATIC** = **3** --- Kinematic mode. The body behaves like a :ref:`KinematicBody2D<class_KinematicBody2D>`, and must be moved by code.
|
- **MODE_KINEMATIC** = **3** --- Kinematic mode. The body behaves like a :ref:`KinematicBody2D<class_KinematicBody2D>`, and must be moved by code.
|
||||||
|
|
||||||
|
.. _enum_RigidBody2D_CCDMode:
|
||||||
|
|
||||||
|
enum **CCDMode**:
|
||||||
|
|
||||||
|
- **CCD_MODE_DISABLED** = **0** --- Continuous collision detection disabled. This is the fastest way to detect body collisions, but can miss small, fast-moving objects.
|
||||||
|
|
||||||
|
- **CCD_MODE_CAST_RAY** = **1** --- Continuous collision detection enabled using raycasting. This is faster than shapecasting but less precise.
|
||||||
|
|
||||||
|
- **CCD_MODE_CAST_SHAPE** = **2** --- Continuous collision detection enabled using shapecasting. This is the slowest CCD method and the most precise.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Script
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VisualScript<class_VisualScript>`, :ref:`GDScript<class_GDScript>`, :ref:`CSharpScript<class_CSharpScript>`, :ref:`NativeScript<class_NativeScript>`, :ref:`PluginScript<class_PluginScript>`
|
**Inherited By:** :ref:`CSharpScript<class_CSharpScript>`, :ref:`GDScript<class_GDScript>`, :ref:`NativeScript<class_NativeScript>`, :ref:`PluginScript<class_PluginScript>`, :ref:`VisualScript<class_VisualScript>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Shape
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`CylinderShape<class_CylinderShape>`, :ref:`RayShape<class_RayShape>`, :ref:`SphereShape<class_SphereShape>`, :ref:`CapsuleShape<class_CapsuleShape>`, :ref:`BoxShape<class_BoxShape>`, :ref:`ConvexPolygonShape<class_ConvexPolygonShape>`, :ref:`PlaneShape<class_PlaneShape>`, :ref:`ConcavePolygonShape<class_ConcavePolygonShape>`
|
**Inherited By:** :ref:`BoxShape<class_BoxShape>`, :ref:`CapsuleShape<class_CapsuleShape>`, :ref:`ConcavePolygonShape<class_ConcavePolygonShape>`, :ref:`ConvexPolygonShape<class_ConvexPolygonShape>`, :ref:`CylinderShape<class_CylinderShape>`, :ref:`PlaneShape<class_PlaneShape>`, :ref:`RayShape<class_RayShape>`, :ref:`SphereShape<class_SphereShape>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Shape2D
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`RayShape2D<class_RayShape2D>`, :ref:`LineShape2D<class_LineShape2D>`, :ref:`CircleShape2D<class_CircleShape2D>`, :ref:`ConcavePolygonShape2D<class_ConcavePolygonShape2D>`, :ref:`ConvexPolygonShape2D<class_ConvexPolygonShape2D>`, :ref:`CapsuleShape2D<class_CapsuleShape2D>`, :ref:`RectangleShape2D<class_RectangleShape2D>`, :ref:`SegmentShape2D<class_SegmentShape2D>`
|
**Inherited By:** :ref:`CapsuleShape2D<class_CapsuleShape2D>`, :ref:`CircleShape2D<class_CircleShape2D>`, :ref:`ConcavePolygonShape2D<class_ConcavePolygonShape2D>`, :ref:`ConvexPolygonShape2D<class_ConvexPolygonShape2D>`, :ref:`LineShape2D<class_LineShape2D>`, :ref:`RayShape2D<class_RayShape2D>`, :ref:`RectangleShape2D<class_RectangleShape2D>`, :ref:`SegmentShape2D<class_SegmentShape2D>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Spatial
|
|||||||
|
|
||||||
**Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`Joint<class_Joint>`, :ref:`RayCast<class_RayCast>`, :ref:`Camera<class_Camera>`, :ref:`BoneAttachment<class_BoneAttachment>`, :ref:`CollisionShape<class_CollisionShape>`, :ref:`AudioStreamPlayer3D<class_AudioStreamPlayer3D>`, :ref:`Path<class_Path>`, :ref:`ARVRController<class_ARVRController>`, :ref:`VisualInstance<class_VisualInstance>`, :ref:`VehicleWheel<class_VehicleWheel>`, :ref:`Position3D<class_Position3D>`, :ref:`ProximityGroup<class_ProximityGroup>`, :ref:`SpringArm<class_SpringArm>`, :ref:`ARVRAnchor<class_ARVRAnchor>`, :ref:`RemoteTransform<class_RemoteTransform>`, :ref:`CollisionObject<class_CollisionObject>`, :ref:`OrientedPathFollow<class_OrientedPathFollow>`, :ref:`PathFollow<class_PathFollow>`, :ref:`NavigationMeshInstance<class_NavigationMeshInstance>`, :ref:`Listener<class_Listener>`, :ref:`VisibilityNotifier<class_VisibilityNotifier>`, :ref:`Navigation<class_Navigation>`, :ref:`CollisionPolygon<class_CollisionPolygon>`, :ref:`GridMap<class_GridMap>`, :ref:`Skeleton<class_Skeleton>`, :ref:`ARVROrigin<class_ARVROrigin>`
|
**Inherited By:** :ref:`ARVRAnchor<class_ARVRAnchor>`, :ref:`ARVRController<class_ARVRController>`, :ref:`ARVROrigin<class_ARVROrigin>`, :ref:`AudioStreamPlayer3D<class_AudioStreamPlayer3D>`, :ref:`BoneAttachment<class_BoneAttachment>`, :ref:`Camera<class_Camera>`, :ref:`CollisionObject<class_CollisionObject>`, :ref:`CollisionPolygon<class_CollisionPolygon>`, :ref:`CollisionShape<class_CollisionShape>`, :ref:`GridMap<class_GridMap>`, :ref:`Joint<class_Joint>`, :ref:`Listener<class_Listener>`, :ref:`Navigation<class_Navigation>`, :ref:`NavigationMeshInstance<class_NavigationMeshInstance>`, :ref:`OrientedPathFollow<class_OrientedPathFollow>`, :ref:`Path<class_Path>`, :ref:`PathFollow<class_PathFollow>`, :ref:`Position3D<class_Position3D>`, :ref:`ProximityGroup<class_ProximityGroup>`, :ref:`RayCast<class_RayCast>`, :ref:`RemoteTransform<class_RemoteTransform>`, :ref:`Skeleton<class_Skeleton>`, :ref:`SpringArm<class_SpringArm>`, :ref:`VehicleWheel<class_VehicleWheel>`, :ref:`VisibilityNotifier<class_VisibilityNotifier>`, :ref:`VisualInstance<class_VisualInstance>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -224,14 +224,6 @@ Properties
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_DetailUV:
|
|
||||||
|
|
||||||
enum **DetailUV**:
|
|
||||||
|
|
||||||
- **DETAIL_UV_1** = **0**
|
|
||||||
|
|
||||||
- **DETAIL_UV_2** = **1**
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_TextureParam:
|
.. _enum_SpatialMaterial_TextureParam:
|
||||||
|
|
||||||
enum **TextureParam**:
|
enum **TextureParam**:
|
||||||
@@ -270,53 +262,13 @@ enum **TextureParam**:
|
|||||||
|
|
||||||
- **TEXTURE_MAX** = **16**
|
- **TEXTURE_MAX** = **16**
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_DistanceFadeMode:
|
.. _enum_SpatialMaterial_DetailUV:
|
||||||
|
|
||||||
enum **DistanceFadeMode**:
|
enum **DetailUV**:
|
||||||
|
|
||||||
- **DISTANCE_FADE_DISABLED** = **0**
|
- **DETAIL_UV_1** = **0**
|
||||||
|
|
||||||
- **DISTANCE_FADE_PIXEL_ALPHA** = **1**
|
- **DETAIL_UV_2** = **1**
|
||||||
|
|
||||||
- **DISTANCE_FADE_PIXEL_DITHER** = **2**
|
|
||||||
|
|
||||||
- **DISTANCE_FADE_OBJECT_DITHER** = **3**
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_DepthDrawMode:
|
|
||||||
|
|
||||||
enum **DepthDrawMode**:
|
|
||||||
|
|
||||||
- **DEPTH_DRAW_OPAQUE_ONLY** = **0** --- Default depth draw mode. Depth is drawn only for opaque objects.
|
|
||||||
|
|
||||||
- **DEPTH_DRAW_ALWAYS** = **1** --- Depth draw is calculated for both opaque and transparent objects.
|
|
||||||
|
|
||||||
- **DEPTH_DRAW_DISABLED** = **2** --- No depth draw.
|
|
||||||
|
|
||||||
- **DEPTH_DRAW_ALPHA_OPAQUE_PREPASS** = **3** --- For transparent objects, an opaque pass is made first with the opaque parts, then transparency is drawn.
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_DiffuseMode:
|
|
||||||
|
|
||||||
enum **DiffuseMode**:
|
|
||||||
|
|
||||||
- **DIFFUSE_BURLEY** = **0** --- Default diffuse scattering algorithm.
|
|
||||||
|
|
||||||
- **DIFFUSE_LAMBERT** = **1** --- Diffuse scattering ignores roughness.
|
|
||||||
|
|
||||||
- **DIFFUSE_LAMBERT_WRAP** = **2** --- Extends Lambert to cover more than 90 degrees when roughness increases.
|
|
||||||
|
|
||||||
- **DIFFUSE_OREN_NAYAR** = **3** --- Attempts to use roughness to emulate microsurfacing.
|
|
||||||
|
|
||||||
- **DIFFUSE_TOON** = **4** --- Uses a hard cut for lighting, with smoothing affected by roughness.
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_CullMode:
|
|
||||||
|
|
||||||
enum **CullMode**:
|
|
||||||
|
|
||||||
- **CULL_BACK** = **0** --- Default cull mode. The back of the object is culled when not visible.
|
|
||||||
|
|
||||||
- **CULL_FRONT** = **1** --- The front of the object is culled when not visible.
|
|
||||||
|
|
||||||
- **CULL_DISABLED** = **2** --- No culling is performed.
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_Feature:
|
.. _enum_SpatialMaterial_Feature:
|
||||||
|
|
||||||
@@ -348,6 +300,40 @@ enum **Feature**:
|
|||||||
|
|
||||||
- **FEATURE_MAX** = **12**
|
- **FEATURE_MAX** = **12**
|
||||||
|
|
||||||
|
.. _enum_SpatialMaterial_BlendMode:
|
||||||
|
|
||||||
|
enum **BlendMode**:
|
||||||
|
|
||||||
|
- **BLEND_MODE_MIX** = **0** --- Default blend mode.
|
||||||
|
|
||||||
|
- **BLEND_MODE_ADD** = **1**
|
||||||
|
|
||||||
|
- **BLEND_MODE_SUB** = **2**
|
||||||
|
|
||||||
|
- **BLEND_MODE_MUL** = **3**
|
||||||
|
|
||||||
|
.. _enum_SpatialMaterial_DepthDrawMode:
|
||||||
|
|
||||||
|
enum **DepthDrawMode**:
|
||||||
|
|
||||||
|
- **DEPTH_DRAW_OPAQUE_ONLY** = **0** --- Default depth draw mode. Depth is drawn only for opaque objects.
|
||||||
|
|
||||||
|
- **DEPTH_DRAW_ALWAYS** = **1** --- Depth draw is calculated for both opaque and transparent objects.
|
||||||
|
|
||||||
|
- **DEPTH_DRAW_DISABLED** = **2** --- No depth draw.
|
||||||
|
|
||||||
|
- **DEPTH_DRAW_ALPHA_OPAQUE_PREPASS** = **3** --- For transparent objects, an opaque pass is made first with the opaque parts, then transparency is drawn.
|
||||||
|
|
||||||
|
.. _enum_SpatialMaterial_CullMode:
|
||||||
|
|
||||||
|
enum **CullMode**:
|
||||||
|
|
||||||
|
- **CULL_BACK** = **0** --- Default cull mode. The back of the object is culled when not visible.
|
||||||
|
|
||||||
|
- **CULL_FRONT** = **1** --- The front of the object is culled when not visible.
|
||||||
|
|
||||||
|
- **CULL_DISABLED** = **2** --- No culling is performed.
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_Flags:
|
.. _enum_SpatialMaterial_Flags:
|
||||||
|
|
||||||
enum **Flags**:
|
enum **Flags**:
|
||||||
@@ -390,17 +376,19 @@ enum **Flags**:
|
|||||||
|
|
||||||
- **FLAG_MAX** = **18**
|
- **FLAG_MAX** = **18**
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_BlendMode:
|
.. _enum_SpatialMaterial_DiffuseMode:
|
||||||
|
|
||||||
enum **BlendMode**:
|
enum **DiffuseMode**:
|
||||||
|
|
||||||
- **BLEND_MODE_MIX** = **0** --- Default blend mode.
|
- **DIFFUSE_BURLEY** = **0** --- Default diffuse scattering algorithm.
|
||||||
|
|
||||||
- **BLEND_MODE_ADD** = **1**
|
- **DIFFUSE_LAMBERT** = **1** --- Diffuse scattering ignores roughness.
|
||||||
|
|
||||||
- **BLEND_MODE_SUB** = **2**
|
- **DIFFUSE_LAMBERT_WRAP** = **2** --- Extends Lambert to cover more than 90 degrees when roughness increases.
|
||||||
|
|
||||||
- **BLEND_MODE_MUL** = **3**
|
- **DIFFUSE_OREN_NAYAR** = **3** --- Attempts to use roughness to emulate microsurfacing.
|
||||||
|
|
||||||
|
- **DIFFUSE_TOON** = **4** --- Uses a hard cut for lighting, with smoothing affected by roughness.
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_SpecularMode:
|
.. _enum_SpatialMaterial_SpecularMode:
|
||||||
|
|
||||||
@@ -416,6 +404,18 @@ enum **SpecularMode**:
|
|||||||
|
|
||||||
- **SPECULAR_DISABLED** = **4** --- No specular blob.
|
- **SPECULAR_DISABLED** = **4** --- No specular blob.
|
||||||
|
|
||||||
|
.. _enum_SpatialMaterial_BillboardMode:
|
||||||
|
|
||||||
|
enum **BillboardMode**:
|
||||||
|
|
||||||
|
- **BILLBOARD_DISABLED** = **0** --- Default value.
|
||||||
|
|
||||||
|
- **BILLBOARD_ENABLED** = **1** --- The object's z-axis will always face the camera.
|
||||||
|
|
||||||
|
- **BILLBOARD_FIXED_Y** = **2** --- The object's x-axis will always face the camera.
|
||||||
|
|
||||||
|
- **BILLBOARD_PARTICLES** = **3** --- Used for particle systems. Enables particle animation options.
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_TextureChannel:
|
.. _enum_SpatialMaterial_TextureChannel:
|
||||||
|
|
||||||
enum **TextureChannel**:
|
enum **TextureChannel**:
|
||||||
@@ -430,18 +430,6 @@ enum **TextureChannel**:
|
|||||||
|
|
||||||
- **TEXTURE_CHANNEL_GRAYSCALE** = **4**
|
- **TEXTURE_CHANNEL_GRAYSCALE** = **4**
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_BillboardMode:
|
|
||||||
|
|
||||||
enum **BillboardMode**:
|
|
||||||
|
|
||||||
- **BILLBOARD_DISABLED** = **0** --- Default value.
|
|
||||||
|
|
||||||
- **BILLBOARD_ENABLED** = **1** --- The object's z-axis will always face the camera.
|
|
||||||
|
|
||||||
- **BILLBOARD_FIXED_Y** = **2** --- The object's x-axis will always face the camera.
|
|
||||||
|
|
||||||
- **BILLBOARD_PARTICLES** = **3** --- Used for particle systems. Enables particle animation options.
|
|
||||||
|
|
||||||
.. _enum_SpatialMaterial_EmissionOperator:
|
.. _enum_SpatialMaterial_EmissionOperator:
|
||||||
|
|
||||||
enum **EmissionOperator**:
|
enum **EmissionOperator**:
|
||||||
@@ -450,6 +438,18 @@ enum **EmissionOperator**:
|
|||||||
|
|
||||||
- **EMISSION_OP_MULTIPLY** = **1**
|
- **EMISSION_OP_MULTIPLY** = **1**
|
||||||
|
|
||||||
|
.. _enum_SpatialMaterial_DistanceFadeMode:
|
||||||
|
|
||||||
|
enum **DistanceFadeMode**:
|
||||||
|
|
||||||
|
- **DISTANCE_FADE_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **DISTANCE_FADE_PIXEL_ALPHA** = **1**
|
||||||
|
|
||||||
|
- **DISTANCE_FADE_PIXEL_DITHER** = **2**
|
||||||
|
|
||||||
|
- **DISTANCE_FADE_OBJECT_DITHER** = **3**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -59,16 +59,6 @@ Methods
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_SpriteBase3D_AlphaCutMode:
|
|
||||||
|
|
||||||
enum **AlphaCutMode**:
|
|
||||||
|
|
||||||
- **ALPHA_CUT_DISABLED** = **0**
|
|
||||||
|
|
||||||
- **ALPHA_CUT_DISCARD** = **1**
|
|
||||||
|
|
||||||
- **ALPHA_CUT_OPAQUE_PREPASS** = **2**
|
|
||||||
|
|
||||||
.. _enum_SpriteBase3D_DrawFlags:
|
.. _enum_SpriteBase3D_DrawFlags:
|
||||||
|
|
||||||
enum **DrawFlags**:
|
enum **DrawFlags**:
|
||||||
@@ -81,6 +71,16 @@ enum **DrawFlags**:
|
|||||||
|
|
||||||
- **FLAG_MAX** = **3** --- Used internally to mark the end of the Flags section.
|
- **FLAG_MAX** = **3** --- Used internally to mark the end of the Flags section.
|
||||||
|
|
||||||
|
.. _enum_SpriteBase3D_AlphaCutMode:
|
||||||
|
|
||||||
|
enum **AlphaCutMode**:
|
||||||
|
|
||||||
|
- **ALPHA_CUT_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **ALPHA_CUT_DISCARD** = **1**
|
||||||
|
|
||||||
|
- **ALPHA_CUT_OPAQUE_PREPASS** = **2**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ StreamPeer
|
|||||||
|
|
||||||
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`StreamPeerBuffer<class_StreamPeerBuffer>`, :ref:`StreamPeerSSL<class_StreamPeerSSL>`, :ref:`StreamPeerTCP<class_StreamPeerTCP>`, :ref:`StreamPeerGDNative<class_StreamPeerGDNative>`
|
**Inherited By:** :ref:`StreamPeerBuffer<class_StreamPeerBuffer>`, :ref:`StreamPeerGDNative<class_StreamPeerGDNative>`, :ref:`StreamPeerSSL<class_StreamPeerSSL>`, :ref:`StreamPeerTCP<class_StreamPeerTCP>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ StyleBox
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`StyleBoxLine<class_StyleBoxLine>`, :ref:`StyleBoxFlat<class_StyleBoxFlat>`, :ref:`StyleBoxTexture<class_StyleBoxTexture>`, :ref:`StyleBoxEmpty<class_StyleBoxEmpty>`
|
**Inherited By:** :ref:`StyleBoxEmpty<class_StyleBoxEmpty>`, :ref:`StyleBoxFlat<class_StyleBoxFlat>`, :ref:`StyleBoxLine<class_StyleBoxLine>`, :ref:`StyleBoxTexture<class_StyleBoxTexture>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -143,18 +143,6 @@ Signals
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Tabs_CloseButtonDisplayPolicy:
|
|
||||||
|
|
||||||
enum **CloseButtonDisplayPolicy**:
|
|
||||||
|
|
||||||
- **CLOSE_BUTTON_SHOW_NEVER** = **0**
|
|
||||||
|
|
||||||
- **CLOSE_BUTTON_SHOW_ACTIVE_ONLY** = **1**
|
|
||||||
|
|
||||||
- **CLOSE_BUTTON_SHOW_ALWAYS** = **2**
|
|
||||||
|
|
||||||
- **CLOSE_BUTTON_MAX** = **3**
|
|
||||||
|
|
||||||
.. _enum_Tabs_TabAlign:
|
.. _enum_Tabs_TabAlign:
|
||||||
|
|
||||||
enum **TabAlign**:
|
enum **TabAlign**:
|
||||||
@@ -167,6 +155,18 @@ enum **TabAlign**:
|
|||||||
|
|
||||||
- **ALIGN_MAX** = **3**
|
- **ALIGN_MAX** = **3**
|
||||||
|
|
||||||
|
.. _enum_Tabs_CloseButtonDisplayPolicy:
|
||||||
|
|
||||||
|
enum **CloseButtonDisplayPolicy**:
|
||||||
|
|
||||||
|
- **CLOSE_BUTTON_SHOW_NEVER** = **0**
|
||||||
|
|
||||||
|
- **CLOSE_BUTTON_SHOW_ACTIVE_ONLY** = **1**
|
||||||
|
|
||||||
|
- **CLOSE_BUTTON_SHOW_ALWAYS** = **2**
|
||||||
|
|
||||||
|
- **CLOSE_BUTTON_MAX** = **3**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -247,6 +247,16 @@ Emitted when the text changes.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_TextEdit_SearchFlags:
|
||||||
|
|
||||||
|
enum **SearchFlags**:
|
||||||
|
|
||||||
|
- **SEARCH_MATCH_CASE** = **1** --- Match case when searching.
|
||||||
|
|
||||||
|
- **SEARCH_WHOLE_WORDS** = **2** --- Match whole words when searching.
|
||||||
|
|
||||||
|
- **SEARCH_BACKWARDS** = **4** --- Search from end to beginning.
|
||||||
|
|
||||||
.. _enum_TextEdit_MenuItems:
|
.. _enum_TextEdit_MenuItems:
|
||||||
|
|
||||||
enum **MenuItems**:
|
enum **MenuItems**:
|
||||||
@@ -267,16 +277,6 @@ enum **MenuItems**:
|
|||||||
|
|
||||||
- **MENU_MAX** = **7**
|
- **MENU_MAX** = **7**
|
||||||
|
|
||||||
.. _enum_TextEdit_SearchFlags:
|
|
||||||
|
|
||||||
enum **SearchFlags**:
|
|
||||||
|
|
||||||
- **SEARCH_MATCH_CASE** = **1** --- Match case when searching.
|
|
||||||
|
|
||||||
- **SEARCH_WHOLE_WORDS** = **2** --- Match whole words when searching.
|
|
||||||
|
|
||||||
- **SEARCH_BACKWARDS** = **4** --- Search from end to beginning.
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Texture
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`CurveTexture<class_CurveTexture>`, :ref:`NoiseTexture<class_NoiseTexture>`, :ref:`AtlasTexture<class_AtlasTexture>`, :ref:`ProxyTexture<class_ProxyTexture>`, :ref:`GradientTexture<class_GradientTexture>`, :ref:`ViewportTexture<class_ViewportTexture>`, :ref:`AnimatedTexture<class_AnimatedTexture>`, :ref:`StreamTexture<class_StreamTexture>`, :ref:`ImageTexture<class_ImageTexture>`, :ref:`LargeTexture<class_LargeTexture>`
|
**Inherited By:** :ref:`AnimatedTexture<class_AnimatedTexture>`, :ref:`AtlasTexture<class_AtlasTexture>`, :ref:`CurveTexture<class_CurveTexture>`, :ref:`GradientTexture<class_GradientTexture>`, :ref:`ImageTexture<class_ImageTexture>`, :ref:`LargeTexture<class_LargeTexture>`, :ref:`NoiseTexture<class_NoiseTexture>`, :ref:`ProxyTexture<class_ProxyTexture>`, :ref:`StreamTexture<class_StreamTexture>`, :ref:`ViewportTexture<class_ViewportTexture>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ TextureLayered
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`TextureArray<class_TextureArray>`, :ref:`Texture3D<class_Texture3D>`
|
**Inherited By:** :ref:`Texture3D<class_Texture3D>`, :ref:`TextureArray<class_TextureArray>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,16 @@ Emitted when a tilemap setting has changed.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. _enum_TileMap_Mode:
|
||||||
|
|
||||||
|
enum **Mode**:
|
||||||
|
|
||||||
|
- **MODE_SQUARE** = **0** --- Orthogonal orientation mode.
|
||||||
|
|
||||||
|
- **MODE_ISOMETRIC** = **1** --- Isometric orientation mode.
|
||||||
|
|
||||||
|
- **MODE_CUSTOM** = **2** --- Custom orientation mode.
|
||||||
|
|
||||||
.. _enum_TileMap_HalfOffset:
|
.. _enum_TileMap_HalfOffset:
|
||||||
|
|
||||||
enum **HalfOffset**:
|
enum **HalfOffset**:
|
||||||
@@ -132,16 +142,6 @@ enum **TileOrigin**:
|
|||||||
|
|
||||||
- **TILE_ORIGIN_BOTTOM_LEFT** = **2** --- Tile origin at its bottom-left corner.
|
- **TILE_ORIGIN_BOTTOM_LEFT** = **2** --- Tile origin at its bottom-left corner.
|
||||||
|
|
||||||
.. _enum_TileMap_Mode:
|
|
||||||
|
|
||||||
enum **Mode**:
|
|
||||||
|
|
||||||
- **MODE_SQUARE** = **0** --- Orthogonal orientation mode.
|
|
||||||
|
|
||||||
- **MODE_ISOMETRIC** = **1** --- Isometric orientation mode.
|
|
||||||
|
|
||||||
- **MODE_CUSTOM** = **2** --- Custom orientation mode.
|
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|||||||
@@ -134,16 +134,6 @@ enum **BitmaskMode**:
|
|||||||
|
|
||||||
- **BITMASK_3X3** = **2**
|
- **BITMASK_3X3** = **2**
|
||||||
|
|
||||||
.. _enum_TileSet_TileMode:
|
|
||||||
|
|
||||||
enum **TileMode**:
|
|
||||||
|
|
||||||
- **SINGLE_TILE** = **0**
|
|
||||||
|
|
||||||
- **AUTO_TILE** = **1**
|
|
||||||
|
|
||||||
- **ATLAS_TILE** = **2**
|
|
||||||
|
|
||||||
.. _enum_TileSet_AutotileBindings:
|
.. _enum_TileSet_AutotileBindings:
|
||||||
|
|
||||||
enum **AutotileBindings**:
|
enum **AutotileBindings**:
|
||||||
@@ -164,6 +154,16 @@ enum **AutotileBindings**:
|
|||||||
|
|
||||||
- **BIND_BOTTOMRIGHT** = **256**
|
- **BIND_BOTTOMRIGHT** = **256**
|
||||||
|
|
||||||
|
.. _enum_TileSet_TileMode:
|
||||||
|
|
||||||
|
enum **TileMode**:
|
||||||
|
|
||||||
|
- **SINGLE_TILE** = **0**
|
||||||
|
|
||||||
|
- **AUTO_TILE** = **1**
|
||||||
|
|
||||||
|
- **ATLAS_TILE** = **2**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -261,16 +261,6 @@ Emitted instead of ``item_selected`` when ``select_mode`` is ``SELECT_MULTI``.
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_Tree_DropModeFlags:
|
|
||||||
|
|
||||||
enum **DropModeFlags**:
|
|
||||||
|
|
||||||
- **DROP_MODE_DISABLED** = **0**
|
|
||||||
|
|
||||||
- **DROP_MODE_ON_ITEM** = **1**
|
|
||||||
|
|
||||||
- **DROP_MODE_INBETWEEN** = **2**
|
|
||||||
|
|
||||||
.. _enum_Tree_SelectMode:
|
.. _enum_Tree_SelectMode:
|
||||||
|
|
||||||
enum **SelectMode**:
|
enum **SelectMode**:
|
||||||
@@ -281,6 +271,16 @@ enum **SelectMode**:
|
|||||||
|
|
||||||
- **SELECT_MULTI** = **2** --- Allow selection of multiple items at the same time.
|
- **SELECT_MULTI** = **2** --- Allow selection of multiple items at the same time.
|
||||||
|
|
||||||
|
.. _enum_Tree_DropModeFlags:
|
||||||
|
|
||||||
|
enum **DropModeFlags**:
|
||||||
|
|
||||||
|
- **DROP_MODE_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **DROP_MODE_ON_ITEM** = **1**
|
||||||
|
|
||||||
|
- **DROP_MODE_INBETWEEN** = **2**
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -108,18 +108,6 @@ enum **TweenProcessMode**:
|
|||||||
|
|
||||||
- **TWEEN_PROCESS_IDLE** = **1** --- The tween updates with the ``_process`` callback.
|
- **TWEEN_PROCESS_IDLE** = **1** --- The tween updates with the ``_process`` callback.
|
||||||
|
|
||||||
.. _enum_Tween_EaseType:
|
|
||||||
|
|
||||||
enum **EaseType**:
|
|
||||||
|
|
||||||
- **EASE_IN** = **0** --- The interpolation starts slowly and speeds up towards the end.
|
|
||||||
|
|
||||||
- **EASE_OUT** = **1** --- The interpolation starts quickly and slows down towards the end.
|
|
||||||
|
|
||||||
- **EASE_IN_OUT** = **2** --- A combination of EASE_IN and EASE_OUT. The interpolation is slowest at both ends.
|
|
||||||
|
|
||||||
- **EASE_OUT_IN** = **3** --- A combination of EASE_IN and EASE_OUT. The interpolation is fastest at both ends.
|
|
||||||
|
|
||||||
.. _enum_Tween_TransitionType:
|
.. _enum_Tween_TransitionType:
|
||||||
|
|
||||||
enum **TransitionType**:
|
enum **TransitionType**:
|
||||||
@@ -146,6 +134,18 @@ enum **TransitionType**:
|
|||||||
|
|
||||||
- **TRANS_BACK** = **10** --- The animation is interpolated backing out at ends.
|
- **TRANS_BACK** = **10** --- The animation is interpolated backing out at ends.
|
||||||
|
|
||||||
|
.. _enum_Tween_EaseType:
|
||||||
|
|
||||||
|
enum **EaseType**:
|
||||||
|
|
||||||
|
- **EASE_IN** = **0** --- The interpolation starts slowly and speeds up towards the end.
|
||||||
|
|
||||||
|
- **EASE_OUT** = **1** --- The interpolation starts quickly and slows down towards the end.
|
||||||
|
|
||||||
|
- **EASE_IN_OUT** = **2** --- A combination of EASE_IN and EASE_OUT. The interpolation is slowest at both ends.
|
||||||
|
|
||||||
|
- **EASE_OUT_IN** = **3** --- A combination of EASE_IN and EASE_OUT. The interpolation is fastest at both ends.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ VideoStream
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VideoStreamWebm<class_VideoStreamWebm>`, :ref:`VideoStreamTheora<class_VideoStreamTheora>`
|
**Inherited By:** :ref:`VideoStreamTheora<class_VideoStreamTheora>`, :ref:`VideoStreamWebm<class_VideoStreamWebm>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -156,72 +156,6 @@ enum **UpdateMode**:
|
|||||||
|
|
||||||
- **UPDATE_ALWAYS** = **3** --- Always update the render target.
|
- **UPDATE_ALWAYS** = **3** --- Always update the render target.
|
||||||
|
|
||||||
.. _enum_Viewport_RenderInfo:
|
|
||||||
|
|
||||||
enum **RenderInfo**:
|
|
||||||
|
|
||||||
- **RENDER_INFO_OBJECTS_IN_FRAME** = **0** --- Amount of objects in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_VERTICES_IN_FRAME** = **1** --- Amount of vertices in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_MATERIAL_CHANGES_IN_FRAME** = **2** --- Amount of material changes in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_SHADER_CHANGES_IN_FRAME** = **3** --- Amount of shader changes in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_SURFACE_CHANGES_IN_FRAME** = **4** --- Amount of surface changes in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_DRAW_CALLS_IN_FRAME** = **5** --- Amount of draw calls in frame.
|
|
||||||
|
|
||||||
- **RENDER_INFO_MAX** = **6** --- Enum limiter. Do not use it directly.
|
|
||||||
|
|
||||||
.. _enum_Viewport_MSAA:
|
|
||||||
|
|
||||||
enum **MSAA**:
|
|
||||||
|
|
||||||
- **MSAA_DISABLED** = **0** --- Multisample anti-aliasing mode disabled. This is the default value.
|
|
||||||
|
|
||||||
- **MSAA_2X** = **1**
|
|
||||||
|
|
||||||
- **MSAA_4X** = **2**
|
|
||||||
|
|
||||||
- **MSAA_8X** = **3**
|
|
||||||
|
|
||||||
- **MSAA_16X** = **4**
|
|
||||||
|
|
||||||
.. _enum_Viewport_ClearMode:
|
|
||||||
|
|
||||||
enum **ClearMode**:
|
|
||||||
|
|
||||||
- **CLEAR_MODE_ALWAYS** = **0** --- Always clear the render target before drawing.
|
|
||||||
|
|
||||||
- **CLEAR_MODE_NEVER** = **1** --- Never clear the render target.
|
|
||||||
|
|
||||||
- **CLEAR_MODE_ONLY_NEXT_FRAME** = **2** --- Clear the render target next frame, then switch to ``CLEAR_MODE_NEVER``.
|
|
||||||
|
|
||||||
.. _enum_Viewport_Usage:
|
|
||||||
|
|
||||||
enum **Usage**:
|
|
||||||
|
|
||||||
- **USAGE_2D** = **0**
|
|
||||||
|
|
||||||
- **USAGE_2D_NO_SAMPLING** = **1**
|
|
||||||
|
|
||||||
- **USAGE_3D** = **2**
|
|
||||||
|
|
||||||
- **USAGE_3D_NO_EFFECTS** = **3**
|
|
||||||
|
|
||||||
.. _enum_Viewport_DebugDraw:
|
|
||||||
|
|
||||||
enum **DebugDraw**:
|
|
||||||
|
|
||||||
- **DEBUG_DRAW_DISABLED** = **0** --- Objects are displayed normally.
|
|
||||||
|
|
||||||
- **DEBUG_DRAW_UNSHADED** = **1** --- Objects are displayed without light information.
|
|
||||||
|
|
||||||
- **DEBUG_DRAW_OVERDRAW** = **2** --- Objected are displayed semi-transparent with additive blending so you can see where they intersect.
|
|
||||||
|
|
||||||
- **DEBUG_DRAW_WIREFRAME** = **3** --- Objects are displayed in wireframe style.
|
|
||||||
|
|
||||||
.. _enum_Viewport_ShadowAtlasQuadrantSubdiv:
|
.. _enum_Viewport_ShadowAtlasQuadrantSubdiv:
|
||||||
|
|
||||||
enum **ShadowAtlasQuadrantSubdiv**:
|
enum **ShadowAtlasQuadrantSubdiv**:
|
||||||
@@ -242,6 +176,72 @@ enum **ShadowAtlasQuadrantSubdiv**:
|
|||||||
|
|
||||||
- **SHADOW_ATLAS_QUADRANT_SUBDIV_MAX** = **7** --- Enum limiter. Do not use it directly.
|
- **SHADOW_ATLAS_QUADRANT_SUBDIV_MAX** = **7** --- Enum limiter. Do not use it directly.
|
||||||
|
|
||||||
|
.. _enum_Viewport_RenderInfo:
|
||||||
|
|
||||||
|
enum **RenderInfo**:
|
||||||
|
|
||||||
|
- **RENDER_INFO_OBJECTS_IN_FRAME** = **0** --- Amount of objects in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_VERTICES_IN_FRAME** = **1** --- Amount of vertices in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_MATERIAL_CHANGES_IN_FRAME** = **2** --- Amount of material changes in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_SHADER_CHANGES_IN_FRAME** = **3** --- Amount of shader changes in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_SURFACE_CHANGES_IN_FRAME** = **4** --- Amount of surface changes in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_DRAW_CALLS_IN_FRAME** = **5** --- Amount of draw calls in frame.
|
||||||
|
|
||||||
|
- **RENDER_INFO_MAX** = **6** --- Enum limiter. Do not use it directly.
|
||||||
|
|
||||||
|
.. _enum_Viewport_DebugDraw:
|
||||||
|
|
||||||
|
enum **DebugDraw**:
|
||||||
|
|
||||||
|
- **DEBUG_DRAW_DISABLED** = **0** --- Objects are displayed normally.
|
||||||
|
|
||||||
|
- **DEBUG_DRAW_UNSHADED** = **1** --- Objects are displayed without light information.
|
||||||
|
|
||||||
|
- **DEBUG_DRAW_OVERDRAW** = **2** --- Objected are displayed semi-transparent with additive blending so you can see where they intersect.
|
||||||
|
|
||||||
|
- **DEBUG_DRAW_WIREFRAME** = **3** --- Objects are displayed in wireframe style.
|
||||||
|
|
||||||
|
.. _enum_Viewport_MSAA:
|
||||||
|
|
||||||
|
enum **MSAA**:
|
||||||
|
|
||||||
|
- **MSAA_DISABLED** = **0** --- Multisample anti-aliasing mode disabled. This is the default value.
|
||||||
|
|
||||||
|
- **MSAA_2X** = **1**
|
||||||
|
|
||||||
|
- **MSAA_4X** = **2**
|
||||||
|
|
||||||
|
- **MSAA_8X** = **3**
|
||||||
|
|
||||||
|
- **MSAA_16X** = **4**
|
||||||
|
|
||||||
|
.. _enum_Viewport_Usage:
|
||||||
|
|
||||||
|
enum **Usage**:
|
||||||
|
|
||||||
|
- **USAGE_2D** = **0**
|
||||||
|
|
||||||
|
- **USAGE_2D_NO_SAMPLING** = **1**
|
||||||
|
|
||||||
|
- **USAGE_3D** = **2**
|
||||||
|
|
||||||
|
- **USAGE_3D_NO_EFFECTS** = **3**
|
||||||
|
|
||||||
|
.. _enum_Viewport_ClearMode:
|
||||||
|
|
||||||
|
enum **ClearMode**:
|
||||||
|
|
||||||
|
- **CLEAR_MODE_ALWAYS** = **0** --- Always clear the render target before drawing.
|
||||||
|
|
||||||
|
- **CLEAR_MODE_NEVER** = **1** --- Never clear the render target.
|
||||||
|
|
||||||
|
- **CLEAR_MODE_ONLY_NEXT_FRAME** = **2** --- Clear the render target next frame, then switch to ``CLEAR_MODE_NEVER``.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ VisualInstance
|
|||||||
|
|
||||||
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`BakedLightmap<class_BakedLightmap>`, :ref:`Light<class_Light>`, :ref:`RootMotionView<class_RootMotionView>`, :ref:`ReflectionProbe<class_ReflectionProbe>`, :ref:`CSGShape<class_CSGShape>`, :ref:`GIProbe<class_GIProbe>`, :ref:`GeometryInstance<class_GeometryInstance>`
|
**Inherited By:** :ref:`BakedLightmap<class_BakedLightmap>`, :ref:`CSGShape<class_CSGShape>`, :ref:`GIProbe<class_GIProbe>`, :ref:`GeometryInstance<class_GeometryInstance>`, :ref:`Light<class_Light>`, :ref:`ReflectionProbe<class_ReflectionProbe>`, :ref:`RootMotionView<class_RootMotionView>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ VisualScriptNode
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VisualScriptLocalVar<class_VisualScriptLocalVar>`, :ref:`VisualScriptSceneNode<class_VisualScriptSceneNode>`, :ref:`VisualScriptSequence<class_VisualScriptSequence>`, :ref:`VisualScriptVariableSet<class_VisualScriptVariableSet>`, :ref:`VisualScriptSelf<class_VisualScriptSelf>`, :ref:`VisualScriptConstant<class_VisualScriptConstant>`, :ref:`VisualScriptReturn<class_VisualScriptReturn>`, :ref:`VisualScriptSceneTree<class_VisualScriptSceneTree>`, :ref:`VisualScriptIndexSet<class_VisualScriptIndexSet>`, :ref:`VisualScriptResourcePath<class_VisualScriptResourcePath>`, :ref:`VisualScriptPropertyGet<class_VisualScriptPropertyGet>`, :ref:`VisualScriptVariableGet<class_VisualScriptVariableGet>`, :ref:`VisualScriptEngineSingleton<class_VisualScriptEngineSingleton>`, :ref:`VisualScriptEmitSignal<class_VisualScriptEmitSignal>`, :ref:`VisualScriptBasicTypeConstant<class_VisualScriptBasicTypeConstant>`, :ref:`VisualScriptDeconstruct<class_VisualScriptDeconstruct>`, :ref:`VisualScriptTypeCast<class_VisualScriptTypeCast>`, :ref:`VisualScriptGlobalConstant<class_VisualScriptGlobalConstant>`, :ref:`VisualScriptFunctionCall<class_VisualScriptFunctionCall>`, :ref:`VisualScriptSwitch<class_VisualScriptSwitch>`, :ref:`VisualScriptBuiltinFunc<class_VisualScriptBuiltinFunc>`, :ref:`VisualScriptClassConstant<class_VisualScriptClassConstant>`, :ref:`VisualScriptCondition<class_VisualScriptCondition>`, :ref:`VisualScriptOperator<class_VisualScriptOperator>`, :ref:`VisualScriptIterator<class_VisualScriptIterator>`, :ref:`VisualScriptCustomNode<class_VisualScriptCustomNode>`, :ref:`VisualScriptYield<class_VisualScriptYield>`, :ref:`VisualScriptSubCall<class_VisualScriptSubCall>`, :ref:`VisualScriptYieldSignal<class_VisualScriptYieldSignal>`, :ref:`VisualScriptIndexGet<class_VisualScriptIndexGet>`, :ref:`VisualScriptLocalVarSet<class_VisualScriptLocalVarSet>`, :ref:`VisualScriptWhile<class_VisualScriptWhile>`, :ref:`VisualScriptInputAction<class_VisualScriptInputAction>`, :ref:`VisualScriptConstructor<class_VisualScriptConstructor>`, :ref:`VisualScriptMathConstant<class_VisualScriptMathConstant>`, :ref:`VisualScriptComment<class_VisualScriptComment>`, :ref:`VisualScriptExpression<class_VisualScriptExpression>`, :ref:`VisualScriptPropertySet<class_VisualScriptPropertySet>`, :ref:`VisualScriptFunction<class_VisualScriptFunction>`, :ref:`VisualScriptPreload<class_VisualScriptPreload>`, :ref:`VisualScriptSelect<class_VisualScriptSelect>`
|
**Inherited By:** :ref:`VisualScriptBasicTypeConstant<class_VisualScriptBasicTypeConstant>`, :ref:`VisualScriptBuiltinFunc<class_VisualScriptBuiltinFunc>`, :ref:`VisualScriptClassConstant<class_VisualScriptClassConstant>`, :ref:`VisualScriptComment<class_VisualScriptComment>`, :ref:`VisualScriptCondition<class_VisualScriptCondition>`, :ref:`VisualScriptConstant<class_VisualScriptConstant>`, :ref:`VisualScriptConstructor<class_VisualScriptConstructor>`, :ref:`VisualScriptCustomNode<class_VisualScriptCustomNode>`, :ref:`VisualScriptDeconstruct<class_VisualScriptDeconstruct>`, :ref:`VisualScriptEmitSignal<class_VisualScriptEmitSignal>`, :ref:`VisualScriptEngineSingleton<class_VisualScriptEngineSingleton>`, :ref:`VisualScriptExpression<class_VisualScriptExpression>`, :ref:`VisualScriptFunction<class_VisualScriptFunction>`, :ref:`VisualScriptFunctionCall<class_VisualScriptFunctionCall>`, :ref:`VisualScriptGlobalConstant<class_VisualScriptGlobalConstant>`, :ref:`VisualScriptIndexGet<class_VisualScriptIndexGet>`, :ref:`VisualScriptIndexSet<class_VisualScriptIndexSet>`, :ref:`VisualScriptInputAction<class_VisualScriptInputAction>`, :ref:`VisualScriptIterator<class_VisualScriptIterator>`, :ref:`VisualScriptLocalVar<class_VisualScriptLocalVar>`, :ref:`VisualScriptLocalVarSet<class_VisualScriptLocalVarSet>`, :ref:`VisualScriptMathConstant<class_VisualScriptMathConstant>`, :ref:`VisualScriptOperator<class_VisualScriptOperator>`, :ref:`VisualScriptPreload<class_VisualScriptPreload>`, :ref:`VisualScriptPropertyGet<class_VisualScriptPropertyGet>`, :ref:`VisualScriptPropertySet<class_VisualScriptPropertySet>`, :ref:`VisualScriptResourcePath<class_VisualScriptResourcePath>`, :ref:`VisualScriptReturn<class_VisualScriptReturn>`, :ref:`VisualScriptSceneNode<class_VisualScriptSceneNode>`, :ref:`VisualScriptSceneTree<class_VisualScriptSceneTree>`, :ref:`VisualScriptSelect<class_VisualScriptSelect>`, :ref:`VisualScriptSelf<class_VisualScriptSelf>`, :ref:`VisualScriptSequence<class_VisualScriptSequence>`, :ref:`VisualScriptSubCall<class_VisualScriptSubCall>`, :ref:`VisualScriptSwitch<class_VisualScriptSwitch>`, :ref:`VisualScriptTypeCast<class_VisualScriptTypeCast>`, :ref:`VisualScriptVariableGet<class_VisualScriptVariableGet>`, :ref:`VisualScriptVariableSet<class_VisualScriptVariableSet>`, :ref:`VisualScriptWhile<class_VisualScriptWhile>`, :ref:`VisualScriptYield<class_VisualScriptYield>`, :ref:`VisualScriptYieldSignal<class_VisualScriptYieldSignal>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -747,24 +747,6 @@ Signals
|
|||||||
Enumerations
|
Enumerations
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportRenderInfo:
|
|
||||||
|
|
||||||
enum **ViewportRenderInfo**:
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME** = **0**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME** = **1**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME** = **2**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME** = **3**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME** = **4**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME** = **5**
|
|
||||||
|
|
||||||
- **VIEWPORT_RENDER_INFO_MAX** = **6** --- Marks end of VIEWPORT_RENDER_INFO\* constants. Used internally.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_CubeMapSide:
|
.. _enum_VisualServer_CubeMapSide:
|
||||||
|
|
||||||
enum **CubeMapSide**:
|
enum **CubeMapSide**:
|
||||||
@@ -793,15 +775,39 @@ enum **TextureType**:
|
|||||||
|
|
||||||
- **TEXTURE_TYPE_3D** = **3**
|
- **TEXTURE_TYPE_3D** = **3**
|
||||||
|
|
||||||
.. _enum_VisualServer_LightType:
|
.. _enum_VisualServer_TextureFlags:
|
||||||
|
|
||||||
enum **LightType**:
|
enum **TextureFlags**:
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL** = **0** --- Is a directional (sun) light.
|
- **TEXTURE_FLAG_MIPMAPS** = **1** --- Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
|
||||||
|
|
||||||
- **LIGHT_OMNI** = **1** --- is an omni light.
|
- **TEXTURE_FLAG_REPEAT** = **2** --- Repeat (instead of clamp to edge).
|
||||||
|
|
||||||
- **LIGHT_SPOT** = **2** --- is an spot light.
|
- **TEXTURE_FLAG_FILTER** = **4** --- Turn on magnifying filter, to enable smooth zooming in of the texture.
|
||||||
|
|
||||||
|
- **TEXTURE_FLAG_ANISOTROPIC_FILTER** = **8** --- Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
|
||||||
|
|
||||||
|
More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases.
|
||||||
|
|
||||||
|
- **TEXTURE_FLAG_CONVERT_TO_LINEAR** = **16** --- Converts texture to SRGB color space.
|
||||||
|
|
||||||
|
- **TEXTURE_FLAG_MIRRORED_REPEAT** = **32** --- Repeat texture with alternate sections mirrored.
|
||||||
|
|
||||||
|
- **TEXTURE_FLAG_USED_FOR_STREAMING** = **2048** --- Texture is a video surface.
|
||||||
|
|
||||||
|
- **TEXTURE_FLAGS_DEFAULT** = **7** --- Default flags. Generate mipmaps, repeat, and filter are enabled.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ShaderMode:
|
||||||
|
|
||||||
|
enum **ShaderMode**:
|
||||||
|
|
||||||
|
- **SHADER_SPATIAL** = **0** --- Shader is a 3D shader.
|
||||||
|
|
||||||
|
- **SHADER_CANVAS_ITEM** = **1** --- Shader is a 2D shader.
|
||||||
|
|
||||||
|
- **SHADER_PARTICLES** = **2** --- Shader is a particle shader.
|
||||||
|
|
||||||
|
- **SHADER_MAX** = **3** --- Marks maximum of the shader types array. used internally.
|
||||||
|
|
||||||
.. _enum_VisualServer_ArrayType:
|
.. _enum_VisualServer_ArrayType:
|
||||||
|
|
||||||
@@ -827,326 +833,6 @@ enum **ArrayType**:
|
|||||||
|
|
||||||
- **ARRAY_MAX** = **9** --- Marks the maximum of the array types. Used internally.
|
- **ARRAY_MAX** = **9** --- Marks the maximum of the array types. Used internally.
|
||||||
|
|
||||||
.. _enum_VisualServer_BlendShapeMode:
|
|
||||||
|
|
||||||
enum **BlendShapeMode**:
|
|
||||||
|
|
||||||
- **BLEND_SHAPE_MODE_NORMALIZED** = **0**
|
|
||||||
|
|
||||||
- **BLEND_SHAPE_MODE_RELATIVE** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ShadowCastingSetting:
|
|
||||||
|
|
||||||
enum **ShadowCastingSetting**:
|
|
||||||
|
|
||||||
- **SHADOW_CASTING_SETTING_OFF** = **0**
|
|
||||||
|
|
||||||
- **SHADOW_CASTING_SETTING_ON** = **1**
|
|
||||||
|
|
||||||
- **SHADOW_CASTING_SETTING_DOUBLE_SIDED** = **2**
|
|
||||||
|
|
||||||
- **SHADOW_CASTING_SETTING_SHADOWS_ONLY** = **3**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_CanvasOccluderPolygonCullMode:
|
|
||||||
|
|
||||||
enum **CanvasOccluderPolygonCullMode**:
|
|
||||||
|
|
||||||
- **CANVAS_OCCLUDER_POLYGON_CULL_DISABLED** = **0** --- Culling of the canvas occluder is disabled.
|
|
||||||
|
|
||||||
- **CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE** = **1** --- Culling of the canvas occluder is clockwise.
|
|
||||||
|
|
||||||
- **CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE** = **2** --- Culling of the canvas occluder is counterclockwise.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ParticlesDrawOrder:
|
|
||||||
|
|
||||||
enum **ParticlesDrawOrder**:
|
|
||||||
|
|
||||||
- **PARTICLES_DRAW_ORDER_INDEX** = **0**
|
|
||||||
|
|
||||||
- **PARTICLES_DRAW_ORDER_LIFETIME** = **1**
|
|
||||||
|
|
||||||
- **PARTICLES_DRAW_ORDER_VIEW_DEPTH** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportMSAA:
|
|
||||||
|
|
||||||
enum **ViewportMSAA**:
|
|
||||||
|
|
||||||
- **VIEWPORT_MSAA_DISABLED** = **0** --- Multisample antialiasing is disabled.
|
|
||||||
|
|
||||||
- **VIEWPORT_MSAA_2X** = **1** --- Multisample antialiasing is set to 2X.
|
|
||||||
|
|
||||||
- **VIEWPORT_MSAA_4X** = **2** --- Multisample antialiasing is set to 4X.
|
|
||||||
|
|
||||||
- **VIEWPORT_MSAA_8X** = **3** --- Multisample antialiasing is set to 8X.
|
|
||||||
|
|
||||||
- **VIEWPORT_MSAA_16X** = **4** --- Multisample antialiasing is set to 16X.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportUpdateMode:
|
|
||||||
|
|
||||||
enum **ViewportUpdateMode**:
|
|
||||||
|
|
||||||
- **VIEWPORT_UPDATE_DISABLED** = **0**
|
|
||||||
|
|
||||||
- **VIEWPORT_UPDATE_ONCE** = **1**
|
|
||||||
|
|
||||||
- **VIEWPORT_UPDATE_WHEN_VISIBLE** = **2**
|
|
||||||
|
|
||||||
- **VIEWPORT_UPDATE_ALWAYS** = **3**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_MultimeshColorFormat:
|
|
||||||
|
|
||||||
enum **MultimeshColorFormat**:
|
|
||||||
|
|
||||||
- **MULTIMESH_COLOR_NONE** = **0**
|
|
||||||
|
|
||||||
- **MULTIMESH_COLOR_8BIT** = **1**
|
|
||||||
|
|
||||||
- **MULTIMESH_COLOR_FLOAT** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_LightDirectionalShadowMode:
|
|
||||||
|
|
||||||
enum **LightDirectionalShadowMode**:
|
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL** = **0**
|
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS** = **1**
|
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_LightOmniShadowMode:
|
|
||||||
|
|
||||||
enum **LightOmniShadowMode**:
|
|
||||||
|
|
||||||
- **LIGHT_OMNI_SHADOW_DUAL_PARABOLOID** = **0**
|
|
||||||
|
|
||||||
- **LIGHT_OMNI_SHADOW_CUBE** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentSSAOQuality:
|
|
||||||
|
|
||||||
enum **EnvironmentSSAOQuality**:
|
|
||||||
|
|
||||||
- **ENV_SSAO_QUALITY_LOW** = **0**
|
|
||||||
|
|
||||||
- **ENV_SSAO_QUALITY_MEDIUM** = **1**
|
|
||||||
|
|
||||||
- **ENV_SSAO_QUALITY_HIGH** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_LightParam:
|
|
||||||
|
|
||||||
enum **LightParam**:
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_ENERGY** = **0** --- The light's energy.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SPECULAR** = **2** --- The light's influence on specularity.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_RANGE** = **3** --- The light's range.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_ATTENUATION** = **4** --- The light's attenuation.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SPOT_ANGLE** = **5** --- The spotlight's angle.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SPOT_ATTENUATION** = **6** --- The spotlight's attenuation.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_CONTACT_SHADOW_SIZE** = **7** --- Scales the shadow color.
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_MAX_DISTANCE** = **8**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET** = **9**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET** = **10**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET** = **11**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_NORMAL_BIAS** = **12**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_BIAS** = **13**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE** = **14**
|
|
||||||
|
|
||||||
- **LIGHT_PARAM_MAX** = **15** --- The light parameters endpoint. Used internally.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ScenarioDebugMode:
|
|
||||||
|
|
||||||
enum **ScenarioDebugMode**:
|
|
||||||
|
|
||||||
- **SCENARIO_DEBUG_DISABLED** = **0**
|
|
||||||
|
|
||||||
- **SCENARIO_DEBUG_WIREFRAME** = **1**
|
|
||||||
|
|
||||||
- **SCENARIO_DEBUG_OVERDRAW** = **2**
|
|
||||||
|
|
||||||
- **SCENARIO_DEBUG_SHADELESS** = **3**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_LightDirectionalShadowDepthRangeMode:
|
|
||||||
|
|
||||||
enum **LightDirectionalShadowDepthRangeMode**:
|
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE** = **0**
|
|
||||||
|
|
||||||
- **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentGlowBlendMode:
|
|
||||||
|
|
||||||
enum **EnvironmentGlowBlendMode**:
|
|
||||||
|
|
||||||
- **GLOW_BLEND_MODE_ADDITIVE** = **0**
|
|
||||||
|
|
||||||
- **GLOW_BLEND_MODE_SCREEN** = **1**
|
|
||||||
|
|
||||||
- **GLOW_BLEND_MODE_SOFTLIGHT** = **2**
|
|
||||||
|
|
||||||
- **GLOW_BLEND_MODE_REPLACE** = **3**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_InstanceType:
|
|
||||||
|
|
||||||
enum **InstanceType**:
|
|
||||||
|
|
||||||
- **INSTANCE_NONE** = **0** --- The instance does not have a type.
|
|
||||||
|
|
||||||
- **INSTANCE_MESH** = **1** --- The instance is a mesh.
|
|
||||||
|
|
||||||
- **INSTANCE_MULTIMESH** = **2** --- The instance is a multimesh.
|
|
||||||
|
|
||||||
- **INSTANCE_IMMEDIATE** = **3** --- The instance is an immediate geometry.
|
|
||||||
|
|
||||||
- **INSTANCE_PARTICLES** = **4** --- The instance is a particle emitter.
|
|
||||||
|
|
||||||
- **INSTANCE_LIGHT** = **5** --- The instance is a light.
|
|
||||||
|
|
||||||
- **INSTANCE_REFLECTION_PROBE** = **6**
|
|
||||||
|
|
||||||
- **INSTANCE_GI_PROBE** = **7**
|
|
||||||
|
|
||||||
- **INSTANCE_LIGHTMAP_CAPTURE** = **8**
|
|
||||||
|
|
||||||
- **INSTANCE_MAX** = **9** --- The max value for INSTANCE\_\* constants, used internally.
|
|
||||||
|
|
||||||
- **INSTANCE_GEOMETRY_MASK** = **30** --- A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ShaderMode:
|
|
||||||
|
|
||||||
enum **ShaderMode**:
|
|
||||||
|
|
||||||
- **SHADER_SPATIAL** = **0** --- Shader is a 3D shader.
|
|
||||||
|
|
||||||
- **SHADER_CANVAS_ITEM** = **1** --- Shader is a 2D shader.
|
|
||||||
|
|
||||||
- **SHADER_PARTICLES** = **2** --- Shader is a particle shader.
|
|
||||||
|
|
||||||
- **SHADER_MAX** = **3** --- Marks maximum of the shader types array. used internally.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportUsage:
|
|
||||||
|
|
||||||
enum **ViewportUsage**:
|
|
||||||
|
|
||||||
- **VIEWPORT_USAGE_2D** = **0** --- The Viewport does not render 3D but samples.
|
|
||||||
|
|
||||||
- **VIEWPORT_USAGE_2D_NO_SAMPLING** = **1** --- The Viewport does not render 3D and does not sample.
|
|
||||||
|
|
||||||
- **VIEWPORT_USAGE_3D** = **2** --- The Viewport renders 3D with effects.
|
|
||||||
|
|
||||||
- **VIEWPORT_USAGE_3D_NO_EFFECTS** = **3** --- The Viewport renders 3D but without effects.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentDOFBlurQuality:
|
|
||||||
|
|
||||||
enum **EnvironmentDOFBlurQuality**:
|
|
||||||
|
|
||||||
- **ENV_DOF_BLUR_QUALITY_LOW** = **0**
|
|
||||||
|
|
||||||
- **ENV_DOF_BLUR_QUALITY_MEDIUM** = **1**
|
|
||||||
|
|
||||||
- **ENV_DOF_BLUR_QUALITY_HIGH** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_PrimitiveType:
|
|
||||||
|
|
||||||
enum **PrimitiveType**:
|
|
||||||
|
|
||||||
- **PRIMITIVE_POINTS** = **0** --- Primitive to draw consists of points.
|
|
||||||
|
|
||||||
- **PRIMITIVE_LINES** = **1** --- Primitive to draw consists of lines.
|
|
||||||
|
|
||||||
- **PRIMITIVE_LINE_STRIP** = **2** --- Primitive to draw consists of a line strip from start to end.
|
|
||||||
|
|
||||||
- **PRIMITIVE_LINE_LOOP** = **3** --- Primitive to draw consists of a line loop (a line strip with a line between the last and the first vertex).
|
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLES** = **4** --- Primitive to draw consists of triangles.
|
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLE_STRIP** = **5** --- Primitive to draw consists of a triangle strip (the last 3 vertices are always combined to make a triangle).
|
|
||||||
|
|
||||||
- **PRIMITIVE_TRIANGLE_FAN** = **6** --- Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
|
|
||||||
|
|
||||||
- **PRIMITIVE_MAX** = **7** --- Marks the primitive types endpoint. used internally.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_InstanceFlags:
|
|
||||||
|
|
||||||
enum **InstanceFlags**:
|
|
||||||
|
|
||||||
- **INSTANCE_FLAG_USE_BAKED_LIGHT** = **0**
|
|
||||||
|
|
||||||
- **INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE** = **1**
|
|
||||||
|
|
||||||
- **INSTANCE_FLAG_MAX** = **2**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportClearMode:
|
|
||||||
|
|
||||||
enum **ViewportClearMode**:
|
|
||||||
|
|
||||||
- **VIEWPORT_CLEAR_ALWAYS** = **0** --- The viewport is always cleared before drawing.
|
|
||||||
|
|
||||||
- **VIEWPORT_CLEAR_NEVER** = **1** --- The viewport is never cleared before drawing.
|
|
||||||
|
|
||||||
- **VIEWPORT_CLEAR_ONLY_NEXT_FRAME** = **2** --- The viewport is cleared once, then the clear mode is set to VIEWPORT_CLEAR_NEVER.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_LightOmniShadowDetail:
|
|
||||||
|
|
||||||
enum **LightOmniShadowDetail**:
|
|
||||||
|
|
||||||
- **LIGHT_OMNI_SHADOW_DETAIL_VERTICAL** = **0**
|
|
||||||
|
|
||||||
- **LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_CanvasLightMode:
|
|
||||||
|
|
||||||
enum **CanvasLightMode**:
|
|
||||||
|
|
||||||
- **CANVAS_LIGHT_MODE_ADD** = **0** --- Adds light color additive to the canvas.
|
|
||||||
|
|
||||||
- **CANVAS_LIGHT_MODE_SUB** = **1** --- Adds light color subtractive to the canvas.
|
|
||||||
|
|
||||||
- **CANVAS_LIGHT_MODE_MIX** = **2** --- The light adds color depending on transparency.
|
|
||||||
|
|
||||||
- **CANVAS_LIGHT_MODE_MASK** = **3** --- The light adds color depending on mask.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_NinePatchAxisMode:
|
|
||||||
|
|
||||||
enum **NinePatchAxisMode**:
|
|
||||||
|
|
||||||
- **NINE_PATCH_STRETCH** = **0** --- The nine patch gets stretched where needed.
|
|
||||||
|
|
||||||
- **NINE_PATCH_TILE** = **1** --- The nine patch gets filled with tiles where needed.
|
|
||||||
|
|
||||||
- **NINE_PATCH_TILE_FIT** = **2** --- The nine patch gets filled with tiles where needed and stretches them a bit if needed.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ViewportDebugDraw:
|
|
||||||
|
|
||||||
enum **ViewportDebugDraw**:
|
|
||||||
|
|
||||||
- **VIEWPORT_DEBUG_DRAW_DISABLED** = **0** --- Debug draw is disabled. Default setting.
|
|
||||||
|
|
||||||
- **VIEWPORT_DEBUG_DRAW_UNSHADED** = **1** --- Debug draw sets objects to unshaded.
|
|
||||||
|
|
||||||
- **VIEWPORT_DEBUG_DRAW_OVERDRAW** = **2** --- Overwrites clear color to ``(0,0,0,0)``.
|
|
||||||
|
|
||||||
- **VIEWPORT_DEBUG_DRAW_WIREFRAME** = **3** --- Debug draw draws objects in wireframe.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_MultimeshTransformFormat:
|
|
||||||
|
|
||||||
enum **MultimeshTransformFormat**:
|
|
||||||
|
|
||||||
- **MULTIMESH_TRANSFORM_2D** = **0**
|
|
||||||
|
|
||||||
- **MULTIMESH_TRANSFORM_3D** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_ArrayFormat:
|
.. _enum_VisualServer_ArrayFormat:
|
||||||
|
|
||||||
enum **ArrayFormat**:
|
enum **ArrayFormat**:
|
||||||
@@ -1193,17 +879,297 @@ enum **ArrayFormat**:
|
|||||||
|
|
||||||
- **ARRAY_COMPRESS_DEFAULT** = **97280** --- Used to set flags ARRAY_COMPRESS_VERTEX, ARRAY_COMPRESS_NORMAL, ARRAY_COMPRESS_TANGENT, ARRAY_COMPRESS_COLOR, ARRAY_COMPRESS_TEX_UV, ARRAY_COMPRESS_TEX_UV2 and ARRAY_COMPRESS_WEIGHTS quickly.
|
- **ARRAY_COMPRESS_DEFAULT** = **97280** --- Used to set flags ARRAY_COMPRESS_VERTEX, ARRAY_COMPRESS_NORMAL, ARRAY_COMPRESS_TANGENT, ARRAY_COMPRESS_COLOR, ARRAY_COMPRESS_TEX_UV, ARRAY_COMPRESS_TEX_UV2 and ARRAY_COMPRESS_WEIGHTS quickly.
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentSSAOBlur:
|
.. _enum_VisualServer_PrimitiveType:
|
||||||
|
|
||||||
enum **EnvironmentSSAOBlur**:
|
enum **PrimitiveType**:
|
||||||
|
|
||||||
- **ENV_SSAO_BLUR_DISABLED** = **0**
|
- **PRIMITIVE_POINTS** = **0** --- Primitive to draw consists of points.
|
||||||
|
|
||||||
- **ENV_SSAO_BLUR_1x1** = **1**
|
- **PRIMITIVE_LINES** = **1** --- Primitive to draw consists of lines.
|
||||||
|
|
||||||
- **ENV_SSAO_BLUR_2x2** = **2**
|
- **PRIMITIVE_LINE_STRIP** = **2** --- Primitive to draw consists of a line strip from start to end.
|
||||||
|
|
||||||
- **ENV_SSAO_BLUR_3x3** = **3**
|
- **PRIMITIVE_LINE_LOOP** = **3** --- Primitive to draw consists of a line loop (a line strip with a line between the last and the first vertex).
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLES** = **4** --- Primitive to draw consists of triangles.
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLE_STRIP** = **5** --- Primitive to draw consists of a triangle strip (the last 3 vertices are always combined to make a triangle).
|
||||||
|
|
||||||
|
- **PRIMITIVE_TRIANGLE_FAN** = **6** --- Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
|
||||||
|
|
||||||
|
- **PRIMITIVE_MAX** = **7** --- Marks the primitive types endpoint. used internally.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_BlendShapeMode:
|
||||||
|
|
||||||
|
enum **BlendShapeMode**:
|
||||||
|
|
||||||
|
- **BLEND_SHAPE_MODE_NORMALIZED** = **0**
|
||||||
|
|
||||||
|
- **BLEND_SHAPE_MODE_RELATIVE** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightType:
|
||||||
|
|
||||||
|
enum **LightType**:
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL** = **0** --- Is a directional (sun) light.
|
||||||
|
|
||||||
|
- **LIGHT_OMNI** = **1** --- is an omni light.
|
||||||
|
|
||||||
|
- **LIGHT_SPOT** = **2** --- is an spot light.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightParam:
|
||||||
|
|
||||||
|
enum **LightParam**:
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_ENERGY** = **0** --- The light's energy.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SPECULAR** = **2** --- The light's influence on specularity.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_RANGE** = **3** --- The light's range.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_ATTENUATION** = **4** --- The light's attenuation.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SPOT_ANGLE** = **5** --- The spotlight's angle.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SPOT_ATTENUATION** = **6** --- The spotlight's attenuation.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_CONTACT_SHADOW_SIZE** = **7** --- Scales the shadow color.
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_MAX_DISTANCE** = **8**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET** = **9**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET** = **10**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET** = **11**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_NORMAL_BIAS** = **12**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_BIAS** = **13**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE** = **14**
|
||||||
|
|
||||||
|
- **LIGHT_PARAM_MAX** = **15** --- The light parameters endpoint. Used internally.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightOmniShadowMode:
|
||||||
|
|
||||||
|
enum **LightOmniShadowMode**:
|
||||||
|
|
||||||
|
- **LIGHT_OMNI_SHADOW_DUAL_PARABOLOID** = **0**
|
||||||
|
|
||||||
|
- **LIGHT_OMNI_SHADOW_CUBE** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightOmniShadowDetail:
|
||||||
|
|
||||||
|
enum **LightOmniShadowDetail**:
|
||||||
|
|
||||||
|
- **LIGHT_OMNI_SHADOW_DETAIL_VERTICAL** = **0**
|
||||||
|
|
||||||
|
- **LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightDirectionalShadowMode:
|
||||||
|
|
||||||
|
enum **LightDirectionalShadowMode**:
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL** = **0**
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS** = **1**
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS** = **2**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_LightDirectionalShadowDepthRangeMode:
|
||||||
|
|
||||||
|
enum **LightDirectionalShadowDepthRangeMode**:
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE** = **0**
|
||||||
|
|
||||||
|
- **LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportUpdateMode:
|
||||||
|
|
||||||
|
enum **ViewportUpdateMode**:
|
||||||
|
|
||||||
|
- **VIEWPORT_UPDATE_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **VIEWPORT_UPDATE_ONCE** = **1**
|
||||||
|
|
||||||
|
- **VIEWPORT_UPDATE_WHEN_VISIBLE** = **2**
|
||||||
|
|
||||||
|
- **VIEWPORT_UPDATE_ALWAYS** = **3**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportClearMode:
|
||||||
|
|
||||||
|
enum **ViewportClearMode**:
|
||||||
|
|
||||||
|
- **VIEWPORT_CLEAR_ALWAYS** = **0** --- The viewport is always cleared before drawing.
|
||||||
|
|
||||||
|
- **VIEWPORT_CLEAR_NEVER** = **1** --- The viewport is never cleared before drawing.
|
||||||
|
|
||||||
|
- **VIEWPORT_CLEAR_ONLY_NEXT_FRAME** = **2** --- The viewport is cleared once, then the clear mode is set to VIEWPORT_CLEAR_NEVER.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportMSAA:
|
||||||
|
|
||||||
|
enum **ViewportMSAA**:
|
||||||
|
|
||||||
|
- **VIEWPORT_MSAA_DISABLED** = **0** --- Multisample antialiasing is disabled.
|
||||||
|
|
||||||
|
- **VIEWPORT_MSAA_2X** = **1** --- Multisample antialiasing is set to 2X.
|
||||||
|
|
||||||
|
- **VIEWPORT_MSAA_4X** = **2** --- Multisample antialiasing is set to 4X.
|
||||||
|
|
||||||
|
- **VIEWPORT_MSAA_8X** = **3** --- Multisample antialiasing is set to 8X.
|
||||||
|
|
||||||
|
- **VIEWPORT_MSAA_16X** = **4** --- Multisample antialiasing is set to 16X.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportUsage:
|
||||||
|
|
||||||
|
enum **ViewportUsage**:
|
||||||
|
|
||||||
|
- **VIEWPORT_USAGE_2D** = **0** --- The Viewport does not render 3D but samples.
|
||||||
|
|
||||||
|
- **VIEWPORT_USAGE_2D_NO_SAMPLING** = **1** --- The Viewport does not render 3D and does not sample.
|
||||||
|
|
||||||
|
- **VIEWPORT_USAGE_3D** = **2** --- The Viewport renders 3D with effects.
|
||||||
|
|
||||||
|
- **VIEWPORT_USAGE_3D_NO_EFFECTS** = **3** --- The Viewport renders 3D but without effects.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportRenderInfo:
|
||||||
|
|
||||||
|
enum **ViewportRenderInfo**:
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME** = **0**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME** = **1**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME** = **2**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME** = **3**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME** = **4**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME** = **5**
|
||||||
|
|
||||||
|
- **VIEWPORT_RENDER_INFO_MAX** = **6** --- Marks end of VIEWPORT_RENDER_INFO\* constants. Used internally.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ViewportDebugDraw:
|
||||||
|
|
||||||
|
enum **ViewportDebugDraw**:
|
||||||
|
|
||||||
|
- **VIEWPORT_DEBUG_DRAW_DISABLED** = **0** --- Debug draw is disabled. Default setting.
|
||||||
|
|
||||||
|
- **VIEWPORT_DEBUG_DRAW_UNSHADED** = **1** --- Debug draw sets objects to unshaded.
|
||||||
|
|
||||||
|
- **VIEWPORT_DEBUG_DRAW_OVERDRAW** = **2** --- Overwrites clear color to ``(0,0,0,0)``.
|
||||||
|
|
||||||
|
- **VIEWPORT_DEBUG_DRAW_WIREFRAME** = **3** --- Debug draw draws objects in wireframe.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ScenarioDebugMode:
|
||||||
|
|
||||||
|
enum **ScenarioDebugMode**:
|
||||||
|
|
||||||
|
- **SCENARIO_DEBUG_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **SCENARIO_DEBUG_WIREFRAME** = **1**
|
||||||
|
|
||||||
|
- **SCENARIO_DEBUG_OVERDRAW** = **2**
|
||||||
|
|
||||||
|
- **SCENARIO_DEBUG_SHADELESS** = **3**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_InstanceType:
|
||||||
|
|
||||||
|
enum **InstanceType**:
|
||||||
|
|
||||||
|
- **INSTANCE_NONE** = **0** --- The instance does not have a type.
|
||||||
|
|
||||||
|
- **INSTANCE_MESH** = **1** --- The instance is a mesh.
|
||||||
|
|
||||||
|
- **INSTANCE_MULTIMESH** = **2** --- The instance is a multimesh.
|
||||||
|
|
||||||
|
- **INSTANCE_IMMEDIATE** = **3** --- The instance is an immediate geometry.
|
||||||
|
|
||||||
|
- **INSTANCE_PARTICLES** = **4** --- The instance is a particle emitter.
|
||||||
|
|
||||||
|
- **INSTANCE_LIGHT** = **5** --- The instance is a light.
|
||||||
|
|
||||||
|
- **INSTANCE_REFLECTION_PROBE** = **6**
|
||||||
|
|
||||||
|
- **INSTANCE_GI_PROBE** = **7**
|
||||||
|
|
||||||
|
- **INSTANCE_LIGHTMAP_CAPTURE** = **8**
|
||||||
|
|
||||||
|
- **INSTANCE_MAX** = **9** --- The max value for INSTANCE\_\* constants, used internally.
|
||||||
|
|
||||||
|
- **INSTANCE_GEOMETRY_MASK** = **30** --- A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
|
||||||
|
|
||||||
|
.. _enum_VisualServer_InstanceFlags:
|
||||||
|
|
||||||
|
enum **InstanceFlags**:
|
||||||
|
|
||||||
|
- **INSTANCE_FLAG_USE_BAKED_LIGHT** = **0**
|
||||||
|
|
||||||
|
- **INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE** = **1**
|
||||||
|
|
||||||
|
- **INSTANCE_FLAG_MAX** = **2**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ShadowCastingSetting:
|
||||||
|
|
||||||
|
enum **ShadowCastingSetting**:
|
||||||
|
|
||||||
|
- **SHADOW_CASTING_SETTING_OFF** = **0**
|
||||||
|
|
||||||
|
- **SHADOW_CASTING_SETTING_ON** = **1**
|
||||||
|
|
||||||
|
- **SHADOW_CASTING_SETTING_DOUBLE_SIDED** = **2**
|
||||||
|
|
||||||
|
- **SHADOW_CASTING_SETTING_SHADOWS_ONLY** = **3**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_NinePatchAxisMode:
|
||||||
|
|
||||||
|
enum **NinePatchAxisMode**:
|
||||||
|
|
||||||
|
- **NINE_PATCH_STRETCH** = **0** --- The nine patch gets stretched where needed.
|
||||||
|
|
||||||
|
- **NINE_PATCH_TILE** = **1** --- The nine patch gets filled with tiles where needed.
|
||||||
|
|
||||||
|
- **NINE_PATCH_TILE_FIT** = **2** --- The nine patch gets filled with tiles where needed and stretches them a bit if needed.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_CanvasLightMode:
|
||||||
|
|
||||||
|
enum **CanvasLightMode**:
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_MODE_ADD** = **0** --- Adds light color additive to the canvas.
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_MODE_SUB** = **1** --- Adds light color subtractive to the canvas.
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_MODE_MIX** = **2** --- The light adds color depending on transparency.
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_MODE_MASK** = **3** --- The light adds color depending on mask.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_CanvasLightShadowFilter:
|
||||||
|
|
||||||
|
enum **CanvasLightShadowFilter**:
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_NONE** = **0**
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_PCF3** = **1**
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_PCF5** = **2**
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_PCF7** = **3**
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_PCF9** = **4**
|
||||||
|
|
||||||
|
- **CANVAS_LIGHT_FILTER_PCF13** = **5**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_CanvasOccluderPolygonCullMode:
|
||||||
|
|
||||||
|
enum **CanvasOccluderPolygonCullMode**:
|
||||||
|
|
||||||
|
- **CANVAS_OCCLUDER_POLYGON_CULL_DISABLED** = **0** --- Culling of the canvas occluder is disabled.
|
||||||
|
|
||||||
|
- **CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE** = **1** --- Culling of the canvas occluder is clockwise.
|
||||||
|
|
||||||
|
- **CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE** = **2** --- Culling of the canvas occluder is counterclockwise.
|
||||||
|
|
||||||
.. _enum_VisualServer_RenderInfo:
|
.. _enum_VisualServer_RenderInfo:
|
||||||
|
|
||||||
@@ -1229,6 +1195,32 @@ enum **RenderInfo**:
|
|||||||
|
|
||||||
- **INFO_VERTEX_MEM_USED** = **9** --- The amount of vertex memory used.
|
- **INFO_VERTEX_MEM_USED** = **9** --- The amount of vertex memory used.
|
||||||
|
|
||||||
|
.. _enum_VisualServer_Features:
|
||||||
|
|
||||||
|
enum **Features**:
|
||||||
|
|
||||||
|
- **FEATURE_SHADERS** = **0**
|
||||||
|
|
||||||
|
- **FEATURE_MULTITHREADED** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_MultimeshTransformFormat:
|
||||||
|
|
||||||
|
enum **MultimeshTransformFormat**:
|
||||||
|
|
||||||
|
- **MULTIMESH_TRANSFORM_2D** = **0**
|
||||||
|
|
||||||
|
- **MULTIMESH_TRANSFORM_3D** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_MultimeshColorFormat:
|
||||||
|
|
||||||
|
enum **MultimeshColorFormat**:
|
||||||
|
|
||||||
|
- **MULTIMESH_COLOR_NONE** = **0**
|
||||||
|
|
||||||
|
- **MULTIMESH_COLOR_8BIT** = **1**
|
||||||
|
|
||||||
|
- **MULTIMESH_COLOR_FLOAT** = **2**
|
||||||
|
|
||||||
.. _enum_VisualServer_ReflectionProbeUpdateMode:
|
.. _enum_VisualServer_ReflectionProbeUpdateMode:
|
||||||
|
|
||||||
enum **ReflectionProbeUpdateMode**:
|
enum **ReflectionProbeUpdateMode**:
|
||||||
@@ -1237,6 +1229,16 @@ enum **ReflectionProbeUpdateMode**:
|
|||||||
|
|
||||||
- **REFLECTION_PROBE_UPDATE_ALWAYS** = **1**
|
- **REFLECTION_PROBE_UPDATE_ALWAYS** = **1**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_ParticlesDrawOrder:
|
||||||
|
|
||||||
|
enum **ParticlesDrawOrder**:
|
||||||
|
|
||||||
|
- **PARTICLES_DRAW_ORDER_INDEX** = **0**
|
||||||
|
|
||||||
|
- **PARTICLES_DRAW_ORDER_LIFETIME** = **1**
|
||||||
|
|
||||||
|
- **PARTICLES_DRAW_ORDER_VIEW_DEPTH** = **2**
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentBG:
|
.. _enum_VisualServer_EnvironmentBG:
|
||||||
|
|
||||||
enum **EnvironmentBG**:
|
enum **EnvironmentBG**:
|
||||||
@@ -1255,51 +1257,27 @@ enum **EnvironmentBG**:
|
|||||||
|
|
||||||
- **ENV_BG_MAX** = **6**
|
- **ENV_BG_MAX** = **6**
|
||||||
|
|
||||||
.. _enum_VisualServer_CanvasLightShadowFilter:
|
.. _enum_VisualServer_EnvironmentDOFBlurQuality:
|
||||||
|
|
||||||
enum **CanvasLightShadowFilter**:
|
enum **EnvironmentDOFBlurQuality**:
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_NONE** = **0**
|
- **ENV_DOF_BLUR_QUALITY_LOW** = **0**
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_PCF3** = **1**
|
- **ENV_DOF_BLUR_QUALITY_MEDIUM** = **1**
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_PCF5** = **2**
|
- **ENV_DOF_BLUR_QUALITY_HIGH** = **2**
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_PCF7** = **3**
|
.. _enum_VisualServer_EnvironmentGlowBlendMode:
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_PCF9** = **4**
|
enum **EnvironmentGlowBlendMode**:
|
||||||
|
|
||||||
- **CANVAS_LIGHT_FILTER_PCF13** = **5**
|
- **GLOW_BLEND_MODE_ADDITIVE** = **0**
|
||||||
|
|
||||||
.. _enum_VisualServer_Features:
|
- **GLOW_BLEND_MODE_SCREEN** = **1**
|
||||||
|
|
||||||
enum **Features**:
|
- **GLOW_BLEND_MODE_SOFTLIGHT** = **2**
|
||||||
|
|
||||||
- **FEATURE_SHADERS** = **0**
|
- **GLOW_BLEND_MODE_REPLACE** = **3**
|
||||||
|
|
||||||
- **FEATURE_MULTITHREADED** = **1**
|
|
||||||
|
|
||||||
.. _enum_VisualServer_TextureFlags:
|
|
||||||
|
|
||||||
enum **TextureFlags**:
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_MIPMAPS** = **1** --- Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_REPEAT** = **2** --- Repeat (instead of clamp to edge).
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_FILTER** = **4** --- Turn on magnifying filter, to enable smooth zooming in of the texture.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_ANISOTROPIC_FILTER** = **8** --- Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
|
|
||||||
|
|
||||||
More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_CONVERT_TO_LINEAR** = **16** --- Converts texture to SRGB color space.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_MIRRORED_REPEAT** = **32** --- Repeat texture with alternate sections mirrored.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAG_USED_FOR_STREAMING** = **2048** --- Texture is a video surface.
|
|
||||||
|
|
||||||
- **TEXTURE_FLAGS_DEFAULT** = **7** --- Default flags. Generate mipmaps, repeat, and filter are enabled.
|
|
||||||
|
|
||||||
.. _enum_VisualServer_EnvironmentToneMapper:
|
.. _enum_VisualServer_EnvironmentToneMapper:
|
||||||
|
|
||||||
@@ -1313,6 +1291,28 @@ enum **EnvironmentToneMapper**:
|
|||||||
|
|
||||||
- **ENV_TONE_MAPPER_ACES** = **3**
|
- **ENV_TONE_MAPPER_ACES** = **3**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_EnvironmentSSAOQuality:
|
||||||
|
|
||||||
|
enum **EnvironmentSSAOQuality**:
|
||||||
|
|
||||||
|
- **ENV_SSAO_QUALITY_LOW** = **0**
|
||||||
|
|
||||||
|
- **ENV_SSAO_QUALITY_MEDIUM** = **1**
|
||||||
|
|
||||||
|
- **ENV_SSAO_QUALITY_HIGH** = **2**
|
||||||
|
|
||||||
|
.. _enum_VisualServer_EnvironmentSSAOBlur:
|
||||||
|
|
||||||
|
enum **EnvironmentSSAOBlur**:
|
||||||
|
|
||||||
|
- **ENV_SSAO_BLUR_DISABLED** = **0**
|
||||||
|
|
||||||
|
- **ENV_SSAO_BLUR_1x1** = **1**
|
||||||
|
|
||||||
|
- **ENV_SSAO_BLUR_2x2** = **2**
|
||||||
|
|
||||||
|
- **ENV_SSAO_BLUR_3x3** = **3**
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ VisualShaderNode
|
|||||||
|
|
||||||
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VisualShaderNodeVectorFunc<class_VisualShaderNodeVectorFunc>`, :ref:`VisualShaderNodeVectorCompose<class_VisualShaderNodeVectorCompose>`, :ref:`VisualShaderNodeTransformDecompose<class_VisualShaderNodeTransformDecompose>`, :ref:`VisualShaderNodeCubeMapUniform<class_VisualShaderNodeCubeMapUniform>`, :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>`, :ref:`VisualShaderNodeTransformVecMult<class_VisualShaderNodeTransformVecMult>`, :ref:`VisualShaderNodeVectorDecompose<class_VisualShaderNodeVectorDecompose>`, :ref:`VisualShaderNodeVec3Constant<class_VisualShaderNodeVec3Constant>`, :ref:`VisualShaderNodeTransformMult<class_VisualShaderNodeTransformMult>`, :ref:`VisualShaderNodeInput<class_VisualShaderNodeInput>`, :ref:`VisualShaderNodeScalarConstant<class_VisualShaderNodeScalarConstant>`, :ref:`VisualShaderNodeScalarFunc<class_VisualShaderNodeScalarFunc>`, :ref:`VisualShaderNodeCubeMap<class_VisualShaderNodeCubeMap>`, :ref:`VisualShaderNodeScalarOp<class_VisualShaderNodeScalarOp>`, :ref:`VisualShaderNodeTransformCompose<class_VisualShaderNodeTransformCompose>`, :ref:`VisualShaderNodeVectorOp<class_VisualShaderNodeVectorOp>`, :ref:`VisualShaderNodeVectorLen<class_VisualShaderNodeVectorLen>`, :ref:`VisualShaderNodeColorOp<class_VisualShaderNodeColorOp>`, :ref:`VisualShaderNodeTransformConstant<class_VisualShaderNodeTransformConstant>`, :ref:`VisualShaderNodeOutput<class_VisualShaderNodeOutput>`, :ref:`VisualShaderNodeVectorInterp<class_VisualShaderNodeVectorInterp>`, :ref:`VisualShaderNodeDotProduct<class_VisualShaderNodeDotProduct>`, :ref:`VisualShaderNodeTexture<class_VisualShaderNodeTexture>`, :ref:`VisualShaderNodeScalarInterp<class_VisualShaderNodeScalarInterp>`, :ref:`VisualShaderNodeColorConstant<class_VisualShaderNodeColorConstant>`
|
**Inherited By:** :ref:`VisualShaderNodeColorConstant<class_VisualShaderNodeColorConstant>`, :ref:`VisualShaderNodeColorOp<class_VisualShaderNodeColorOp>`, :ref:`VisualShaderNodeCubeMap<class_VisualShaderNodeCubeMap>`, :ref:`VisualShaderNodeCubeMapUniform<class_VisualShaderNodeCubeMapUniform>`, :ref:`VisualShaderNodeDotProduct<class_VisualShaderNodeDotProduct>`, :ref:`VisualShaderNodeInput<class_VisualShaderNodeInput>`, :ref:`VisualShaderNodeOutput<class_VisualShaderNodeOutput>`, :ref:`VisualShaderNodeScalarConstant<class_VisualShaderNodeScalarConstant>`, :ref:`VisualShaderNodeScalarFunc<class_VisualShaderNodeScalarFunc>`, :ref:`VisualShaderNodeScalarInterp<class_VisualShaderNodeScalarInterp>`, :ref:`VisualShaderNodeScalarOp<class_VisualShaderNodeScalarOp>`, :ref:`VisualShaderNodeTexture<class_VisualShaderNodeTexture>`, :ref:`VisualShaderNodeTransformCompose<class_VisualShaderNodeTransformCompose>`, :ref:`VisualShaderNodeTransformConstant<class_VisualShaderNodeTransformConstant>`, :ref:`VisualShaderNodeTransformDecompose<class_VisualShaderNodeTransformDecompose>`, :ref:`VisualShaderNodeTransformMult<class_VisualShaderNodeTransformMult>`, :ref:`VisualShaderNodeTransformVecMult<class_VisualShaderNodeTransformVecMult>`, :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>`, :ref:`VisualShaderNodeVec3Constant<class_VisualShaderNodeVec3Constant>`, :ref:`VisualShaderNodeVectorCompose<class_VisualShaderNodeVectorCompose>`, :ref:`VisualShaderNodeVectorDecompose<class_VisualShaderNodeVectorDecompose>`, :ref:`VisualShaderNodeVectorFunc<class_VisualShaderNodeVectorFunc>`, :ref:`VisualShaderNodeVectorInterp<class_VisualShaderNodeVectorInterp>`, :ref:`VisualShaderNodeVectorLen<class_VisualShaderNodeVectorLen>`, :ref:`VisualShaderNodeVectorOp<class_VisualShaderNodeVectorOp>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ VisualShaderNodeUniform
|
|||||||
|
|
||||||
**Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
**Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||||
|
|
||||||
**Inherited By:** :ref:`VisualShaderNodeVec3Uniform<class_VisualShaderNodeVec3Uniform>`, :ref:`VisualShaderNodeScalarUniform<class_VisualShaderNodeScalarUniform>`, :ref:`VisualShaderNodeTextureUniform<class_VisualShaderNodeTextureUniform>`, :ref:`VisualShaderNodeTransformUniform<class_VisualShaderNodeTransformUniform>`, :ref:`VisualShaderNodeColorUniform<class_VisualShaderNodeColorUniform>`
|
**Inherited By:** :ref:`VisualShaderNodeColorUniform<class_VisualShaderNodeColorUniform>`, :ref:`VisualShaderNodeScalarUniform<class_VisualShaderNodeScalarUniform>`, :ref:`VisualShaderNodeTextureUniform<class_VisualShaderNodeTextureUniform>`, :ref:`VisualShaderNodeTransformUniform<class_VisualShaderNodeTransformUniform>`, :ref:`VisualShaderNodeVec3Uniform<class_VisualShaderNodeVec3Uniform>`
|
||||||
|
|
||||||
**Category:** Core
|
**Category:** Core
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user