Proofread and improve the whole class reference
- Document a few more properties and methods - Add more information to many classes - Fix lots of typos and gramar mistakes - Use [code] tags for parameters consistently - Use [b] and [i] tags consistently - Put "Warning:" and "Note:" on their own line to be more visible, and make them always bold - Tweak formatting in code examples to be more readable - Use double quotes consistently - Add more links to third-party technologies
This commit is contained in:
parent
538c8eec15
commit
f7f6115f76
330 changed files with 2585 additions and 2474 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVRAnchor" inherits="Spatial" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Anchor point in AR Space.
|
||||
An anchor point in AR space.
|
||||
</brief_description>
|
||||
<description>
|
||||
The ARVR Anchor point is a spatial node that maps a real world location identified by the AR platform to a position within the game world. For example, as long as plane detection in ARKit is on, ARKit will identify and update the position of planes (tables, floors, etc) and create anchors for them.
|
||||
This node is mapped to one of the anchors through its unique id. When you receive a signal that a new anchor is available, you should add this node to your scene for that anchor. You can predefine nodes and set the id and the nodes will simply remain on 0,0,0 until a plane is recognized.
|
||||
This node is mapped to one of the anchors through its unique ID. When you receive a signal that a new anchor is available, you should add this node to your scene for that anchor. You can predefine nodes and set the ID; the nodes will simply remain on 0,0,0 until a plane is recognized.
|
||||
Keep in mind that, as long as plane detection is enabled, the size, placing and orientation of an anchor will be updated as the detection logic learns more about the real world out there especially if only part of the surface is in view.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -22,14 +22,14 @@
|
|||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Returns [code]true[/code] if the anchor is being tracked and [code]false[/code] if no anchor with this id is currently known.
|
||||
Returns [code]true[/code] if the anchor is being tracked and [code]false[/code] if no anchor with this ID is currently known.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_mesh" qualifiers="const">
|
||||
<return type="Mesh">
|
||||
</return>
|
||||
<description>
|
||||
If provided by the ARVR Interface this returns a mesh object for the anchor. For an anchor this can be a shape related to the object being tracked or it can be a mesh that provides topology related to the anchor and can be used to create shadows/reflections on surfaces or for generating collision shapes.
|
||||
If provided by the ARVR Interface, this returns a mesh object for the anchor. For an anchor, this can be a shape related to the object being tracked or it can be a mesh that provides topology related to the anchor and can be used to create shadows/reflections on surfaces or for generating collision shapes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_plane" qualifiers="const">
|
||||
|
@ -49,7 +49,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="anchor_id" type="int" setter="set_anchor_id" getter="get_anchor_id">
|
||||
The anchor's id. You can set this before the anchor itself exists. The first anchor gets an id of [code]1[/code], the second an id of [code]2[/code], etc. When anchors get removed, the engine can then assign the corresponding id to new anchors. The most common situation where anchors 'disappear' is when the AR server identifies that two anchors represent different parts of the same plane and merges them.
|
||||
The anchor's ID. You can set this before the anchor itself exists. The first anchor gets an ID of [code]1[/code], the second an ID of [code]2[/code], etc. When anchors get removed, the engine can then assign the corresponding ID to new anchors. The most common situation where anchors "disappear" is when the AR server identifies that two anchors represent different parts of the same plane and merges them.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
|
@ -57,7 +57,7 @@
|
|||
<argument index="0" name="mesh" type="Mesh">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when the mesh associated with the anchor changes or when one becomes available. This is especially important for topology that is constantly being mesh_updated.
|
||||
Emitted when the mesh associated with the anchor changes or when one becomes available. This is especially important for topology that is constantly being [code]mesh_updated[/code].
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVRController" inherits="Spatial" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
A spatial node representing a spatially tracked controller.
|
||||
A spatial node representing a spatially-tracked controller.
|
||||
</brief_description>
|
||||
<description>
|
||||
This is a helper spatial node that is linked to the tracking of controllers. It also offers several handy passthroughs to the state of buttons and such on the controllers.
|
||||
Controllers are linked by their id. You can create controller nodes before the controllers are available. Say your game always uses two controllers (one for each hand) you can predefine the controllers with id 1 and 2 and they will become active as soon as the controllers are identified. If you expect additional controllers to be used, you should react to the signals and add ARVRController nodes to your scene.
|
||||
The position of the controller node is automatically updated by the ARVR Server. This makes this node ideal to add child nodes to visualise the controller.
|
||||
Controllers are linked by their ID. You can create controller nodes before the controllers are available. If your game always uses two controllers (one for each hand), you can predefine the controllers with ID 1 and 2; they will become active as soon as the controllers are identified. If you expect additional controllers to be used, you should react to the signals and add ARVRController nodes to your scene.
|
||||
The position of the controller node is automatically updated by the [ARVRServer]. This makes this node ideal to add child nodes to visualize the controller.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<return type="int" enum="ARVRPositionalTracker.TrackerHand">
|
||||
</return>
|
||||
<description>
|
||||
Returns the hand holding this controller, if known. See TRACKER_* constants in [ARVRPositionalTracker].
|
||||
Returns the hand holding this controller, if known. See [code]TRACKER_*[/code] constants in [ARVRPositionalTracker].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_is_active" qualifiers="const">
|
||||
|
@ -45,14 +45,14 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Returns the ID of the joystick object bound to this. Every controller tracked by the ARVR Server that has buttons and axis will also be registered as a joystick within Godot. This means that all the normal joystick tracking and input mapping will work for buttons and axis found on the AR/VR controllers. This ID is purely offered as information so you can link up the controller with its joystick entry.
|
||||
Returns the ID of the joystick object bound to this. Every controller tracked by the [ARVRServer] that has buttons and axis will also be registered as a joystick within Godot. This means that all the normal joystick tracking and input mapping will work for buttons and axis found on the AR/VR controllers. This ID is purely offered as information so you can link up the controller with its joystick entry.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_mesh" qualifiers="const">
|
||||
<return type="Mesh">
|
||||
</return>
|
||||
<description>
|
||||
If provided by the ARVR Interface this returns a mesh associated with the controller. This can be used to visualise the controller.
|
||||
If provided by the [ARVRInterface], this returns a mesh associated with the controller. This can be used to visualize the controller.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_button_pressed" qualifiers="const">
|
||||
|
@ -67,10 +67,10 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="controller_id" type="int" setter="set_controller_id" getter="get_controller_id">
|
||||
The controller's id.
|
||||
A controller id of 0 is unbound and will always result in an inactive node. Controller id 1 is reserved for the first controller that identifies itself as the left hand controller and id 2 is reserved for the first controller that identifies itself as the right hand controller.
|
||||
For any other controller that the [ARVRServer] detects, we continue with controller id 3.
|
||||
When a controller is turned off, its slot is freed. This ensures controllers will keep the same id even when controllers with lower ids are turned off.
|
||||
The controller's ID.
|
||||
A controller ID of 0 is unbound and will always result in an inactive node. Controller ID 1 is reserved for the first controller that identifies itself as the left-hand controller and ID 2 is reserved for the first controller that identifies itself as the right-hand controller.
|
||||
For any other controller that the [ARVRServer] detects, we continue with controller ID 3.
|
||||
When a controller is turned off, its slot is freed. This ensures controllers will keep the same ID even when controllers with lower IDs are turned off.
|
||||
</member>
|
||||
<member name="rumble" type="float" setter="set_rumble" getter="get_rumble">
|
||||
The degree to which the tracker rumbles. Ranges from [code]0.0[/code] to [code]1.0[/code] with precision [code].01[/code]. If changed, updates [member ARVRPositionalTracker.rumble] accordingly.
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVRInterface" inherits="Reference" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Base class for ARVR interface implementation.
|
||||
Base class for an AR/VR interface implementation.
|
||||
</brief_description>
|
||||
<description>
|
||||
This class needs to be implemented to make an AR or VR platform available to Godot and these should be implemented as C++ modules or GDNative modules (note that for GDNative the subclass ARVRScriptInterface should be used). Part of the interface is exposed to GDScript so you can detect, enable and configure an AR or VR platform.
|
||||
Interfaces should be written in such a way that simply enabling them will give us a working setup. You can query the available interfaces through ARVRServer.
|
||||
Interfaces should be written in such a way that simply enabling them will give us a working setup. You can query the available interfaces through [ARVRServer].
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
If this is an AR interface that requires displaying a camera feed as the background, this method returns the feed id in the [CameraServer] for this interface.
|
||||
If this is an AR interface that requires displaying a camera feed as the background, this method returns the feed ID in the [CameraServer] for this interface.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_capabilities" qualifiers="const">
|
||||
|
@ -51,9 +51,9 @@
|
|||
<description>
|
||||
Call this to initialize this interface. The first interface that is initialized is identified as the primary interface and it will be used for rendering output.
|
||||
After initializing the interface you want to use you then need to enable the AR/VR mode of a viewport and rendering should commence.
|
||||
Note that you must enable the AR/VR mode on the main viewport for any device that uses the main output of Godot such as for mobile VR.
|
||||
If you do this for a platform that handles its own output (such as OpenVR) Godot will show just one eye without distortion on screen. Alternatively you can add a separate viewport node to your scene and enable AR/VR on that viewport and it will be used to output to the HMD leaving you free to do anything you like in the main window such as using a separate camera as a spectator camera or render out something completely different.
|
||||
While currently not used you can activate additional interfaces, you may wish to do this if you want to track controllers from other platforms. However at this point in time only one interface can render to an HMD.
|
||||
[b]Note:[/b] You must enable the AR/VR mode on the main viewport for any device that uses the main output of Godot such as for mobile VR.
|
||||
If you do this for a platform that handles its own output (such as OpenVR) Godot will show just one eye without distortion on screen. Alternatively, you can add a separate viewport node to your scene and enable AR/VR on that viewport and it will be used to output to the HMD leaving you free to do anything you like in the main window such as using a separate camera as a spectator camera or render out something completely different.
|
||||
While currently not used you can activate additional interfaces, you may wish to do this if you want to track controllers from other platforms. However, at this point in time only one interface can render to an HMD.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_stereo">
|
||||
|
@ -96,7 +96,7 @@
|
|||
This interface support AR (video background and real world tracking).
|
||||
</constant>
|
||||
<constant name="ARVR_EXTERNAL" value="8" enum="Capabilities">
|
||||
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.
|
||||
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 [method get_render_targetsize]). Using a separate viewport node frees up the main viewport for other purposes.
|
||||
</constant>
|
||||
<constant name="EYE_MONO" value="0" enum="Eyes">
|
||||
Mono output, this is mostly used internally when retrieving positioning information for our camera node or when stereo scopic rendering is not supported.
|
||||
|
@ -111,10 +111,10 @@
|
|||
Tracking is behaving as expected.
|
||||
</constant>
|
||||
<constant name="ARVR_EXCESSIVE_MOTION" value="1" enum="Tracking_status">
|
||||
Tracking is hindered by excessive motion, player is moving faster then tracking can keep up.
|
||||
Tracking is hindered by excessive motion, player is moving faster than tracking can keep up.
|
||||
</constant>
|
||||
<constant name="ARVR_INSUFFICIENT_FEATURES" value="2" enum="Tracking_status">
|
||||
Tracking is hindered by insufficient features, it's too dark (for camera based tracking), player is blocked, etc.
|
||||
Tracking is hindered by insufficient features, it's too dark (for camera-based tracking), player is blocked, etc.
|
||||
</constant>
|
||||
<constant name="ARVR_UNKNOWN_TRACKING" value="3" enum="Tracking_status">
|
||||
We don't know the status of the tracking or this interface does not provide feedback.
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVROrigin" inherits="Spatial" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Our origin point in AR/VR.
|
||||
The origin point in AR/VR.
|
||||
</brief_description>
|
||||
<description>
|
||||
This is a special node within the AR/VR system that maps the physical location of the center of our tracking space to the virtual location within our game world.
|
||||
There should be only one of these nodes in your scene and you must have one. All the ARVRCamera, ARVRController and ARVRAnchor nodes should be direct children of this node for spatial tracking to work correctly.
|
||||
It is the position of this node that you update when your character needs to move through your game world while we're not moving in the real world. Movement in the real world is always in relation to this origin point.
|
||||
So say that your character is driving a car, the ARVROrigin node should be a child node of this car. If you implement a teleport system to move your character, you change the position of this node. Etc.
|
||||
For example, if your character is driving a car, the ARVROrigin node should be a child node of this car. Or, if you're implementing a teleport system to move your character, you should change the position of this node.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -15,8 +15,8 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale">
|
||||
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 meter in the real world.
|
||||
Note that this method is a passthrough to the [ARVRServer] itself.
|
||||
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 real world meter.
|
||||
[b]Note:[/b] This method is a passthrough to the [ARVRServer] itself.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVRPositionalTracker" inherits="Object" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
A tracked object
|
||||
A tracked object.
|
||||
</brief_description>
|
||||
<description>
|
||||
An instance of this object represents a device that is tracked such as a controller or anchor point. HMDs aren't represented here as they are fully handled internally.
|
||||
As controllers are turned on and the AR/VR interface detects them instances of this object are automatically added to this list of active tracking objects accessible through the ARVRServer
|
||||
The ARVRController and ARVRAnchor both consume objects of this type and should be the objects you use in game. The positional trackers are just the under the hood objects that make this all work and are mostly exposed so GDNative based interfaces can interact with them.
|
||||
An instance of this object represents a device that is tracked, such as a controller or anchor point. HMDs aren't represented here as they are handled internally.
|
||||
As controllers are turned on and the AR/VR interface detects them, instances of this object are automatically added to this list of active tracking objects accessible through the [ARVRServer].
|
||||
The [ARVRController] and [ARVRAnchor] both consume objects of this type and should be used in your project. The positional trackers are just under-the-hood objects that make this all work. These are mostly exposed so that GDNative-based interfaces can interact with them.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -15,14 +15,14 @@
|
|||
<return type="int" enum="ARVRPositionalTracker.TrackerHand">
|
||||
</return>
|
||||
<description>
|
||||
Returns the hand holding this tracker, if known. See TRACKER_* constants.
|
||||
Returns the hand holding this tracker, if known. See [code]TRACKER_*[/code] constants.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_joy_id" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
If this is a controller that is being tracked the controller will also be represented by a joystick entry with this id.
|
||||
If this is a controller that is being tracked, the controller will also be represented by a joystick entry with this ID.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_mesh" qualifiers="const">
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ARVRServer" inherits="Object" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
This is our AR/VR Server.
|
||||
The AR/VR server.
|
||||
</brief_description>
|
||||
<description>
|
||||
The AR/VR Server is the heart of our AR/VR solution and handles all the processing.
|
||||
The AR/VR server is the heart of our AR/VR solution and handles all the processing.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -17,12 +17,12 @@
|
|||
<argument index="1" name="keep_height" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
This is a really important function to understand correctly. AR and VR platforms all handle positioning slightly differently.
|
||||
For platforms that do not offer spatial tracking our origin point (0,0,0) is the location of our HMD but you have little control over the direction the player is facing in the real world.
|
||||
For platforms that do offer spatial tracking our origin point depends very much on the system. For OpenVR our origin point is usually the center of the tracking space, on the ground. For other platforms its often the location of the tracking camera.
|
||||
This method allows you to center our tracker on the location of the HMD, it will take the current location of the HMD and use that to adjust all our tracking data in essence realigning the real world to your players current position in your game world.
|
||||
For this method to produce usable results tracking information should be available and this often takes a few frames after starting your game.
|
||||
You should call this method after a few seconds have passed, when the user requests a realignment of the display holding a designated button on a controller for a short period of time, and when implementing a teleport mechanism.
|
||||
This is an important function to understand correctly. AR and VR platforms all handle positioning slightly differently.
|
||||
For platforms that do not offer spatial tracking, our origin point (0,0,0) is the location of our HMD, but you have little control over the direction the player is facing in the real world.
|
||||
For platforms that do offer spatial tracking, our origin point depends very much on the system. For OpenVR, our origin point is usually the center of the tracking space, on the ground. For other platforms, it's often the location of the tracking camera.
|
||||
This method allows you to center your tracker on the location of the HMD. It will take the current location of the HMD and use that to adjust all your tracking data; in essence, realigning the real world to your player's current position in the game world.
|
||||
For this method to produce usable results, tracking information must be available. This often takes a few frames after starting your game.
|
||||
You should call this method after a few seconds have passed. For instance, when the user requests a realignment of the display holding a designated button on a controller for a short period of time, or when implementing a teleport mechanism.
|
||||
</description>
|
||||
</method>
|
||||
<method name="find_interface" qualifiers="const">
|
||||
|
@ -31,7 +31,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Find an interface by its name. Say that you're making a game that uses specific capabilities of an AR/VR platform you can find the interface for that platform by name and initialize it.
|
||||
Finds an interface by its name. For instance, if your project uses capabilities of an AR/VR platform, you can find the interface for that platform by name and initialize it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_hmd_transform">
|
||||
|
@ -47,21 +47,21 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the interface registered at a given index in our list of interfaces.
|
||||
Gets the interface registered at a given index in our list of interfaces.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_interface_count" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Get the number of interfaces currently registered with the AR/VR server. If your game supports multiple AR/VR platforms, you can look through the available interface, and either present the user with a selection or simply try an initialize each interface and use the first one that returns [code]true[/code].
|
||||
Gets the number of interfaces currently registered with the AR/VR server. If your project supports multiple AR/VR platforms, you can look through the available interface, and either present the user with a selection or simply try to initialize each interface and use the first one that returns [code]true[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_interfaces" qualifiers="const">
|
||||
<return type="Array">
|
||||
</return>
|
||||
<description>
|
||||
Returns a list of available interfaces with both id and name of the interface.
|
||||
Returns a list of available interfaces the ID and name of each interface.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_last_commit_usec">
|
||||
|
@ -86,7 +86,7 @@
|
|||
<return type="Transform">
|
||||
</return>
|
||||
<description>
|
||||
Gets our reference frame transform, mostly used internally and exposed for GDNative build interfaces.
|
||||
Gets the reference frame transform. Mostly used internally and exposed for GDNative build interfaces.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tracker" qualifiers="const">
|
||||
|
@ -95,14 +95,14 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the positional tracker at the given ID.
|
||||
Gets the positional tracker at the given ID.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_tracker_count" qualifiers="const">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Get the number of trackers currently registered.
|
||||
Gets the number of trackers currently registered.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
@ -110,7 +110,7 @@
|
|||
<member name="primary_interface" type="ARVRInterface" setter="set_primary_interface" getter="get_primary_interface">
|
||||
</member>
|
||||
<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale">
|
||||
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 meter in the real world.
|
||||
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 real world meter.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
|
@ -118,14 +118,14 @@
|
|||
<argument index="0" name="interface_name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Signal send when a new interface has been added.
|
||||
Emitted when a new interface has been added.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="interface_removed">
|
||||
<argument index="0" name="interface_name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Signal send when an interface is removed.
|
||||
Emitted when an interface is removed.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="tracker_added">
|
||||
|
@ -136,7 +136,7 @@
|
|||
<argument index="2" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Signal send when a new tracker has been added. If you don't use a fixed number of controllers or if you're using ARVRAnchors for an AR solution it is important to react to this signal and add the appropriate ARVRController or ARVRAnchor node related to this new tracker.
|
||||
Emitted when a new tracker has been added. If you don't use a fixed number of controllers or if you're using [ARVRAnchor]s for an AR solution, it is important to react to this signal to add the appropriate [ARVRController] or [ARVRAnchor] nodes related to this new tracker.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="tracker_removed">
|
||||
|
@ -147,19 +147,19 @@
|
|||
<argument index="2" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Signal send when a tracker is removed, you should remove any ARVRController or ARVRAnchor points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one).
|
||||
Emitted when a tracker is removed. You should remove any [ARVRController] or [ARVRAnchor] points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one).
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
<constant name="TRACKER_CONTROLLER" value="1" enum="TrackerType">
|
||||
Our tracker tracks the location of a controller.
|
||||
The tracker tracks the location of a controller.
|
||||
</constant>
|
||||
<constant name="TRACKER_BASESTATION" value="2" enum="TrackerType">
|
||||
Our tracker tracks the location of a base station.
|
||||
The tracker tracks the location of a base station.
|
||||
</constant>
|
||||
<constant name="TRACKER_ANCHOR" value="4" enum="TrackerType">
|
||||
Our tracker tracks the location and size of an AR anchor.
|
||||
The tracker tracks the location and size of an AR anchor.
|
||||
</constant>
|
||||
<constant name="TRACKER_ANY_KNOWN" value="127" enum="TrackerType">
|
||||
Used internally to filter trackers of any known type.
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
var as = AStar.new()
|
||||
as.add_point(1, Vector3(1, 0, 0), 4) # Adds the point (1, 0, 0) with weight_scale 4 and id 1
|
||||
[/codeblock]
|
||||
If there already exists a point for the given id, its position and weight scale are updated to the given values.
|
||||
If there already exists a point for the given [code]id[/code], its position and weight scale are updated to the given values.
|
||||
</description>
|
||||
</method>
|
||||
<method name="are_points_connected" qualifiers="const">
|
||||
|
@ -102,7 +102,7 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Returns the next available point id with no point associated to it.
|
||||
Returns the next available point ID with no point associated to it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_closest_point" qualifiers="const">
|
||||
|
@ -111,7 +111,7 @@
|
|||
<argument index="0" name="to_position" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the id of the closest point to [code]to_position[/code]. Returns -1 if there are no points in the points pool.
|
||||
Returns the ID of the closest point to [code]to_position[/code]. Returns -1 if there are no points in the points pool.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_closest_position_in_segment" qualifiers="const">
|
||||
|
@ -126,7 +126,7 @@
|
|||
as.add_point(1, Vector3(0, 0, 0))
|
||||
as.add_point(2, Vector3(0, 5, 0))
|
||||
as.connect_points(1, 2)
|
||||
var res = as.get_closest_position_in_segment(Vector3(3, 3, 0)) # returns (0, 3, 0)
|
||||
var res = as.get_closest_position_in_segment(Vector3(3, 3, 0)) # Returns (0, 3, 0)
|
||||
[/codeblock]
|
||||
The result is in the segment that goes from [code]y = 0[/code] to [code]y = 5[/code]. It's the closest position in the segment to the given point.
|
||||
</description>
|
||||
|
@ -139,11 +139,11 @@
|
|||
<argument index="1" name="to_id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with the ids of the points that form the path found by AStar between the given points. The array is ordered from the starting point to the ending point of the path.
|
||||
Returns an array with the IDs of the points that form the path found by AStar between the given points. The array is ordered from the starting point to the ending point of the path.
|
||||
[codeblock]
|
||||
var as = AStar.new()
|
||||
as.add_point(1, Vector3(0, 0, 0))
|
||||
as.add_point(2, Vector3(0, 1, 0), 1) # default weight is 1
|
||||
as.add_point(2, Vector3(0, 1, 0), 1) # Default weight is 1
|
||||
as.add_point(3, Vector3(1, 1, 0))
|
||||
as.add_point(4, Vector3(2, 0, 0))
|
||||
|
||||
|
@ -153,7 +153,7 @@
|
|||
as.connect_points(1, 4, false)
|
||||
as.connect_points(5, 4, false)
|
||||
|
||||
var res = as.get_id_path(1, 3) # returns [1, 2, 3]
|
||||
var res = as.get_id_path(1, 3) # Returns [1, 2, 3]
|
||||
[/codeblock]
|
||||
If you change the 2nd point's weight to 3, then the result will be [code][1, 4, 3][/code] instead, because now even though the distance is longer, it's "easier" to get through point 4 than through point 2.
|
||||
</description>
|
||||
|
@ -164,7 +164,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with the ids of the points that form the connect with the given point.
|
||||
Returns an array with the IDs of the points that form the connection with the given point.
|
||||
[codeblock]
|
||||
var as = AStar.new()
|
||||
as.add_point(1, Vector3(0, 0, 0))
|
||||
|
@ -175,7 +175,7 @@
|
|||
as.connect_points(1, 2, true)
|
||||
as.connect_points(1, 3, true)
|
||||
|
||||
var neighbors = as.get_point_connections(1) # returns [2, 3]
|
||||
var neighbors = as.get_point_connections(1) # Returns [2, 3]
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -196,7 +196,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the position of the point associated with the given id.
|
||||
Returns the position of the point associated with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_weight_scale" qualifiers="const">
|
||||
|
@ -205,7 +205,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the weight scale of the point associated with the given id.
|
||||
Returns the weight scale of the point associated with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_points">
|
||||
|
@ -221,7 +221,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether a point associated with the given id exists.
|
||||
Returns whether a point associated with the given [code]id[/code] exists.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_point_disabled" qualifiers="const">
|
||||
|
@ -239,7 +239,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Removes the point associated with the given id from the points pool.
|
||||
Removes the point associated with the given [code]id[/code] from the points pool.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_disabled">
|
||||
|
@ -261,7 +261,7 @@
|
|||
<argument index="1" name="position" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the position for the point with the given id.
|
||||
Sets the [code]position[/code] for the point with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_weight_scale">
|
||||
|
@ -272,7 +272,7 @@
|
|||
<argument index="1" name="weight_scale" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the [code]weight_scale[/code] for the point with the given id.
|
||||
Sets the [code]weight_scale[/code] for the point with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
var as = AStar2D.new()
|
||||
as.add_point(1, Vector2(1, 0), 4) # Adds the point (1, 0) with weight_scale 4 and id 1
|
||||
[/codeblock]
|
||||
If there already exists a point for the given id, its position and weight scale are updated to the given values.
|
||||
If there already exists a point for the given [code]id[/code], its position and weight scale are updated to the given values.
|
||||
</description>
|
||||
</method>
|
||||
<method name="are_points_connected" qualifiers="const">
|
||||
|
@ -79,7 +79,7 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Returns the next available point id with no point associated to it.
|
||||
Returns the next available point ID with no point associated to it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_closest_point" qualifiers="const">
|
||||
|
@ -88,7 +88,7 @@
|
|||
<argument index="0" name="to_position" type="Vector2">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the id of the closest point to [code]to_position[/code]. Returns -1 if there are no points in the points pool.
|
||||
Returns the ID of the closest point to [code]to_position[/code]. Returns -1 if there are no points in the points pool.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_closest_position_in_segment" qualifiers="const">
|
||||
|
@ -103,7 +103,7 @@
|
|||
as.add_point(1, Vector2(0, 0))
|
||||
as.add_point(2, Vector2(0, 5))
|
||||
as.connect_points(1, 2)
|
||||
var res = as.get_closest_position_in_segment(Vector2(3, 3)) # returns (0, 3)
|
||||
var res = as.get_closest_position_in_segment(Vector2(3, 3)) # Returns (0, 3)
|
||||
[/codeblock]
|
||||
The result is in the segment that goes from [code]y = 0[/code] to [code]y = 5[/code]. It's the closest position in the segment to the given point.
|
||||
</description>
|
||||
|
@ -116,11 +116,11 @@
|
|||
<argument index="1" name="to_id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with the ids of the points that form the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path.
|
||||
Returns an array with the IDs of the points that form the path found by AStar2D between the given points. The array is ordered from the starting point to the ending point of the path.
|
||||
[codeblock]
|
||||
var as = AStar2D.new()
|
||||
as.add_point(1, Vector2(0, 0))
|
||||
as.add_point(2, Vector2(0, 1), 1) # default weight is 1
|
||||
as.add_point(2, Vector2(0, 1), 1) # Default weight is 1
|
||||
as.add_point(3, Vector2(1, 1))
|
||||
as.add_point(4, Vector2(2, 0))
|
||||
|
||||
|
@ -130,7 +130,7 @@
|
|||
as.connect_points(1, 4, false)
|
||||
as.connect_points(5, 4, false)
|
||||
|
||||
var res = as.get_id_path(1, 3) # returns [1, 2, 3]
|
||||
var res = as.get_id_path(1, 3) # Returns [1, 2, 3]
|
||||
[/codeblock]
|
||||
If you change the 2nd point's weight to 3, then the result will be [code][1, 4, 3][/code] instead, because now even though the distance is longer, it's "easier" to get through point 4 than through point 2.
|
||||
</description>
|
||||
|
@ -141,7 +141,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with the ids of the points that form the connect with the given point.
|
||||
Returns an array with the IDs of the points that form the connection with the given point.
|
||||
[codeblock]
|
||||
var as = AStar2D.new()
|
||||
as.add_point(1, Vector2(0, 0))
|
||||
|
@ -152,7 +152,7 @@
|
|||
as.connect_points(1, 2, true)
|
||||
as.connect_points(1, 3, true)
|
||||
|
||||
var neighbors = as.get_point_connections(1) # returns [2, 3]
|
||||
var neighbors = as.get_point_connections(1) # Returns [2, 3]
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -173,7 +173,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the position of the point associated with the given id.
|
||||
Returns the position of the point associated with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_weight_scale" qualifiers="const">
|
||||
|
@ -182,7 +182,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the weight scale of the point associated with the given id.
|
||||
Returns the weight scale of the point associated with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_points">
|
||||
|
@ -198,7 +198,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether a point associated with the given id exists.
|
||||
Returns whether a point associated with the given [code]id[/code] exists.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_point_disabled" qualifiers="const">
|
||||
|
@ -216,7 +216,7 @@
|
|||
<argument index="0" name="id" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Removes the point associated with the given id from the points pool.
|
||||
Removes the point associated with the given [code]id[/code] from the points pool.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_disabled">
|
||||
|
@ -238,7 +238,7 @@
|
|||
<argument index="1" name="position" type="Vector2">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the position for the point with the given id.
|
||||
Sets the [code]position[/code] for the point with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_weight_scale">
|
||||
|
@ -249,7 +249,7 @@
|
|||
<argument index="1" name="weight_scale" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the [code]weight_scale[/code] for the point with the given id.
|
||||
Sets the [code]weight_scale[/code] for the point with the given [code]id[/code].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
<argument index="2" name="action" type="String" default="""">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a button with label [i]text[/i] and a custom [i]action[/i] to the dialog and returns the created button. [i]action[/i] will be passed to the [signal custom_action] signal when pressed.
|
||||
If [code]true[/code], [i]right[/i] will place the button to the right of any sibling buttons. Default value: [code]false[/code].
|
||||
Adds a button with label [code]text[/code] and a custom [code]action[/code] to the dialog and returns the created button. [code]action[/code] will be passed to the [signal custom_action] signal when pressed.
|
||||
If [code]true[/code], [code]right[/code] will place the button to the right of any sibling buttons. Default value: [code]false[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_cancel">
|
||||
|
@ -29,7 +29,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a button with label [i]name[/i] and a cancel action to the dialog and returns the created button.
|
||||
Adds a button with label [code]name[/code] and a cancel action to the dialog and returns the created button.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_label">
|
||||
|
@ -43,7 +43,7 @@
|
|||
<return type="Button">
|
||||
</return>
|
||||
<description>
|
||||
Returns the OK Button.
|
||||
Returns the OK [Button] instance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="register_text_enter">
|
||||
|
@ -62,7 +62,7 @@
|
|||
</member>
|
||||
<member name="dialog_hide_on_ok" type="bool" setter="set_hide_on_ok" getter="get_hide_on_ok">
|
||||
If [code]true[/code], the dialog is hidden when the OK button is pressed. You can set it to [code]false[/code] if you want to do e.g. input validation when receiving the [signal confirmed] signal, and handle hiding the dialog in your own logic. Default value: [code]true[/code].
|
||||
Note: Some nodes derived from this class can have a different default value, and potentially their own built-in logic overriding this setting. For example [FileDialog] defaults to [code]false[/code], and has its own input validation code that is called when you press OK, which eventually hides the dialog if the input is valid. As such this property can't be used in [FileDialog] to disable hiding the dialog when pressing OK.
|
||||
[b]Note:[/b] Some nodes derived from this class can have a different default value, and potentially their own built-in logic overriding this setting. For example [FileDialog] defaults to [code]false[/code], and has its own input validation code that is called when you press OK, which eventually hides the dialog if the input is valid. As such, this property can't be used in [FileDialog] to disable hiding the dialog when pressing OK.
|
||||
</member>
|
||||
<member name="dialog_text" type="String" setter="set_text" getter="get_text">
|
||||
The text displayed by the dialog.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Returns [code]true[/code] if an animation if currently being played.
|
||||
Returns [code]true[/code] if an animation is currently being played.
|
||||
</description>
|
||||
</method>
|
||||
<method name="play">
|
||||
|
@ -24,14 +24,14 @@
|
|||
<argument index="1" name="backwards" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Play the animation set in parameter. If no parameter is provided, the current animation is played. Property [code]backwards[/code] plays the animation in reverse if set to [code]true[/code].
|
||||
Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played. If [code]backwards[/code] is [code]true[/code], the animation will be played in reverse.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Stop the current animation (does not reset the frame counter).
|
||||
Stops the current animation (does not reset the frame counter).
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Returns [code]true[/code] if an animation if currently being played.
|
||||
Returns [code]true[/code] if an animation is currently being played.
|
||||
</description>
|
||||
</method>
|
||||
<method name="play">
|
||||
|
@ -22,14 +22,14 @@
|
|||
<argument index="0" name="anim" type="String" default="""">
|
||||
</argument>
|
||||
<description>
|
||||
Play the animation set in parameter. If no parameter is provided, the current animation is played.
|
||||
Plays the animation named [code]anim[/code]. If no [code]anim[/code] is provided, the current animation is played.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Stop the current animation (does not reset the frame counter).
|
||||
Stops the current animation (does not reset the frame counter).
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<argument index="1" name="at_position" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Add a track to the Animation. The track type must be specified as any of the values in the TYPE_* enumeration.
|
||||
Adds a track to the Animation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="animation_track_get_key_animation" qualifiers="const">
|
||||
|
@ -314,7 +314,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Remove a track by specifying the track index.
|
||||
Removes a track by specifying the track index.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_find_key" qualifiers="const">
|
||||
|
@ -327,7 +327,7 @@
|
|||
<argument index="2" name="exact" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Find the key index by time in a given track. Optionally, only find it if the exact time is given.
|
||||
Finds the key index by time in a given track. Optionally, only find it if the exact time is given.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_get_interpolation_loop_wrap" qualifiers="const">
|
||||
|
@ -345,7 +345,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the interpolation type of a given track, from the INTERPOLATION_* enum.
|
||||
Returns the interpolation type of a given track.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_get_key_count" qualifiers="const">
|
||||
|
@ -376,7 +376,7 @@
|
|||
<argument index="1" name="key_idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the transition curve (easing) for a specific key (see built-in math function "ease").
|
||||
Returns the transition curve (easing) for a specific key (see the built-in math function [method @GDScript.ease]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_get_key_value" qualifiers="const">
|
||||
|
@ -396,7 +396,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the path of a track. for more information on the path format, see [method track_set_path]
|
||||
Gets the path of a track. For more information on the path format, see [method track_set_path].
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_get_type" qualifiers="const">
|
||||
|
@ -405,7 +405,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the type of a track.
|
||||
Gets the type of a track.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_insert_key">
|
||||
|
@ -447,7 +447,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Move a track down.
|
||||
Moves a track down.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_move_to">
|
||||
|
@ -467,7 +467,7 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Move a track up.
|
||||
Moves a track up.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_remove_key">
|
||||
|
@ -478,7 +478,7 @@
|
|||
<argument index="1" name="key_idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Remove a key by index in a given track.
|
||||
Removes a key by index in a given track.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_remove_key_at_position">
|
||||
|
@ -489,7 +489,7 @@
|
|||
<argument index="1" name="position" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Remove a key by position (seconds) in a given track.
|
||||
Removes a key by position (seconds) in a given track.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_enabled">
|
||||
|
@ -511,7 +511,7 @@
|
|||
<argument index="1" name="imported" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Set the given track as imported or not.
|
||||
Sets the given track as imported or not.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_interpolation_loop_wrap">
|
||||
|
@ -533,7 +533,7 @@
|
|||
<argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType">
|
||||
</argument>
|
||||
<description>
|
||||
Set the interpolation type of a given track, from the INTERPOLATION_* enum.
|
||||
Sets the interpolation type of a given track.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_key_time">
|
||||
|
@ -546,7 +546,7 @@
|
|||
<argument index="2" name="time" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Set the time of an existing key.
|
||||
Sets the time of an existing key.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_key_transition">
|
||||
|
@ -559,7 +559,7 @@
|
|||
<argument index="2" name="transition" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Set the transition curve (easing) for a specific key (see built-in math function "ease").
|
||||
Sets the transition curve (easing) for a specific key (see the built-in math function [method @GDScript.ease]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_key_value">
|
||||
|
@ -572,7 +572,7 @@
|
|||
<argument index="2" name="value" type="Variant">
|
||||
</argument>
|
||||
<description>
|
||||
Set the value of an existing key.
|
||||
Sets the value of an existing key.
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_set_path">
|
||||
|
@ -583,8 +583,8 @@
|
|||
<argument index="1" name="path" type="NodePath">
|
||||
</argument>
|
||||
<description>
|
||||
Set the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ":".
|
||||
[b]Example:[/b] "character/skeleton:ankle" or "character/mesh:transform/local".
|
||||
Sets the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by [code]":"[/code].
|
||||
For example, [code]"character/skeleton:ankle"[/code] or [code]"character/mesh:transform/local"[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="track_swap">
|
||||
|
@ -656,13 +656,14 @@
|
|||
<argument index="1" name="mode" type="int" enum="Animation.UpdateMode">
|
||||
</argument>
|
||||
<description>
|
||||
Set the update mode (UPDATE_*) of a value track.
|
||||
Sets the update mode ([code]UPDATE_*[/code]) of a value track.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="length" type="float" setter="set_length" getter="get_length">
|
||||
The total length of the animation (in seconds). Note that length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping.
|
||||
The total length of the animation (in seconds).
|
||||
[b]Note:[/b] Length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping.
|
||||
</member>
|
||||
<member name="loop" type="bool" setter="set_loop" getter="has_loop">
|
||||
A flag indicating that the animation must loop. This is uses for correct interpolation of animation cycles, and for hinting the player that it must restart the animation.
|
||||
|
@ -682,7 +683,7 @@
|
|||
Value tracks set values in node properties, but only those which can be Interpolated.
|
||||
</constant>
|
||||
<constant name="TYPE_TRANSFORM" value="1" enum="TrackType">
|
||||
Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are Interpolated.
|
||||
Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are interpolated.
|
||||
</constant>
|
||||
<constant name="TYPE_METHOD" value="2" enum="TrackType">
|
||||
Method tracks call functions with given arguments per key.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Base resource for [AnimationTree] nodes.
|
||||
</brief_description>
|
||||
<description>
|
||||
Base resource for [AnimationTree] nodes. In general it's not used directly but you can create custom ones with custom blending formulas.
|
||||
Base resource for [AnimationTree] nodes. In general, it's not used directly, but you can create custom ones with custom blending formulas.
|
||||
Inherit this when creating nodes mainly for use in [AnimationNodeBlendTree], otherwise [AnimationRootNode] should be used instead.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -16,7 +16,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Add an input to the node. This is only useful for nodes created for use in an [AnimationNodeBlendTree]
|
||||
Adds an input to the node. This is only useful for nodes created for use in an [AnimationNodeBlendTree]
|
||||
</description>
|
||||
</method>
|
||||
<method name="blend_animation">
|
||||
|
@ -80,7 +80,7 @@
|
|||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get the text caption for this node (used by some editors)
|
||||
Gets the text caption for this node (used by some editors).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_child_by_name" qualifiers="virtual">
|
||||
|
@ -89,14 +89,14 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the a child node by index (used by editors inheriting from [AnimationRootNode]).
|
||||
Gets a child node by index (used by editors inheriting from [AnimationRootNode]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_child_nodes" qualifiers="virtual">
|
||||
<return type="Dictionary">
|
||||
</return>
|
||||
<description>
|
||||
Get all children nodes, in order as a name:node dictionary. Only useful when inheriting [AnimationRootNode].
|
||||
Gets all children nodes in order as a [code]name: node[/code] dictionary. Only useful when inheriting [AnimationRootNode].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_input_count" qualifiers="const">
|
||||
|
@ -112,7 +112,7 @@
|
|||
<argument index="0" name="input" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the name of an input by index.
|
||||
Gets the name of an input by index.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_parameter" qualifiers="const">
|
||||
|
@ -121,7 +121,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||
Gets the value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_parameter_default_value" qualifiers="virtual">
|
||||
|
@ -130,14 +130,14 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the default value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||
Gets the default value of a parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_parameter_list" qualifiers="virtual">
|
||||
<return type="Array">
|
||||
</return>
|
||||
<description>
|
||||
Get the property information for parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees. Format is similar to [method Object.get_property_list].
|
||||
Gets the property information for parameter. Parameters are custom local memory used for your nodes, given a resource can be reused in multiple trees. Format is similar to [method Object.get_property_list].
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_filter" qualifiers="virtual">
|
||||
|
@ -176,7 +176,7 @@
|
|||
<argument index="0" name="index" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Remove an input, call this only when inactive.
|
||||
Removes an input, call this only when inactive.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_filter_path">
|
||||
|
@ -187,7 +187,7 @@
|
|||
<argument index="1" name="enable" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Add/Remove a path for the filter.
|
||||
Adds or removes a path for the filter.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_parameter">
|
||||
|
@ -198,7 +198,7 @@
|
|||
<argument index="1" name="value" type="Variant">
|
||||
</argument>
|
||||
<description>
|
||||
Set a custom parameter. These are used as local storage, because resources can be reused across the tree or scenes.
|
||||
Sets a custom parameter. These are used as local storage, because resources can be reused across the tree or scenes.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<argument index="2" name="at_index" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Add a new point that represents a [code]node[/code] on the virtual axis at a given position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code] , the point is inserted at the end of the blend points array.
|
||||
Adds a new point that represents a [code]node[/code] on the virtual axis at a given position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code] , the point is inserted at the end of the blend points array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_blend_point_count" qualifiers="const">
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<argument index="2" name="at_index" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Add a new point that represents a [code]node[/code] at the position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code] , the point is inserted at the end of the blend points array.
|
||||
Adds a new point that represents a [code]node[/code] at the position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code] , the point is inserted at the end of the blend points array.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_triangle">
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
State machine for control of animations.
|
||||
</brief_description>
|
||||
<description>
|
||||
Contains multiple nodes representing animation states, connected in a graph. Nodes transitions can be configured to happen automatically or via code, using a shortest-path algorithm. Retrieve the AnimationNodeStateMachinePlayback object from the [AnimationTree] node to control it programatically. Example:
|
||||
Contains multiple nodes representing animation states, connected in a graph. Node transitions can be configured to happen automatically or via code, using a shortest-path algorithm. Retrieve the AnimationNodeStateMachinePlayback object from the [AnimationTree] node to control it programmatically.
|
||||
[b]Example:[/b]
|
||||
[codeblock]
|
||||
var state_machine = $AnimationTree.get("parameters/playback")
|
||||
state_machine.travel("some_state")
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
Playback control for AnimationNodeStateMachine.
|
||||
</brief_description>
|
||||
<description>
|
||||
Allows control of [AnimationTree] state machines created with [AnimationNodeStateMachine]. Retrieve with [code]$AnimationTree.get("parameters/playback")[/code]. Example:
|
||||
Allows control of [AnimationTree] state machines created with [AnimationNodeStateMachine]. Retrieve with [code]$AnimationTree.get("parameters/playback")[/code].
|
||||
[b]Example:[/b]
|
||||
[codeblock]
|
||||
var state_machine = $AnimationTree.get("parameters/playback")
|
||||
state_machine.travel("some_state")
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Container and player of [Animation] resources.
|
||||
</brief_description>
|
||||
<description>
|
||||
An animation player is used for general purpose playback of [Animation] resources. It contains a dictionary of animations (referenced by name) and custom blend times between their transitions. Additionally, animations can be played and blended in different channels.
|
||||
An animation player is used for general-purpose playback of [Animation] resources. It contains a dictionary of animations (referenced by name) and custom blend times between their transitions. Additionally, animations can be played and blended in different channels.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/getting_started/step_by_step/animations.html</link>
|
||||
|
@ -55,7 +55,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
[AnimationPlayer] caches animated nodes. It may not notice if a node disappears, so clear_caches forces it to update the cache again.
|
||||
[AnimationPlayer] caches animated nodes. It may not notice if a node disappears; [method clear_caches] forces it to update the cache again.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_queue">
|
||||
|
@ -98,14 +98,14 @@
|
|||
<argument index="1" name="anim_to" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the blend time (in seconds) between two animations, referenced by their names.
|
||||
Gets the blend time (in seconds) between two animations, referenced by their names.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_playing_speed" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Get the actual playing speed of current animation or 0 if not playing. This speed is the [code]playback_speed[/code] property multiplied by [code]custom_speed[/code] argument specified when calling the [code]play[/code] method.
|
||||
Gets the actual playing speed of current animation or 0 if not playing. This speed is the [code]playback_speed[/code] property multiplied by [code]custom_speed[/code] argument specified when calling the [code]play[/code] method.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_queue">
|
||||
|
@ -142,8 +142,8 @@
|
|||
<argument index="3" name="from_end" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Play the animation with key [code]name[/code]. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being [code]true[/code] can play the animation backwards.
|
||||
If the animation has been paused by [code]stop(true)[/code] it will be resumed. Calling [code]play()[/code] without arguments will also resume the animation.
|
||||
Plays the animation with key [code]name[/code]. Custom speed and blend times can be set. If [code]custom_speed[/code] is negative and [code]from_end[/code] is [code]true[/code], the animation will play backwards.
|
||||
If the animation has been paused by [method stop], it will be resumed. Calling [method play] without arguments will also resume the animation.
|
||||
</description>
|
||||
</method>
|
||||
<method name="play_backwards">
|
||||
|
@ -154,8 +154,8 @@
|
|||
<argument index="1" name="custom_blend" type="float" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Play the animation with key [code]name[/code] in reverse.
|
||||
If the animation has been paused by [code]stop(true)[/code] it will be resumed backwards. Calling [code]play_backwards()[/code] without arguments will also resume the animation backwards.
|
||||
Plays the animation with key [code]name[/code] in reverse.
|
||||
If the animation has been paused by [code]stop(true)[/code], it will be resumed backwards. Calling [code]play_backwards()[/code] without arguments will also resume the animation backwards.
|
||||
</description>
|
||||
</method>
|
||||
<method name="queue">
|
||||
|
@ -164,7 +164,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Queue an animation for playback once the current one is done.
|
||||
Queues an animation for playback once the current one is done.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_animation">
|
||||
|
@ -173,7 +173,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the animation with key [code]name[/code].
|
||||
Removes the animation with key [code]name[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="rename_animation">
|
||||
|
@ -184,7 +184,7 @@
|
|||
<argument index="1" name="newname" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Rename an existing animation with key [code]name[/code] to [code]newname[/code].
|
||||
Renames an existing animation with key [code]name[/code] to [code]newname[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="seek">
|
||||
|
@ -195,7 +195,7 @@
|
|||
<argument index="1" name="update" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Seek the animation to the [code]seconds[/code] point in time (in seconds). If [code]update[/code] is [code]true[/code], the animation updates too, otherwise it updates at process time. Events between the current frame and [code]seconds[/code] are skipped.
|
||||
Seeks the animation to the [code]seconds[/code] point in time (in seconds). If [code]update[/code] is [code]true[/code], the animation updates too, otherwise it updates at process time. Events between the current frame and [code]seconds[/code] are skipped.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_blend_time">
|
||||
|
@ -208,7 +208,7 @@
|
|||
<argument index="2" name="sec" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Specify a blend time (in seconds) between two animations, referenced by their names.
|
||||
Specifies a blend time (in seconds) between two animations, referenced by their names.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
|
@ -217,8 +217,8 @@
|
|||
<argument index="0" name="reset" type="bool" default="true">
|
||||
</argument>
|
||||
<description>
|
||||
Stop the currently playing animation. If [code]reset[/code] is [code]true[/code], the animation position is reset to [code]0[/code] and the playback speed is reset to [code]1.0[/code].
|
||||
If [code]reset[/code] is [code]false[/code], then calling [code]play()[/code] without arguments or [code]play("same_as_before")[/code] will resume the animation. Works the same for the [code]play_backwards()[/code] method.
|
||||
Stops the currently playing animation. If [code]reset[/code] is [code]true[/code], the animation position is reset to [code]0[/code] and the playback speed is reset to [code]1.0[/code].
|
||||
If [code]reset[/code] is [code]false[/code], then calling [method play] without arguments or [code]play("same_as_before")[/code] will resume the animation. Works the same for the [method play_backwards].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
@ -251,7 +251,7 @@
|
|||
The process notification in which to update animations. Default value: [constant ANIMATION_PROCESS_IDLE].
|
||||
</member>
|
||||
<member name="playback_speed" type="float" setter="set_speed_scale" getter="get_speed_scale">
|
||||
The speed scaling ratio. For instance, if this value is 1 then the animation plays at normal speed. If it's 0.5 then it plays at half speed. If it's 2 then it plays at double speed. Default value: [code]1[/code].
|
||||
The speed scaling ratio. For instance, if this value is 1, then the animation plays at normal speed. If it's 0.5, then it plays at half speed. If it's 2, then it plays at double speed. Default value: [code]1[/code].
|
||||
</member>
|
||||
<member name="root_node" type="NodePath" setter="set_root" getter="get_root">
|
||||
The node from which node path references will travel. Default value: [code]".."[/code].
|
||||
|
@ -294,7 +294,7 @@
|
|||
Process animation during the idle process.
|
||||
</constant>
|
||||
<constant name="ANIMATION_PROCESS_MANUAL" value="2" enum="AnimationProcessMode">
|
||||
Do not process animation. Use the 'advance' method to process the animation manually.
|
||||
Do not process animation. Use [method advance] to process the animation manually.
|
||||
</constant>
|
||||
<constant name="ANIMATION_METHOD_CALL_DEFERRED" value="0" enum="AnimationMethodCallMode">
|
||||
Batch method calls during the animation process, then do the calls after events are processed. This avoids bugs involving deleting nodes or modifying the AnimationPlayer while playing.
|
||||
|
|
|
@ -238,7 +238,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Sets mix amount of a Mix node given its name and value.
|
||||
A Mix node adds input b to input a by a the amount given by ratio.
|
||||
A Mix node adds input b to input a by the amount given by ratio.
|
||||
</description>
|
||||
</method>
|
||||
<method name="node_exists" qualifiers="const">
|
||||
|
@ -285,7 +285,7 @@
|
|||
<argument index="0" name="id" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the node type, will return from NODE_* enum.
|
||||
Gets the node type, will return from [code]NODE_*[/code] enum.
|
||||
</description>
|
||||
</method>
|
||||
<method name="node_rename">
|
||||
|
@ -503,7 +503,7 @@
|
|||
<argument index="1" name="seconds" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the time seek value of the TimeSeek node with name [code]id[/code] to [code]seconds[/code]
|
||||
Sets the time seek value of the TimeSeek node with name [code]id[/code] to [code]seconds[/code].
|
||||
This functions as a seek in the [Animation] or the blend or mix of [Animation]s input in it.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Area" inherits="CollisionObject" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
General purpose area node for detection and 3D physics influence.
|
||||
General-purpose area node for detection and 3D physics influence.
|
||||
</brief_description>
|
||||
<description>
|
||||
3D area that detects [CollisionObject] nodes overlapping, entering, or exiting. Can also alter or override local physics parameters (gravity, damping).
|
||||
|
@ -47,7 +47,8 @@
|
|||
<argument index="0" name="area" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
If [code]true[/code], the given area overlaps the Area. Note that the result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
If [code]true[/code], the given area overlaps the Area.
|
||||
[b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="overlaps_body" qualifiers="const">
|
||||
|
@ -56,7 +57,8 @@
|
|||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
If [code]true[/code], the given physics body overlaps the Area. Note that the result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
If [code]true[/code], the given physics body overlaps the Area.
|
||||
[b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody] or a [GridMap] instance (while GridMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
</description>
|
||||
</method>
|
||||
|
@ -106,7 +108,7 @@
|
|||
The falloff factor for point gravity. The greater the value, the faster gravity decreases with distance.
|
||||
</member>
|
||||
<member name="gravity_point" type="bool" setter="set_gravity_is_point" getter="is_gravity_a_point">
|
||||
If [code]true[/code], gravity is calculated from a point (set via [member gravity_vec]). Also see [member space_override]. Default value: [code]false[/code].
|
||||
If [code]true[/code], gravity is calculated from a point (set via [member gravity_vec]). See also [member space_override]. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="gravity_vec" type="Vector3" setter="set_gravity_vector" getter="get_gravity_vector">
|
||||
The area's gravity vector (not normalized). If gravity is a point (see [member gravity_point]), this will be the point of attraction.
|
||||
|
|
|
@ -47,7 +47,8 @@
|
|||
<argument index="0" name="area" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
If [code]true[/code], the given area overlaps the Area2D. Note that the result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
If [code]true[/code], the given area overlaps the Area2D.
|
||||
[b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
</description>
|
||||
</method>
|
||||
<method name="overlaps_body" qualifiers="const">
|
||||
|
@ -56,7 +57,8 @@
|
|||
<argument index="0" name="body" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
If [code]true[/code], the given physics body overlaps the Area2D. Note that the result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
If [code]true[/code], the given physics body overlaps the Area2D.
|
||||
[b]Note:[/b] The result of this test is not immediate after moving objects. For performance, list of overlaps is updated once per frame and before the physics step. Consider using signals instead.
|
||||
The [code]body[/code] argument can either be a [PhysicsBody2D] or a [TileMap] instance (while TileMaps are not physics body themselves, they register their tiles with collision shapes as a virtual physics body).
|
||||
</description>
|
||||
</method>
|
||||
|
@ -106,7 +108,7 @@
|
|||
The falloff factor for point gravity. The greater the value, the faster gravity decreases with distance.
|
||||
</member>
|
||||
<member name="gravity_point" type="bool" setter="set_gravity_is_point" getter="is_gravity_a_point">
|
||||
If [code]true[/code], gravity is calculated from a point (set via [member gravity_vec]). Also see [member space_override]. Default value: [code]false[/code].
|
||||
If [code]true[/code], gravity is calculated from a point (set via [member gravity_vec]). See also [member space_override]. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="gravity_vec" type="Vector2" setter="set_gravity_vector" getter="get_gravity_vector">
|
||||
The area's gravity vector (not normalized). If gravity is a point (see [member gravity_point]), this will be the point of attraction.
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
Generic array datatype.
|
||||
</brief_description>
|
||||
<description>
|
||||
Generic array which can contain several elements of any type, accessible by a numerical index starting at 0. Negative indices can be used to count from the back, like in Python (-1 is the last element, -2 the second to last, etc.). Example:
|
||||
Generic array which can contain several elements of any type, accessible by a numerical index starting at 0. Negative indices can be used to count from the back, like in Python (-1 is the last element, -2 the second to last, etc.).
|
||||
[b]Example:[/b]
|
||||
[codeblock]
|
||||
var array = ["One", 2, 3, "Four"]
|
||||
print(array[0]) # One
|
||||
|
@ -103,7 +104,8 @@
|
|||
<argument index="1" name="before" type="bool" default="True">
|
||||
</argument>
|
||||
<description>
|
||||
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search. Optionally, a before specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. Note that calling bsearch on an unsorted array results in unexpected behavior.
|
||||
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search. Optionally, a [code]before[/code] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array.
|
||||
[b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior.
|
||||
</description>
|
||||
</method>
|
||||
<method name="bsearch_custom">
|
||||
|
@ -118,12 +120,13 @@
|
|||
<argument index="3" name="before" type="bool" default="True">
|
||||
</argument>
|
||||
<description>
|
||||
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search and a custom comparison method. Optionally, a before specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. The custom method receives two arguments (an element from the array and the value searched for) and must return [code]true[/code] if the first argument is less than the second, and return [code]false[/code] otherwise. Note that calling bsearch on an unsorted array results in unexpected behavior.
|
||||
Finds the index of an existing value (or the insertion index that maintains sorting order, if the value is not yet present in the array) using binary search and a custom comparison method. Optionally, a [code]before[/code] specifier can be passed. If [code]false[/code], the returned index comes after all existing entries of the value in the array. The custom method receives two arguments (an element from the array and the value searched for) and must return [code]true[/code] if the first argument is less than the second, and return [code]false[/code] otherwise.
|
||||
[b]Note:[/b] Calling [method bsearch] on an unsorted array results in unexpected behavior.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear">
|
||||
<description>
|
||||
Clears the array (resizes to 0).
|
||||
Clears the array. This is equivalent to using [method resize] with a size of [code]0[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="count">
|
||||
|
@ -275,7 +278,7 @@
|
|||
<argument index="0" name="size" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Resizes the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are Null.
|
||||
Resizes the array to contain a different number of elements. If the array size is smaller, elements are cleared, if bigger, new elements are [code]null[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="rfind">
|
||||
|
@ -303,7 +306,8 @@
|
|||
</method>
|
||||
<method name="sort">
|
||||
<description>
|
||||
Sorts the array. Note: strings are sorted in alphabetical, not natural order.
|
||||
Sorts the array.
|
||||
[b]Note:[/b] strings are sorted in alphabetical, not natural order.
|
||||
</description>
|
||||
</method>
|
||||
<method name="sort_custom">
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Add name for a blend shape that will be added with [method add_surface_from_arrays]. Must be called before surface is added.
|
||||
Adds name for a blend shape that will be added with [method add_surface_from_arrays]. Must be called before surface is added.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_surface_from_arrays">
|
||||
|
@ -57,7 +57,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Remove all blend shapes from this [ArrayMesh].
|
||||
Removes all blend shapes from this [ArrayMesh].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_blend_shape_count" qualifiers="const">
|
||||
|
@ -100,7 +100,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the index of the first surface with this name held within this [ArrayMesh]. If none are found -1 is returned.
|
||||
Returns the index of the first surface with this name held within this [ArrayMesh]. If none are found, -1 is returned.
|
||||
</description>
|
||||
</method>
|
||||
<method name="surface_get_array_index_len" qualifiers="const">
|
||||
|
@ -136,7 +136,7 @@
|
|||
<argument index="0" name="surf_idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the name assigned to this surface.
|
||||
Gets the name assigned to this surface.
|
||||
</description>
|
||||
</method>
|
||||
<method name="surface_get_primitive_type" qualifiers="const">
|
||||
|
@ -154,7 +154,7 @@
|
|||
<argument index="0" name="surf_idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Remove a surface at position surf_idx, shifting greater surfaces one surf_idx slot down.
|
||||
Removes a surface at position [code]surf_idx[/code], shifting greater surfaces one [code]surf_idx[/code] slot down.
|
||||
</description>
|
||||
</method>
|
||||
<method name="surface_set_name">
|
||||
|
@ -165,7 +165,7 @@
|
|||
<argument index="1" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Set a name for a given surface.
|
||||
Sets a name for a given surface.
|
||||
</description>
|
||||
</method>
|
||||
<method name="surface_update_region">
|
||||
|
@ -178,7 +178,8 @@
|
|||
<argument index="2" name="data" type="PoolByteArray">
|
||||
</argument>
|
||||
<description>
|
||||
Updates a specified region of mesh arrays on GPU. Warning: only use if you know what you are doing. You can easily cause crashes by calling this function with improper arguments.
|
||||
Updates a specified region of mesh arrays on the GPU.
|
||||
[b]Warning:[/b] Only use if you know what you are doing. You can easily cause crashes by calling this function with improper arguments.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
If [code]true[/code], clips the area outside of the region to avoid bleeding of the surrounding texture pixels.
|
||||
</member>
|
||||
<member name="margin" type="Rect2" setter="set_margin" getter="get_margin">
|
||||
The margin around the region. The [Rect2]'s 'size' parameter ('w' and 'h' in the editor) resizes the texture so it fits within the margin.
|
||||
The margin around the region. The [Rect2]'s [member Rect2.size] parameter ("w" and "h" in the editor) resizes the texture so it fits within the margin.
|
||||
</member>
|
||||
<member name="region" type="Rect2" setter="set_region" getter="get_region">
|
||||
The AtlasTexture's used region.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioBusLayout" inherits="Resource" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Stores information about the audiobusses.
|
||||
Stores information about the audio buses.
|
||||
</brief_description>
|
||||
<description>
|
||||
Stores position, muting, solo, bypass, effects, effect position, volume, and the connections between buses. See [AudioServer] for usage.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffect" inherits="Resource" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Audio Effect For Audio.
|
||||
Audio effect for audio.
|
||||
</brief_description>
|
||||
<description>
|
||||
Base resource for audio bus. Applies an audio effect on the bus that the resource is applied on.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectAmplify" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Amplify audio effect to an Audio bus.
|
||||
Adds an amplifying audio effect to an audio bus.
|
||||
Increases or decreases the volume of the selected audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
|
@ -13,7 +13,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="volume_db" type="float" setter="set_volume_db" getter="get_volume_db">
|
||||
Amount of amplification. Positive values make the sound louder, negative values make it quieter. Value can range from -80 to 24. Default value: [code]0[/code].
|
||||
Amount of amplification in decibels. Positive values make the sound louder, negative values make it quieter. Value can range from -80 to 24. Default value: [code]0[/code].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectBandLimitFilter" inherits="AudioEffectFilter" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a band limit filter to the Audio Bus.
|
||||
Adds a band limit filter to the audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Limits the frequencies in a range around the [member AudioEffectFilter.cutoff_hz] and allows frequencies outside of this range to pass.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectBandPassFilter" inherits="AudioEffectFilter" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a band pass filter to the Audio Bus.
|
||||
Adds a band pass filter to the audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Attenuates the frequencies inside of a range around the [member AudioEffectFilter.cutoff_hz] and cuts frequencies outside of this band.
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectCompressor" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Compressor audio effect to an Audio bus.
|
||||
Adds a compressor audio effect to an audio bus.
|
||||
Reduces sounds that exceed a certain threshold level, smooths out the dynamics and increases the overall volume.
|
||||
</brief_description>
|
||||
<description>
|
||||
Dynamic range compressor reduces the level of the sound when the amplitude goes over a certain threshold in Decibels. One of the main uses of a compressor is to increase the dynamic range by clipping as little as possible (when sound goes over 0dB).
|
||||
Compressor has many uses in the mix:
|
||||
- In the Master bus to compress the whole output (Although a [AudioEffectLimiter] is probably better)
|
||||
- In the Master bus to compress the whole output (although an [AudioEffectLimiter] is probably better).
|
||||
- In voice channels to ensure they sound as balanced as possible.
|
||||
- Sidechained. Sidechained, which can reduce the sound level sidechained with another audio bus for threshold detection.. This technique is very common in video game mixing to download the level of Music/SFX while voices are being heard.
|
||||
- Sidechained. This can reduce the sound level sidechained with another audio bus for threshold detection. This technique is common in video game mixing to the level of music and SFX while voices are being heard.
|
||||
- Accentuates transients by using a wider attack, making effects sound more punchy.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -18,7 +18,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="attack_us" type="float" setter="set_attack_us" getter="get_attack_us">
|
||||
Compressor's reaction time when the signal exceeds the threshold. Value can range from 20 to 2000. Default value: [code]20ms[/code].
|
||||
Compressor's reaction time when the signal exceeds the threshold, in microseconds. Value can range from 20 to 2000. Default value: [code]20us[/code].
|
||||
</member>
|
||||
<member name="gain" type="float" setter="set_gain" getter="get_gain">
|
||||
Gain applied to the output signal.
|
||||
|
@ -27,10 +27,10 @@
|
|||
Balance between original signal and effect signal. Value can range from 0 (totally dry) to 1 (totally wet). Default value: [code]1[/code].
|
||||
</member>
|
||||
<member name="ratio" type="float" setter="set_ratio" getter="get_ratio">
|
||||
Amount of compression applied to the audio once it passes the threshold level. The higher the ratio the more the loud parts of the audio will be compressed. Value can range from 1 to 48. Default value: [code]4[/code].
|
||||
Amount of compression applied to the audio once it passes the threshold level. The higher the ratio, the more the loud parts of the audio will be compressed. Value can range from 1 to 48. Default value: [code]4[/code].
|
||||
</member>
|
||||
<member name="release_ms" type="float" setter="set_release_ms" getter="get_release_ms">
|
||||
Compressor's delay time to stop reducing the signal after the signal level falls below the threshold. Value can range from 20 to 2000. Default value: [code]250ms[/code].
|
||||
Compressor's delay time to stop reducing the signal after the signal level falls below the threshold, in milliseconds. Value can range from 20 to 2000. Default value: [code]250ms[/code].
|
||||
</member>
|
||||
<member name="sidechain" type="String" setter="set_sidechain" getter="get_sidechain">
|
||||
Reduce the sound level using another audio bus for threshold detection.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectDelay" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Delay audio effect to an Audio bus. Plays input signal back after a period of time.
|
||||
Adds a delay audio effect to an audio bus. Plays input signal back after a period of time.
|
||||
Two tap delay and feedback options.
|
||||
</brief_description>
|
||||
<description>
|
||||
|
@ -25,13 +25,13 @@
|
|||
Sound level for [code]tap1[/code]. Default value: [code]-6 dB[/code].
|
||||
</member>
|
||||
<member name="feedback/lowpass" type="float" setter="set_feedback_lowpass" getter="get_feedback_lowpass">
|
||||
Low-pass filter for feedback. Frequencies below the Low Cut value are filtered out of the source signal. Default value: [code]16000[/code].
|
||||
Low-pass filter for feedback, in Hz. Frequencies below this value are filtered out of the source signal. Default value: [code]16000[/code].
|
||||
</member>
|
||||
<member name="tap1/active" type="bool" setter="set_tap1_active" getter="is_tap1_active">
|
||||
If [code]true[/code], [code]tap1[/code] will be enabled. Default value: [code]true[/code].
|
||||
</member>
|
||||
<member name="tap1/delay_ms" type="float" setter="set_tap1_delay_ms" getter="get_tap1_delay_ms">
|
||||
[b]Tap1[/b] delay time in milliseconds. Default value: [code]250ms[/code].
|
||||
[code]tap1[/code] delay time in milliseconds. Default value: [code]250ms[/code].
|
||||
</member>
|
||||
<member name="tap1/level_db" type="float" setter="set_tap1_level_db" getter="get_tap1_level_db">
|
||||
Sound level for [code]tap1[/code]. Default value: [code]-6 dB[/code].
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectDistortion" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Distortion audio effect to an Audio bus.
|
||||
Adds a distortion audio effect to an Audio bus.
|
||||
Modify the sound to make it dirty.
|
||||
</brief_description>
|
||||
<description>
|
||||
Modify the sound and make it dirty. Different types are available : clip, tan, lofi (bit crushing), overdrive, or waveshape.
|
||||
Modify the sound and make it dirty. Different types are available: clip, tan, lo-fi (bit crushing), overdrive, or waveshape.
|
||||
By distorting the waveform the frequency content change, which will often make the sound "crunchy" or "abrasive". For games, it can simulate sound coming from some saturated device or speaker very efficiently.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -17,7 +17,7 @@
|
|||
Distortion power. Value can range from 0 to 1. Default value: [code]0[/code].
|
||||
</member>
|
||||
<member name="keep_hf_hz" type="float" setter="set_keep_hf_hz" getter="get_keep_hf_hz">
|
||||
High-pass filter. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000. Default value: [code]16000[/code].
|
||||
High-pass filter, in Hz. Frequencies higher than this value will not be affected by the distortion. Value can range from 1 to 20000. Default value: [code]16000[/code].
|
||||
</member>
|
||||
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="AudioEffectDistortion.Mode">
|
||||
Distortion type. Default value: [constant MODE_CLIP].
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Use it to create a custom equalizer if [AudioEffectEQ6], [AudioEffectEQ10] or [AudioEffectEQ21] don't fit your needs.
|
||||
</brief_description>
|
||||
<description>
|
||||
AudioEffectEQ gives you control over frequencies. Use it to compensate for existing deficiencies in audio. AudioEffectEQ are very useful on the Master Bus to completely master a mix and give it character. They are also very useful when a game is run on a mobile device, to adjust the mix to that kind of speakers (it can be added but disabled when headphones are plugged).
|
||||
AudioEffectEQ gives you control over frequencies. Use it to compensate for existing deficiencies in audio. AudioEffectEQs are useful on the Master bus to completely master a mix and give it more character. They are also useful when a game is run on a mobile device, to adjust the mix to that kind of speakers (it can be added but disabled when headphones are plugged).
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -5,17 +5,17 @@
|
|||
Each frequency can be modulated between -60/+24 dB.
|
||||
</brief_description>
|
||||
<description>
|
||||
Frequency bands :
|
||||
Band 1 : 31 Hz
|
||||
Band 2 : 62 Hz
|
||||
Band 3 : 125 Hz
|
||||
Band 4 : 250 Hz
|
||||
Band 5 : 500 Hz
|
||||
Band 6 : 1000 Hz
|
||||
Band 7 : 2000 Hz
|
||||
Band 8 : 4000 Hz
|
||||
Band 9 : 8000 Hz
|
||||
Band 10 : 16000 Hz
|
||||
Frequency bands:
|
||||
Band 1: 31 Hz
|
||||
Band 2: 62 Hz
|
||||
Band 3: 125 Hz
|
||||
Band 4: 250 Hz
|
||||
Band 5: 500 Hz
|
||||
Band 6: 1000 Hz
|
||||
Band 7: 2000 Hz
|
||||
Band 8: 4000 Hz
|
||||
Band 9: 8000 Hz
|
||||
Band 10: 16000 Hz
|
||||
See also [AudioEffectEQ], [AudioEffectEQ6], [AudioEffectEQ21].
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -5,28 +5,28 @@
|
|||
Each frequency can be modulated between -60/+24 dB.
|
||||
</brief_description>
|
||||
<description>
|
||||
Frequency bands :
|
||||
Band 1 : 22 Hz
|
||||
Band 2 : 32 Hz
|
||||
Band 3 : 44 Hz
|
||||
Band 4 : 63 Hz
|
||||
Band 5 : 90 Hz
|
||||
Band 6 : 125 Hz
|
||||
Band 7 : 175 Hz
|
||||
Band 8 : 250 Hz
|
||||
Band 9 : 350 Hz
|
||||
Band 10 : 500 Hz
|
||||
Band 11 : 700 Hz
|
||||
Band 12 : 1000 Hz
|
||||
Band 13 : 1400 Hz
|
||||
Band 14 : 2000 Hz
|
||||
Band 15 : 2800 Hz
|
||||
Band 16 : 4000 Hz
|
||||
Band 17 : 5600 Hz
|
||||
Band 18 : 8000 Hz
|
||||
Band 19 : 11000 Hz
|
||||
Band 20 : 16000 Hz
|
||||
Band 21 : 22000 Hz
|
||||
Frequency bands:
|
||||
Band 1: 22 Hz
|
||||
Band 2: 32 Hz
|
||||
Band 3: 44 Hz
|
||||
Band 4: 63 Hz
|
||||
Band 5: 90 Hz
|
||||
Band 6: 125 Hz
|
||||
Band 7: 175 Hz
|
||||
Band 8: 250 Hz
|
||||
Band 9: 350 Hz
|
||||
Band 10: 500 Hz
|
||||
Band 11: 700 Hz
|
||||
Band 12: 1000 Hz
|
||||
Band 13: 1400 Hz
|
||||
Band 14: 2000 Hz
|
||||
Band 15: 2800 Hz
|
||||
Band 16: 4000 Hz
|
||||
Band 17: 5600 Hz
|
||||
Band 18: 8000 Hz
|
||||
Band 19: 11000 Hz
|
||||
Band 20: 16000 Hz
|
||||
Band 21: 22000 Hz
|
||||
See also [AudioEffectEQ], [AudioEffectEQ6], [AudioEffectEQ10].
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
Each frequency can be modulated between -60/+24 dB.
|
||||
</brief_description>
|
||||
<description>
|
||||
Frequency bands :
|
||||
Band 1 : 32 Hz
|
||||
Band 2 : 100 Hz
|
||||
Band 3 : 320 Hz
|
||||
Band 4 : 1000 Hz
|
||||
Band 5 : 3200 Hz
|
||||
Band 6 : 10000 Hz
|
||||
Frequency bands:
|
||||
Band 1: 32 Hz
|
||||
Band 2: 100 Hz
|
||||
Band 3: 320 Hz
|
||||
Band 4: 1000 Hz
|
||||
Band 5: 3200 Hz
|
||||
Band 6: 10000 Hz
|
||||
See also [AudioEffectEQ], [AudioEffectEQ10], [AudioEffectEQ21].
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectFilter" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a filter to the Audio Bus.
|
||||
Adds a filter to the audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Allows frequencies other than the [member cutoff_hz] to pass.
|
||||
|
@ -12,7 +12,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="cutoff_hz" type="float" setter="set_cutoff" getter="get_cutoff">
|
||||
Threshold frequency for the filter.
|
||||
Threshold frequency for the filter, in Hz.
|
||||
</member>
|
||||
<member name="db" type="int" setter="set_db" getter="get_db" enum="AudioEffectFilter.FilterDB">
|
||||
</member>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectHighPassFilter" inherits="AudioEffectFilter" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a high pass filter to the Audio Bus.
|
||||
Adds a high-pass filter to the Audio Bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Cuts frequencies lower than the [member AudioEffectFilter.cutoff_hz] and allows higher frequencies to pass.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectLimiter" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a soft clip Limiter audio effect to an Audio bus.
|
||||
Adds a soft-clip limiter audio effect to an Audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
A limiter is similar to a compressor, but it's less flexible and designed to disallow sound going over a given dB threshold. Adding one in the Master Bus is always recommended to reduce the effects of clipping.
|
||||
A limiter is similar to a compressor, but it's less flexible and designed to disallow sound going over a given dB threshold. Adding one in the Master bus is always recommended to reduce the effects of clipping.
|
||||
Soft clipping starts to reduce the peaks a little below the threshold level and progressively increases its effect as the input level increases such that the threshold is never exceeded.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -13,15 +13,15 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="ceiling_db" type="float" setter="set_ceiling_db" getter="get_ceiling_db">
|
||||
The waveform's maximum allowed value. Value can range from -20 to -0.1. Default value: [code]-0.1dB[/code].
|
||||
The waveform's maximum allowed value, in decibels. Value can range from -20 to -0.1. Default value: [code]-0.1dB[/code].
|
||||
</member>
|
||||
<member name="soft_clip_db" type="float" setter="set_soft_clip_db" getter="get_soft_clip_db">
|
||||
Applies a gain to the limited waves. Value can range from 0 to 6. Default value: [code]2dB[/code].
|
||||
Applies a gain to the limited waves, in decibels. Value can range from 0 to 6. Default value: [code]2dB[/code].
|
||||
</member>
|
||||
<member name="soft_clip_ratio" type="float" setter="set_soft_clip_ratio" getter="get_soft_clip_ratio">
|
||||
</member>
|
||||
<member name="threshold_db" type="float" setter="set_threshold_db" getter="get_threshold_db">
|
||||
Threshold from which the limiter begins to be active. Value can range from -30 to 0. Default value: [code]0dB[/code].
|
||||
Threshold from which the limiter begins to be active, in decibels. Value can range from -30 to 0. Default value: [code]0dB[/code].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectLowPassFilter" inherits="AudioEffectFilter" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a low pass filter to the Audio Bus.
|
||||
Adds a low-pass filter to the Audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Cuts frequencies higher than the [member AudioEffectFilter.cutoff_hz] and allows lower frequencies to pass.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectNotchFilter" inherits="AudioEffectFilter" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a notch filter to the Audio Bus.
|
||||
Adds a notch filter to the Audio bus.
|
||||
</brief_description>
|
||||
<description>
|
||||
Attenuates frequencies in a narrow band around the [member AudioEffectFilter.cutoff_hz] and cuts frequencies outside of this range.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectPanner" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Panner audio effect to an Audio bus. Pans sound left or right.
|
||||
Adds a panner audio effect to an Audio bus. Pans sound left or right.
|
||||
</brief_description>
|
||||
<description>
|
||||
Determines how much of an audio signal is sent to the left and right buses.
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectPhaser" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Phaser audio effect to an Audio bus.
|
||||
Adds a phaser audio effect to an Audio bus.
|
||||
Combines the original signal with a copy that is slightly out of phase with the original.
|
||||
</brief_description>
|
||||
<description>
|
||||
Combines phase-shifted signals with the original signal. The movement of the phase-shifted signals is controlled using a Low Frequency Oscillator.
|
||||
Combines phase-shifted signals with the original signal. The movement of the phase-shifted signals is controlled using a low-frequency oscillator.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -19,13 +19,13 @@
|
|||
Output percent of modified sound. Value can range from 0.1 to 0.9. Default value: [code]0.7[/code].
|
||||
</member>
|
||||
<member name="range_max_hz" type="float" setter="set_range_max_hz" getter="get_range_max_hz">
|
||||
Determines the maximum frequency affected by the LFO modulations. Value can range from 10 to 10000. Default value: [code]1600hz[/code].
|
||||
Determines the maximum frequency affected by the LFO modulations, in Hz. Value can range from 10 to 10000. Default value: [code]1600hz[/code].
|
||||
</member>
|
||||
<member name="range_min_hz" type="float" setter="set_range_min_hz" getter="get_range_min_hz">
|
||||
Determines the minimum frequency affected by the LFO modulations. Value can range from 10 to 10000. Default value: [code]440hz[/code].
|
||||
Determines the minimum frequency affected by the LFO modulations, in Hz. Value can range from 10 to 10000. Default value: [code]440hz[/code].
|
||||
</member>
|
||||
<member name="rate_hz" type="float" setter="set_rate_hz" getter="get_rate_hz">
|
||||
Adjusts the rate at which the effect sweeps up and down across the frequency range.
|
||||
Adjusts the rate in Hz at which the effect sweeps up and down across the frequency range.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectPitchShift" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Pitch shift audio effect to an Audio bus.
|
||||
Adds a pitch-shifting audio effect to an Audio bus.
|
||||
Raises or lowers the pitch of original sound.
|
||||
</brief_description>
|
||||
<description>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioEffectReverb" inherits="AudioEffect" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Adds a Reverb audio effect to an Audio bus.
|
||||
Adds a reverberation audio effect to an Audio bus.
|
||||
Simulates the sound of acoustic environments such as rooms, concert halls, caverns, or an open spaces.
|
||||
</brief_description>
|
||||
<description>
|
||||
|
@ -25,7 +25,7 @@
|
|||
Output percent of predelay. Value can range from 0 to 1. Default value: [code]1[/code].
|
||||
</member>
|
||||
<member name="predelay_msec" type="float" setter="set_predelay_msec" getter="get_predelay_msec">
|
||||
Time between the original signal and the early reflections of the reverb signal. Default value: [code]150ms[/code].
|
||||
Time between the original signal and the early reflections of the reverb signal, in milliseconds. Default value: [code]150ms[/code].
|
||||
</member>
|
||||
<member name="room_size" type="float" setter="set_room_size" getter="get_room_size">
|
||||
Dimensions of simulated room. Bigger means more echoes. Value can range from 0 to 1. Default value: [code]0.8[/code].
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioServer" inherits="Object" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Server interface for low level audio access.
|
||||
Server interface for low-level audio access.
|
||||
</brief_description>
|
||||
<description>
|
||||
AudioServer is a low level server interface for audio access. It is in charge of creating sample data (playable audio) as well as its playback via a voice interface.
|
||||
AudioServer is a low-level server interface for audio access. It is in charge of creating sample data (playable audio) as well as its playback via a voice interface.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/audio/audio_buses.html</link>
|
||||
|
@ -407,7 +407,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Unlocks the audiodriver's main loop. After locking it always unlock it.
|
||||
Unlocks the audio driver's main loop. (After locking it, you should always unlock it.)
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Meta class for playing back audio.
|
||||
</brief_description>
|
||||
<description>
|
||||
Can play, loop, pause a scroll through Audio. See [AudioStream] and [AudioStreamOGGVorbis] for usage.
|
||||
Can play, loop, pause a scroll through audio. See [AudioStream] and [AudioStreamOGGVorbis] for usage.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioStreamPlayer" inherits="Node" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Plays back audio.
|
||||
Plays back audio non-positionally.
|
||||
</brief_description>
|
||||
<description>
|
||||
Plays background audio.
|
||||
Plays an audio stream non-positionally.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/audio/audio_streams.html</link>
|
||||
|
@ -29,7 +29,7 @@
|
|||
<argument index="0" name="from_position" type="float" default="0.0">
|
||||
</argument>
|
||||
<description>
|
||||
Plays the audio from the given position 'from_position', in seconds.
|
||||
Plays the audio from the given [code]from_position[/code], in seconds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="seek">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<argument index="0" name="from_position" type="float" default="0.0">
|
||||
</argument>
|
||||
<description>
|
||||
Plays the audio from the given position 'from_position', in seconds.
|
||||
Plays the audio from the given position [code]from_position[/code], in seconds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="seek">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<argument index="0" name="from_position" type="float" default="0.0">
|
||||
</argument>
|
||||
<description>
|
||||
Plays the audio from the given position 'from_position', in seconds.
|
||||
Plays the audio from the given position [code]from_position[/code], in seconds.
|
||||
</description>
|
||||
</method>
|
||||
<method name="seek">
|
||||
|
@ -78,16 +78,16 @@
|
|||
If [code]true[/code], the audio should be dampened according to the direction of the sound.
|
||||
</member>
|
||||
<member name="emission_angle_filter_attenuation_db" type="float" setter="set_emission_angle_filter_attenuation_db" getter="get_emission_angle_filter_attenuation_db">
|
||||
dampens audio if camera is outside of 'emission_angle_degrees' and 'emission_angle_enabled' is set by this factor, in dB.
|
||||
Dampens audio if camera is outside of [member emission_angle_degrees] and [member emission_angle_enabled] is set by this factor, in dB.
|
||||
</member>
|
||||
<member name="max_db" type="float" setter="set_max_db" getter="get_max_db">
|
||||
Sets the absolute maximum of the soundlevel, in dB.
|
||||
</member>
|
||||
<member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance">
|
||||
Sets the distance from which the 'out_of_range_mode' takes effect. Has no effect if set to 0.
|
||||
Sets the distance from which the [member out_of_range_mode] takes effect. Has no effect if set to 0.
|
||||
</member>
|
||||
<member name="out_of_range_mode" type="int" setter="set_out_of_range_mode" getter="get_out_of_range_mode" enum="AudioStreamPlayer3D.OutOfRangeMode">
|
||||
Decides if audio should pause when source is outside of 'max_distance' range.
|
||||
Decides if audio should pause when source is outside of [member max_distance] range.
|
||||
</member>
|
||||
<member name="pitch_scale" type="float" setter="set_pitch_scale" getter="get_pitch_scale">
|
||||
Changes the pitch and the tempo of the audio.
|
||||
|
@ -110,7 +110,7 @@
|
|||
<signals>
|
||||
<signal name="finished">
|
||||
<description>
|
||||
Fires when the audio stops playing.
|
||||
Emitted when the audio stops playing.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioStreamRandomPitch" inherits="AudioStream" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Plays audio with random pitch tweaking.
|
||||
Plays audio with random pitch shifting.
|
||||
</brief_description>
|
||||
<description>
|
||||
Randomly varies pitch on each start.
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="AudioStreamSample" inherits="AudioStream" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Stores audio data loaded from [code].wav[/code] files.
|
||||
Stores audio data loaded from WAV files.
|
||||
</brief_description>
|
||||
<description>
|
||||
AudioStreamSample stores sound samples loaded from [code].wav[/code] files. To play the stored sound use an [AudioStreamPlayer] (for background music) or [AudioStreamPlayer2D]/[AudioStreamPlayer3D] (for positional audio). The sound can be looped.
|
||||
This class can also be used to store dynamically generated PCM audio data.
|
||||
AudioStreamSample stores sound samples loaded from WAV files. To play the stored sound, use an [AudioStreamPlayer] (for non-positional audio) or [AudioStreamPlayer2D]/[AudioStreamPlayer3D] (for positional audio). The sound can be looped.
|
||||
This class can also be used to store dynamically-generated PCM audio data.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -17,7 +17,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Saves the AudioStreamSample as a WAV file to [code]path[/code]. Samples with IMA ADPCM format can't be saved.
|
||||
Note that a [code].wav[/code] extension is automatically appended to [code]path[/code] if it is missing.
|
||||
[b]Note:[/b] A [code].wav[/code] extension is automatically appended to [code]path[/code] if it is missing.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
@ -26,7 +26,7 @@
|
|||
Contains the audio data in bytes.
|
||||
</member>
|
||||
<member name="format" type="int" setter="set_format" getter="get_format" enum="AudioStreamSample.Format">
|
||||
Audio format. See FORMAT_* constants for values.
|
||||
Audio format. See [code]FORMAT_*[/code] constants for values.
|
||||
</member>
|
||||
<member name="loop_begin" type="int" setter="set_loop_begin" getter="get_loop_begin">
|
||||
Loop start in bytes.
|
||||
|
@ -35,7 +35,7 @@
|
|||
Loop end in bytes.
|
||||
</member>
|
||||
<member name="loop_mode" type="int" setter="set_loop_mode" getter="get_loop_mode" enum="AudioStreamSample.LoopMode">
|
||||
Loop mode. See LOOP_* constants for values.
|
||||
Loop mode. See [code]LOOP_*[/code] constants for values.
|
||||
</member>
|
||||
<member name="mix_rate" type="int" setter="set_mix_rate" getter="get_mix_rate">
|
||||
The sample rate for mixing this audio.
|
||||
|
@ -46,25 +46,25 @@
|
|||
</members>
|
||||
<constants>
|
||||
<constant name="FORMAT_8_BITS" value="0" enum="Format">
|
||||
Audio codec 8 bit.
|
||||
8-bit audio codec.
|
||||
</constant>
|
||||
<constant name="FORMAT_16_BITS" value="1" enum="Format">
|
||||
Audio codec 16 bit.
|
||||
16-bit audio codec.
|
||||
</constant>
|
||||
<constant name="FORMAT_IMA_ADPCM" value="2" enum="Format">
|
||||
Audio codec IMA ADPCM.
|
||||
Audio is compressed using IMA ADPCM.
|
||||
</constant>
|
||||
<constant name="LOOP_DISABLED" value="0" enum="LoopMode">
|
||||
Audio does not loop.
|
||||
</constant>
|
||||
<constant name="LOOP_FORWARD" value="1" enum="LoopMode">
|
||||
Audio loops the data between loop_begin and loop_end playing forward only.
|
||||
Audio loops the data between [member loop_begin] and [member loop_end] playing forward only.
|
||||
</constant>
|
||||
<constant name="LOOP_PING_PONG" value="2" enum="LoopMode">
|
||||
Audio loops the data between loop_begin and loop_end playing back and forth.
|
||||
Audio loops the data between [member loop_begin] and [member loop_end] playing back and forth.
|
||||
</constant>
|
||||
<constant name="LOOP_BACKWARD" value="3" enum="LoopMode">
|
||||
Audio loops the data between loop_begin and loop_end playing backward only.
|
||||
Audio loops the data between [member loop_begin] and [member loop_end] playing backward only.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Copies a region of the screen (or the whole screen) to a buffer so it can be accessed with [code]SCREEN_TEXTURE[/code] in the [code]texture()[/code] function.
|
||||
</brief_description>
|
||||
<description>
|
||||
Node for back-buffering the currently displayed screen. The region defined in the BackBufferCopy node is bufferized with the content of the screen it covers, or the entire screen according to the copy mode set. Use [code]SCREEN_TEXTURE[/code] in the [code]texture()[/code] function to access the buffer.
|
||||
Node for back-buffering the currently-displayed screen. The region defined in the BackBufferCopy node is bufferized with the content of the screen it covers, or the entire screen according to the copy mode set. Use [code]SCREEN_TEXTURE[/code] in the [code]texture()[/code] function to access the buffer.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -34,10 +34,10 @@
|
|||
<member name="bake_energy" type="float" setter="set_energy" getter="get_energy">
|
||||
</member>
|
||||
<member name="bake_extents" type="Vector3" setter="set_extents" getter="get_extents">
|
||||
Size of affected area.
|
||||
The size of the affected area.
|
||||
</member>
|
||||
<member name="bake_hdr" type="bool" setter="set_hdr" getter="is_hdr">
|
||||
If [code]true[/code], lightmap can capture light values greater than [code]1.0[/code]. Turning this off will result in a smaller lightmap. Default value:[code]false[/code].
|
||||
If [code]true[/code], the lightmap can capture light values greater than [code]1.0[/code]. Turning this off will result in a smaller file size. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="bake_mode" type="int" setter="set_bake_mode" getter="get_bake_mode" enum="BakedLightmap.BakeMode">
|
||||
Lightmapping mode. See [enum BakeMode].
|
||||
|
@ -51,7 +51,7 @@
|
|||
Grid size used for real-time capture information on dynamic objects. Cannot be larger than [member bake_cell_size].
|
||||
</member>
|
||||
<member name="image_path" type="String" setter="set_image_path" getter="get_image_path">
|
||||
Location where lightmaps will be saved.
|
||||
The location where lightmaps will be saved.
|
||||
</member>
|
||||
<member name="light_data" type="BakedLightmapData" setter="set_light_data" getter="get_light_data">
|
||||
The calculated light data.
|
||||
|
@ -59,13 +59,13 @@
|
|||
</members>
|
||||
<constants>
|
||||
<constant name="BAKE_QUALITY_LOW" value="0" enum="BakeQuality">
|
||||
Lowest bake quality mode. Fastest to calculate.
|
||||
The lowest bake quality mode. Fastest to calculate.
|
||||
</constant>
|
||||
<constant name="BAKE_QUALITY_MEDIUM" value="1" enum="BakeQuality">
|
||||
Default bake quality mode.
|
||||
The default bake quality mode.
|
||||
</constant>
|
||||
<constant name="BAKE_QUALITY_HIGH" value="2" enum="BakeQuality">
|
||||
Highest bake quality mode. Takes longer to calculate.
|
||||
The highest bake quality mode. Takes longer to calculate.
|
||||
</constant>
|
||||
<constant name="BAKE_MODE_CONE_TRACE" value="0" enum="BakeMode">
|
||||
Less precise but faster bake mode.
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<return type="int" enum="BaseButton.DrawMode">
|
||||
</return>
|
||||
<description>
|
||||
Returns the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the DRAW_* enum.
|
||||
Returns the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the [code]DRAW_*[/code] enum.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_hovered" qualifiers="const">
|
||||
|
@ -42,7 +42,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" enum="BaseButton.ActionMode">
|
||||
Determines when the button is considered clicked, one of the ACTION_MODE_* constants.
|
||||
Determines when the button is considered clicked, one of the [code]ACTION_MODE_*[/code] constants.
|
||||
</member>
|
||||
<member name="button_mask" type="int" setter="set_button_mask" getter="get_button_mask">
|
||||
Binary mask to choose which mouse buttons this button will respond to.
|
||||
|
@ -86,14 +86,14 @@
|
|||
</signal>
|
||||
<signal name="pressed">
|
||||
<description>
|
||||
This signal is emitted every time the button is toggled or pressed (i.e. activated, so on [code]button_down[/code] if "Click on press" is active and on [code]button_up[/code] otherwise).
|
||||
Emitted when the button is toggled or pressed. This is on [signal button_down] if [member action_mode] is [constant ACTION_MODE_BUTTON_PRESS] and on [signal button_up] otherwise.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="toggled">
|
||||
<argument index="0" name="button_pressed" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
This signal is emitted when the button was just toggled between pressed and normal states (only if toggle_mode is active). The new state is contained in the [i]button_pressed[/i] argument.
|
||||
Emitted when the button was just toggled between pressed and normal states (only if [member toggle_mode] is active). The new state is contained in the [code]button_pressed[/code] argument.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Basis" category="Built-In Types" version="3.2">
|
||||
<brief_description>
|
||||
3x3 matrix datatype.
|
||||
3×3 matrix datatype.
|
||||
</brief_description>
|
||||
<description>
|
||||
3x3 matrix used for 3D rotation and scale. Contains 3 vector fields x,y and z as its columns, which can be interpreted as the local basis vectors of a transformation. Can also be accessed as array of 3D vectors. These vectors are orthogonal to each other, but are not necessarily normalized (due to scaling). Almost always used as orthogonal basis for a [Transform].
|
||||
3×3 matrix used for 3D rotation and scale. Contains 3 vector fields X, Y and Z as its columns, which can be interpreted as the local basis vectors of a transformation. Can also be accessed as array of 3D vectors. These vectors are orthogonal to each other, but are not necessarily normalized (due to scaling). Almost always used as an orthogonal basis for a [Transform].
|
||||
For such use, it is composed of a scaling and a rotation matrix, in that order (M = R.S).
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<argument index="0" name="from" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Create a rotation matrix (in the YXZ convention: first Z, then X, and Y last) from the specified Euler angles, given in the vector format as (X-angle, Y-angle, Z-angle).
|
||||
Create a rotation matrix (in the YXZ convention: first Z, then X, and Y last) from the specified Euler angles, given in the vector format as (X angle, Y angle, Z angle).
|
||||
</description>
|
||||
</method>
|
||||
<method name="Basis">
|
||||
|
@ -64,7 +64,7 @@
|
|||
<return type="Vector3">
|
||||
</return>
|
||||
<description>
|
||||
Assuming that the matrix is a proper rotation matrix (orthonormal matrix with determinant +1), return Euler angles (in the YXZ convention: first Z, then X, and Y last). Returned vector contains the rotation angles in the format (X-angle, Y-angle, Z-angle).
|
||||
Assuming that the matrix is a proper rotation matrix (orthonormal matrix with determinant +1), return Euler angles (in the YXZ convention: first Z, then X, and Y last). Returned vector contains the rotation angles in the format (X angle, Y angle, Z angle).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_orthogonal_index">
|
||||
|
@ -148,7 +148,7 @@
|
|||
<argument index="0" name="with" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Transposed dot product with the x axis of the matrix.
|
||||
Transposed dot product with the X axis of the matrix.
|
||||
</description>
|
||||
</method>
|
||||
<method name="tdoty">
|
||||
|
@ -157,7 +157,7 @@
|
|||
<argument index="0" name="with" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Transposed dot product with the y axis of the matrix.
|
||||
Transposed dot product with the Y axis of the matrix.
|
||||
</description>
|
||||
</method>
|
||||
<method name="tdotz">
|
||||
|
@ -166,7 +166,7 @@
|
|||
<argument index="0" name="with" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Transposed dot product with the z axis of the matrix.
|
||||
Transposed dot product with the Z axis of the matrix.
|
||||
</description>
|
||||
</method>
|
||||
<method name="transposed">
|
||||
|
@ -191,19 +191,20 @@
|
|||
<argument index="0" name="v" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a vector transformed (multiplied) by the transposed matrix. Note that this results in a multiplication by the inverse of the matrix only if it represents a rotation-reflection.
|
||||
Returns a vector transformed (multiplied) by the transposed matrix.
|
||||
[b]Note:[/b] This results in a multiplication by the inverse of the matrix only if it represents a rotation-reflection.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="x" type="Vector3" setter="" getter="">
|
||||
The basis matrix's x vector.
|
||||
The basis matrix's X vector.
|
||||
</member>
|
||||
<member name="y" type="Vector3" setter="" getter="">
|
||||
The basis matrix's y vector.
|
||||
The basis matrix's Y vector.
|
||||
</member>
|
||||
<member name="z" type="Vector3" setter="" getter="">
|
||||
The basis matrix's z vector.
|
||||
The basis matrix's Z vector.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<argument index="4" name="advance" type="float" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a character to the font, where [code]character[/code] is the unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance.
|
||||
Adds a character to the font, where [code]character[/code] is the Unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_kerning_pair">
|
||||
|
|
|
@ -15,13 +15,13 @@
|
|||
<argument index="0" name="begin" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a control to the box as a spacer. If [code]true[/code], [i]begin[/i] will insert the spacer control in front of other children.
|
||||
Adds a control to the box as a spacer. If [code]true[/code], [code]begin[/code] will insert the spacer control in front of other children.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="alignment" type="int" setter="set_alignment" getter="get_alignment" enum="BoxContainer.AlignMode">
|
||||
The alignment of the container's children (must be one of ALIGN_BEGIN, ALIGN_CENTER, or ALIGN_END).
|
||||
The alignment of the container's children (must be one of [constant ALIGN_BEGIN], [constant ALIGN_CENTER] or [constant ALIGN_END]).
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="extents" type="Vector3" setter="set_extents" getter="get_extents">
|
||||
The shape's half extents.
|
||||
The box's half extents. The width, height and depth of this shape is twice the half extents.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="align" type="int" setter="set_text_align" getter="get_text_align" enum="Button.TextAlign">
|
||||
Text alignment policy for the button's text, use one of the ALIGN_* constants.
|
||||
Text alignment policy for the button's text, use one of the [code]ALIGN_*[/code] constants.
|
||||
</member>
|
||||
<member name="clip_text" type="bool" setter="set_clip_text" getter="get_clip_text">
|
||||
When this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text. This property is disabled by default.
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
<member name="emission_points" type="PoolVector3Array" setter="set_emission_points" getter="get_emission_points">
|
||||
</member>
|
||||
<member name="emission_shape" type="int" setter="set_emission_shape" getter="get_emission_shape" enum="CPUParticles.EmissionShape">
|
||||
Particles will be emitted inside this region. Use [enum EmissionShape] for values. Default value: [constant EMISSION_SHAPE_POINT].
|
||||
Particles will be emitted inside this region. See [enum EmissionShape] for possible values. Default value: [constant EMISSION_SHAPE_POINT].
|
||||
</member>
|
||||
<member name="emission_sphere_radius" type="float" setter="set_emission_sphere_radius" getter="get_emission_sphere_radius">
|
||||
The sphere's radius if [enum EmissionShape] is set to [constant EMISSION_SHAPE_SPHERE].
|
||||
|
@ -110,19 +110,19 @@
|
|||
The particle system's frame rate is fixed to a value. For instance, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the particle system itself.
|
||||
</member>
|
||||
<member name="flag_align_y" type="bool" setter="set_particle_flag" getter="get_particle_flag">
|
||||
Align y-axis of particle with the direction of its velocity.
|
||||
Align Y axis of particle with the direction of its velocity.
|
||||
</member>
|
||||
<member name="flag_disable_z" type="bool" setter="set_particle_flag" getter="get_particle_flag">
|
||||
If [code]true[/code], particles will not move on the z axis. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="flag_rotate_y" type="bool" setter="set_particle_flag" getter="get_particle_flag">
|
||||
If [code]true[/code], particles rotate around y-axis by [member angle].
|
||||
If [code]true[/code], particles rotate around Y axis by [member angle].
|
||||
</member>
|
||||
<member name="flatness" type="float" setter="set_flatness" getter="get_flatness">
|
||||
Amount of [member spread] in Y/Z plane. A value of [code]1[/code] restricts particles to X/Z plane. Default [code]0[/code].
|
||||
</member>
|
||||
<member name="fract_delta" type="bool" setter="set_fractional_delta" getter="get_fractional_delta">
|
||||
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. Default value: [code]true[/code]
|
||||
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. Default value: [code]true[/code].
|
||||
</member>
|
||||
<member name="gravity" type="Vector3" setter="set_gravity" getter="get_gravity">
|
||||
Gravity applied to every particle. Default value: [code](0, -9.8, 0)[/code].
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
The rectangle's extents if [member emission_shape] is set to [constant EMISSION_SHAPE_RECTANGLE].
|
||||
</member>
|
||||
<member name="emission_shape" type="int" setter="set_emission_shape" getter="get_emission_shape" enum="CPUParticles2D.EmissionShape">
|
||||
Particles will be emitted inside this region. Use [enum EmissionShape] for values. Default value: [constant EMISSION_SHAPE_POINT].
|
||||
Particles will be emitted inside this region. See [enum EmissionShape] for possible values. Default value: [constant EMISSION_SHAPE_POINT].
|
||||
</member>
|
||||
<member name="emission_sphere_radius" type="float" setter="set_emission_sphere_radius" getter="get_emission_sphere_radius">
|
||||
The sphere's radius if [member emission_shape] is set to [constant EMISSION_SHAPE_SPHERE].
|
||||
|
@ -111,12 +111,12 @@
|
|||
The particle system's frame rate is fixed to a value. For instance, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the simulation of the particle system itself.
|
||||
</member>
|
||||
<member name="flag_align_y" type="bool" setter="set_particle_flag" getter="get_particle_flag">
|
||||
Align y-axis of particle with the direction of its velocity.
|
||||
Align Y axis of particle with the direction of its velocity.
|
||||
</member>
|
||||
<member name="flatness" type="float" setter="set_flatness" getter="get_flatness">
|
||||
</member>
|
||||
<member name="fract_delta" type="bool" setter="set_fractional_delta" getter="get_fractional_delta">
|
||||
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. Default value: [code]true[/code]
|
||||
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. Default value: [code]true[/code].
|
||||
</member>
|
||||
<member name="gravity" type="Vector2" setter="set_gravity" getter="get_gravity">
|
||||
Gravity applied to every particle. Default value: [code](0, 98)[/code].
|
||||
|
@ -206,7 +206,7 @@
|
|||
Tangential acceleration randomness ratio. Default value: [code]0[/code].
|
||||
</member>
|
||||
<member name="texture" type="Texture" setter="set_texture" getter="get_texture">
|
||||
Particle texture. If [code]null[/code] particles will be squares.
|
||||
Particle texture. If [code]null[/code], particles will be squares.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Camera node, displays from a point of view.
|
||||
</brief_description>
|
||||
<description>
|
||||
Camera is a special node that displays what is visible from its current location. Cameras register themselves in the nearest [Viewport] node (when ascending the tree). Only one camera can be active per viewport. If no viewport is available ascending the tree, the Camera will register in the global viewport. In other words, a Camera just provides [i]3D[/i] display capabilities to a [Viewport], and, without one, a scene registered in that [Viewport] (or higher viewports) can't be displayed.
|
||||
Camera is a special node that displays what is visible from its current location. Cameras register themselves in the nearest [Viewport] node (when ascending the tree). Only one camera can be active per viewport. If no viewport is available ascending the tree, the camera will register in the global viewport. In other words, a camera just provides 3D display capabilities to a [Viewport], and, without one, a scene registered in that [Viewport] (or higher viewports) can't be displayed.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<argument index="0" name="enable_next" type="bool" default="true">
|
||||
</argument>
|
||||
<description>
|
||||
If this is the current Camera, remove it from being current. If [code]enable_next[/code] is [code]true[/code], request to make the next Camera current, if any.
|
||||
If this is the current camera, remove it from being current. If [code]enable_next[/code] is [code]true[/code], request to make the next camera current, if any.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_camera_rid" qualifiers="const">
|
||||
|
@ -29,7 +29,7 @@
|
|||
<return type="Transform">
|
||||
</return>
|
||||
<description>
|
||||
Gets the camera transform. Subclassed cameras (such as CharacterCamera) may provide different transforms than the [Node] transform.
|
||||
Gets the camera transform. Subclassed cameras such as [InterpolatedCamera] may provide different transforms than the [Node] transform.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_cull_mask_bit" qualifiers="const">
|
||||
|
@ -52,14 +52,15 @@
|
|||
<argument index="0" name="world_point" type="Vector3">
|
||||
</argument>
|
||||
<description>
|
||||
Returns [code]true[/code] if the given position is behind the Camera. Note that a position which returns [code]false[/code] may still be outside the Camera's field of view.
|
||||
Returns [code]true[/code] if the given position is behind the camera.
|
||||
[b]Note:[/b] A position which returns [code]false[/code] may still be outside the camera's field of view.
|
||||
</description>
|
||||
</method>
|
||||
<method name="make_current">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Makes this camera the current Camera for the [Viewport] (see class description). If the Camera Node is outside the scene tree, it will attempt to become current once it's added.
|
||||
Makes this camera the current camera for the [Viewport] (see class description). If the camera node is outside the scene tree, it will attempt to become current once it's added.
|
||||
</description>
|
||||
</method>
|
||||
<method name="project_local_ray_normal" qualifiers="const">
|
||||
|
@ -134,7 +135,7 @@
|
|||
<argument index="2" name="z_far" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the camera projection to orthogonal mode, by specifying a width and the [i]near[/i] and [i]far[/i] clip planes in worldspace units. (As a hint, 2D games often use this projection, with values specified in pixels)
|
||||
Sets the camera projection to orthogonal mode, by specifying a width and the [code]near[/code] and [code]far[/code] clip planes in worldspace units. (As a hint, 2D games often use this projection, with values specified in pixels)
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_perspective">
|
||||
|
@ -147,7 +148,7 @@
|
|||
<argument index="2" name="z_far" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the camera projection to perspective mode, by specifying a [i]FOV[/i] Y angle in degrees (FOV means Field of View), and the [i]near[/i] and [i]far[/i] clip planes in worldspace units.
|
||||
Sets the camera projection to perspective mode, by specifying a [code]fov[/code] angle in degrees (FOV means Field of View), and the [code]near[/code] and [code]far[/code] clip planes in world-space units.
|
||||
</description>
|
||||
</method>
|
||||
<method name="unproject_position" qualifiers="const">
|
||||
|
@ -165,16 +166,16 @@
|
|||
The culling mask that describes which 3D render layers are rendered by this camera.
|
||||
</member>
|
||||
<member name="current" type="bool" setter="set_current" getter="is_current">
|
||||
If [code]true[/code], the ancestor [Viewport] is currently using this Camera. Default value: [code]false[/code].
|
||||
If [code]true[/code], the ancestor [Viewport] is currently using this camera. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="doppler_tracking" type="int" setter="set_doppler_tracking" getter="get_doppler_tracking" enum="Camera.DopplerTracking">
|
||||
If not [constant DOPPLER_TRACKING_DISABLED] this Camera will simulate the Doppler effect for objects changed in particular [code]_process[/code] methods. Default value: [constant DOPPLER_TRACKING_DISABLED].
|
||||
If not [constant DOPPLER_TRACKING_DISABLED], this camera will simulate the Doppler effect for objects changed in particular [code]_process[/code] methods. See [enum DopplerTracking] for possible values. Default value: [constant DOPPLER_TRACKING_DISABLED].
|
||||
</member>
|
||||
<member name="environment" type="Environment" setter="set_environment" getter="get_environment">
|
||||
The [Environment] to use for this Camera.
|
||||
The [Environment] to use for this camera.
|
||||
</member>
|
||||
<member name="far" type="float" setter="set_zfar" getter="get_zfar">
|
||||
The distance to the far culling boundary for this Camera relative to its local z-axis.
|
||||
The distance to the far culling boundary for this camera relative to its local Z axis.
|
||||
</member>
|
||||
<member name="fov" type="float" setter="set_fov" getter="get_fov">
|
||||
The camera's field of view angle (in degrees). Only applicable in perspective mode. Since [member keep_aspect] locks one axis, [code]fov[/code] sets the other axis' field of view angle.
|
||||
|
@ -182,47 +183,48 @@
|
|||
<member name="frustum_offset" type="Vector2" setter="set_frustum_offset" getter="get_frustum_offset">
|
||||
</member>
|
||||
<member name="h_offset" type="float" setter="set_h_offset" getter="get_h_offset">
|
||||
The horizontal (X) offset of the Camera viewport.
|
||||
The horizontal (X) offset of the camera viewport.
|
||||
</member>
|
||||
<member name="keep_aspect" type="int" setter="set_keep_aspect_mode" getter="get_keep_aspect_mode" enum="Camera.KeepAspect">
|
||||
The axis to lock during [member fov]/[member size] adjustments. Can be either [constant KEEP_WIDTH] or [constant KEEP_HEIGHT].
|
||||
</member>
|
||||
<member name="near" type="float" setter="set_znear" getter="get_znear">
|
||||
The distance to the near culling boundary for this Camera relative to its local z-axis.
|
||||
The distance to the near culling boundary for this camera relative to its local Z axis.
|
||||
</member>
|
||||
<member name="projection" type="int" setter="set_projection" getter="get_projection" enum="Camera.Projection">
|
||||
The camera's projection mode. In [constant PROJECTION_PERSPECTIVE] mode, objects' z-distance from the camera's local space scales their perceived size.
|
||||
The camera's projection mode. In [constant PROJECTION_PERSPECTIVE] mode, objects' Z distance from the camera's local space scales their perceived size.
|
||||
</member>
|
||||
<member name="size" type="float" setter="set_size" getter="get_size">
|
||||
The camera's size measured as 1/2 the width or height. Only applicable in orthogonal mode. Since [member keep_aspect] locks on axis, [code]size[/code] sets the other axis' size length.
|
||||
</member>
|
||||
<member name="v_offset" type="float" setter="set_v_offset" getter="get_v_offset">
|
||||
The vertical (Y) offset of the Camera viewport.
|
||||
The vertical (Y) offset of the camera viewport.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="PROJECTION_PERSPECTIVE" value="0" enum="Projection">
|
||||
Perspective Projection (object's size on the screen becomes smaller when far away).
|
||||
Perspective projection. Objects on the screen becomes smaller when they are far away.
|
||||
</constant>
|
||||
<constant name="PROJECTION_ORTHOGONAL" value="1" enum="Projection">
|
||||
Orthogonal Projection (objects remain the same size on the screen no matter how far away they are; also known as orthographic projection).
|
||||
Orthogonal projection, also known as orthographic projection. Objects remain the same size on the screen no matter how far away they are.
|
||||
</constant>
|
||||
<constant name="PROJECTION_FRUSTUM" value="2" enum="Projection">
|
||||
Frustum projection. This mode allows adjusting [member frustum_offset] to create "tilted frustum" effects.
|
||||
</constant>
|
||||
<constant name="KEEP_WIDTH" value="0" enum="KeepAspect">
|
||||
Preserves the horizontal aspect ratio.
|
||||
Preserves the horizontal aspect ratio; also known as Vert- scaling. This is usually the best option for projects running in portrait mode, as taller aspect ratios will benefit from a wider vertical FOV.
|
||||
</constant>
|
||||
<constant name="KEEP_HEIGHT" value="1" enum="KeepAspect">
|
||||
Preserves the vertical aspect ratio.
|
||||
Preserves the vertical aspect ratio; also known as Hor+ scaling. This is usually the best option for projects running in landscape mode, as wider aspect ratios will automatically benefit from a wider horizontal FOV.
|
||||
</constant>
|
||||
<constant name="DOPPLER_TRACKING_DISABLED" value="0" enum="DopplerTracking">
|
||||
Disable Doppler effect simulation (default).
|
||||
Disables Doppler effect simulation (default).
|
||||
</constant>
|
||||
<constant name="DOPPLER_TRACKING_IDLE_STEP" value="1" enum="DopplerTracking">
|
||||
Simulate Doppler effect by tracking positions of objects that are changed in [code]_process[/code]. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]).
|
||||
Simulate Doppler effect by tracking positions of objects that are changed in [code]_process[/code]. Changes in the relative velocity of this camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]).
|
||||
</constant>
|
||||
<constant name="DOPPLER_TRACKING_PHYSICS_STEP" value="2" enum="DopplerTracking">
|
||||
Simulate Doppler effect by tracking positions of objects that are changed in [code]_physics_process[/code]. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]).
|
||||
Simulate Doppler effect by tracking positions of objects that are changed in [code]_physics_process[/code]. Changes in the relative velocity of this camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]).
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
Camera node for 2D scenes.
|
||||
</brief_description>
|
||||
<description>
|
||||
Camera node for 2D scenes. It forces the screen (current layer) to scroll following this node. This makes it easier (and faster) to program scrollable scenes than manually changing the position of [CanvasItem] based nodes.
|
||||
This node is intended to be a simple helper to get things going quickly and it may happen often that more functionality is desired to change how the camera works. To make your own custom camera node, simply inherit from [Node2D] and change the transform of the canvas by calling get_viewport().set_canvas_transform(m) in [Viewport].
|
||||
Camera node for 2D scenes. It forces the screen (current layer) to scroll following this node. This makes it easier (and faster) to program scrollable scenes than manually changing the position of [CanvasItem]-based nodes.
|
||||
This node is intended to be a simple helper to get things going quickly and it may happen that more functionality is desired to change how the camera works. To make your own custom camera node, simply inherit from [Node2D] and change the transform of the canvas by calling get_viewport().set_canvas_transform(m) in [Viewport].
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Align the camera to the tracked node
|
||||
Aligns the camera to the tracked node.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_current">
|
||||
|
@ -28,7 +28,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Force the camera to update scroll immediately.
|
||||
Forces the camera to update scroll immediately.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_camera_position" qualifiers="const">
|
||||
|
@ -49,14 +49,14 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene.
|
||||
Make this the current 2D camera for the scene (viewport and layer), in case there are many cameras in the scene.
|
||||
</description>
|
||||
</method>
|
||||
<method name="reset_smoothing">
|
||||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Set the camera's position immediately to its current smoothing destination.
|
||||
Sets the camera's position immediately to its current smoothing destination.
|
||||
This has no effect if smoothing is disabled.
|
||||
</description>
|
||||
</method>
|
||||
|
@ -69,7 +69,7 @@
|
|||
If [code]true[/code], the camera is the active camera for the current scene. Only one camera can be current, so setting a different camera [code]current[/code] will disable this one.
|
||||
</member>
|
||||
<member name="custom_viewport" type="Node" setter="set_custom_viewport" getter="get_custom_viewport">
|
||||
The custom [Viewport] node attached to the [Camera2D]. If null or not a [Viewport], uses the default viewport instead.
|
||||
The custom [Viewport] node attached to the [Camera2D]. If [code]null[/code] or not a [Viewport], uses the default viewport instead.
|
||||
</member>
|
||||
<member name="drag_margin_bottom" type="float" setter="set_drag_margin" getter="get_drag_margin">
|
||||
Bottom margin needed to drag the camera. A value of [code]1[/code] makes the camera move only when reaching the edge of the screen.
|
||||
|
@ -90,13 +90,13 @@
|
|||
If [code]true[/code], the camera only moves when reaching the vertical drag margins. If [code]false[/code], the camera moves vertically regardless of margins. Default value: [code]true[/code].
|
||||
</member>
|
||||
<member name="editor_draw_drag_margin" type="bool" setter="set_margin_drawing_enabled" getter="is_margin_drawing_enabled">
|
||||
If [code]true[/code], draws the camera's drag margin rectangle in the editor. Default value: [code]false[/code]
|
||||
If [code]true[/code], draws the camera's drag margin rectangle in the editor. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="editor_draw_limits" type="bool" setter="set_limit_drawing_enabled" getter="is_limit_drawing_enabled">
|
||||
If [code]true[/code], draws the camera's limits rectangle in the editor. Default value: [code]true[/code]
|
||||
If [code]true[/code], draws the camera's limits rectangle in the editor. Default value: [code]true[/code].
|
||||
</member>
|
||||
<member name="editor_draw_screen" type="bool" setter="set_screen_drawing_enabled" getter="is_screen_drawing_enabled">
|
||||
If [code]true[/code], draws the camera's screen rectangle in the editor. Default value: [code]false[/code]
|
||||
If [code]true[/code], draws the camera's screen rectangle in the editor. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="limit_bottom" type="int" setter="set_limit" getter="get_limit">
|
||||
Bottom scroll limit in pixels. The camera stops moving when reaching this value.
|
||||
|
@ -108,7 +108,7 @@
|
|||
Right scroll limit in pixels. The camera stops moving when reaching this value.
|
||||
</member>
|
||||
<member name="limit_smoothed" type="bool" setter="set_limit_smoothing_enabled" getter="is_limit_smoothing_enabled">
|
||||
If [code]true[/code], the camera smoothly stops when reaches its limits. Default value: [code]false[/code]
|
||||
If [code]true[/code], the camera smoothly stops when reaches its limits. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="limit_top" type="int" setter="set_limit" getter="get_limit">
|
||||
Top scroll limit in pixels. The camera stops moving when reaching this value.
|
||||
|
@ -117,24 +117,24 @@
|
|||
The camera's offset, useful for looking around or camera shake animations.
|
||||
</member>
|
||||
<member name="offset_h" type="float" setter="set_h_offset" getter="get_h_offset">
|
||||
The horizontal offset of the camera, relative to the drag margins. Default value: [code]0[/code]
|
||||
The horizontal offset of the camera, relative to the drag margins. Default value: [code]0[/code].
|
||||
</member>
|
||||
<member name="offset_v" type="float" setter="set_v_offset" getter="get_v_offset">
|
||||
The vertical offset of the camera, relative to the drag margins. Default value: [code]0[/code]
|
||||
The vertical offset of the camera, relative to the drag margins. Default value: [code]0[/code].
|
||||
</member>
|
||||
<member name="process_mode" type="int" setter="set_process_mode" getter="get_process_mode" enum="Camera2D.Camera2DProcessMode">
|
||||
</member>
|
||||
<member name="rotating" type="bool" setter="set_rotating" getter="is_rotating">
|
||||
If [code]true[/code], the camera rotates with the target. Default value: [code]false[/code]
|
||||
If [code]true[/code], the camera rotates with the target. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="smoothing_enabled" type="bool" setter="set_enable_follow_smoothing" getter="is_follow_smoothing_enabled">
|
||||
If [code]true[/code], the camera smoothly moves towards the target at [member smoothing_speed]. Default value: [code]false[/code]
|
||||
If [code]true[/code], the camera smoothly moves towards the target at [member smoothing_speed]. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="smoothing_speed" type="float" setter="set_follow_smoothing" getter="get_follow_smoothing">
|
||||
Speed in pixels per second of the camera's smoothing effect when [member smoothing_enabled] is [code]true[/code]
|
||||
Speed in pixels per second of the camera's smoothing effect when [member smoothing_enabled] is [code]true[/code].
|
||||
</member>
|
||||
<member name="zoom" type="Vector2" setter="set_zoom" getter="get_zoom">
|
||||
The camera's zoom relative to the viewport. Values larger than [code]Vector2(1, 1)[/code] zoom out and smaller values zoom in. For an example, use [code]Vector2(0.5, 0.5)[/code] for a 2x zoom in, and [code]Vector2(4, 4)[/code] for a 4x zoom out.
|
||||
The camera's zoom relative to the viewport. Values larger than [code]Vector2(1, 1)[/code] zoom out and smaller values zoom in. For an example, use [code]Vector2(0.5, 0.5)[/code] for a 2× zoom-in, and [code]Vector2(4, 4)[/code] for a 4× zoom-out.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
A camera feed gives you access to a single physical camera attached to your device.
|
||||
</brief_description>
|
||||
<description>
|
||||
A camera feed gives you access to a single physical camera attached to your device.
|
||||
When enabled Godot will start capturing frames from the camera which can then be used. Do note that many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.
|
||||
A camera feed gives you access to a single physical camera attached to your device. When enabled, Godot will start capturing frames from the camera which can then be used.
|
||||
[b]Note:[/b] Many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -14,14 +14,14 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Get unique id for this feed
|
||||
Gets the unique ID for this feed.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_name" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get name of the camera
|
||||
Gets the camera's name.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_position" qualifiers="const">
|
||||
|
@ -58,7 +58,7 @@
|
|||
Camera is mounted at the front of the device.
|
||||
</constant>
|
||||
<constant name="FEED_BACK" value="2" enum="FeedPosition">
|
||||
Camera is moutned at the back of the device.
|
||||
Camera is mounted at the back of the device.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="CameraServer" inherits="Object" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Our camera server keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.
|
||||
The CameraServer keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="CameraTexture" inherits="Texture" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
This texture gives access to the camera texture provided by a [CameraFeed]. Note that many cameras supply YCbCr images which need to be converted in a shader.
|
||||
This texture gives access to the camera texture provided by a [CameraFeed].
|
||||
[b]Note:[/b] Many cameras supply YCbCr images which need to be converted in a shader.
|
||||
</brief_description>
|
||||
<description>
|
||||
</description>
|
||||
|
@ -11,7 +12,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="camera_feed_id" type="int" setter="set_camera_feed_id" getter="get_camera_feed_id">
|
||||
Id of the [CameraFeed] for which we want to display the image.
|
||||
The ID of the [CameraFeed] for which we want to display the image.
|
||||
</member>
|
||||
<member name="camera_is_active" type="bool" setter="set_camera_active" getter="get_camera_active">
|
||||
Convenience property that gives access to the active property of the [CameraFeed].
|
||||
|
|
|
@ -356,63 +356,63 @@
|
|||
<return type="Transform2D">
|
||||
</return>
|
||||
<description>
|
||||
Get the transform matrix of this item's canvas.
|
||||
Gets the transform matrix of this item's canvas.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_mouse_position" qualifiers="const">
|
||||
<return type="Vector2">
|
||||
</return>
|
||||
<description>
|
||||
Get the global position of the mouse.
|
||||
Gets the global position of the mouse.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_transform" qualifiers="const">
|
||||
<return type="Transform2D">
|
||||
</return>
|
||||
<description>
|
||||
Get the global transform matrix of this item.
|
||||
Gets the global transform matrix of this item.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_transform_with_canvas" qualifiers="const">
|
||||
<return type="Transform2D">
|
||||
</return>
|
||||
<description>
|
||||
Get the global transform matrix of this item in relation to the canvas.
|
||||
Gets the global transform matrix of this item in relation to the canvas.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_local_mouse_position" qualifiers="const">
|
||||
<return type="Vector2">
|
||||
</return>
|
||||
<description>
|
||||
Get the mouse position relative to this item's position.
|
||||
Gets the mouse position relative to this item's position.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_transform" qualifiers="const">
|
||||
<return type="Transform2D">
|
||||
</return>
|
||||
<description>
|
||||
Get the transform matrix of this item.
|
||||
Gets the transform matrix of this item.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_viewport_rect" qualifiers="const">
|
||||
<return type="Rect2">
|
||||
</return>
|
||||
<description>
|
||||
Get the viewport's boundaries as a [Rect2].
|
||||
Gets the viewport's boundaries as a [Rect2].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_viewport_transform" qualifiers="const">
|
||||
<return type="Transform2D">
|
||||
</return>
|
||||
<description>
|
||||
Get this item's transform in relation to the viewport.
|
||||
Gets this item's transform in relation to the viewport.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_world_2d" qualifiers="const">
|
||||
<return type="World2D">
|
||||
</return>
|
||||
<description>
|
||||
Get the [World2D] where this item is in.
|
||||
Gets the [World2D] where this item is in.
|
||||
</description>
|
||||
</method>
|
||||
<method name="hide">
|
||||
|
@ -575,7 +575,7 @@
|
|||
Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value.
|
||||
</constant>
|
||||
<constant name="BLEND_MODE_DISABLED" value="5" enum="BlendMode">
|
||||
Disable blending mode. Colors including alpha are written as-is. Only applicable for render targets with a transparent background. No lighting will be applied.
|
||||
Disables blending mode. Colors including alpha are written as-is. Only applicable for render targets with a transparent background. No lighting will be applied.
|
||||
</constant>
|
||||
<constant name="NOTIFICATION_TRANSFORM_CHANGED" value="2000">
|
||||
The CanvasItem's transform has changed. This notification is only received if enabled by [method set_notify_transform] or [method set_notify_local_transform].
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="custom_viewport" type="Node" setter="set_custom_viewport" getter="get_custom_viewport">
|
||||
The custom [Viewport] node assigned to the [CanvasLayer]. If null, uses the default viewport instead.
|
||||
The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/code], uses the default viewport instead.
|
||||
</member>
|
||||
<member name="follow_viewport_enable" type="bool" setter="set_follow_viewport" getter="is_following_viewport">
|
||||
</member>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Tint the entire canvas.
|
||||
</brief_description>
|
||||
<description>
|
||||
[CanvasModulate] tints the canvas elements using its assigned [code]color[/code].
|
||||
[CanvasModulate] tints the canvas elements using its assigned [member color].
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Keeps children controls centered.
|
||||
</brief_description>
|
||||
<description>
|
||||
CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center.
|
||||
CenterContainer keeps children controls centered. This container keeps all children to their minimum size, in the center.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Binary choice user interface widget.
|
||||
</brief_description>
|
||||
<description>
|
||||
A checkbox allows the user to make a binary choice (choosing only one of two possible options), for example Answer 'yes' or 'no'.
|
||||
A checkbox allows the user to make a binary choice (choosing only one of two possible options).
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<argument index="0" name="class" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns [code]true[/code] if you can instance objects from the specified 'class', [code]false[/code] in other case.
|
||||
Returns [code]true[/code] if you can instance objects from the specified [code]class[/code], [code]false[/code] in other case.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_exists" qualifiers="const">
|
||||
|
@ -24,7 +24,7 @@
|
|||
<argument index="0" name="class" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether the specified 'class' is available or not.
|
||||
Returns whether the specified [code]class[/code] is available or not.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_category" qualifiers="const">
|
||||
|
@ -44,7 +44,7 @@
|
|||
<argument index="1" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the value of the integer constant 'name' of 'class' or its ancestry. Always returns 0 when the constant could not be found.
|
||||
Returns the value of the integer constant [code]name[/code] of [code]class[/code] or its ancestry. Always returns 0 when the constant could not be found.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_integer_constant_list" qualifiers="const">
|
||||
|
@ -55,7 +55,7 @@
|
|||
<argument index="1" name="no_inheritance" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with the names all the integer constants of 'class' or its ancestry.
|
||||
Returns an array with the names all the integer constants of [code]class[/code] or its ancestry.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_method_list" qualifiers="const">
|
||||
|
@ -66,7 +66,7 @@
|
|||
<argument index="1" name="no_inheritance" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with all the methods of 'class' or its ancestry if 'no_inheritance' is [code]false[/code]. Every element of the array is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
|
||||
Returns an array with all the methods of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. Every element of the array is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_property" qualifiers="const">
|
||||
|
@ -77,7 +77,7 @@
|
|||
<argument index="1" name="property" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the value of 'property' of 'class' or its ancestry.
|
||||
Returns the value of [code]property[/code] of [code]class[/code] or its ancestry.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_property_list" qualifiers="const">
|
||||
|
@ -88,7 +88,7 @@
|
|||
<argument index="1" name="no_inheritance" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with all the properties of 'class' or its ancestry if 'no_inheritance' is [code]false[/code].
|
||||
Returns an array with all the properties of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_signal" qualifiers="const">
|
||||
|
@ -99,7 +99,7 @@
|
|||
<argument index="1" name="signal" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the 'signal' data of 'class' or its ancestry. The returned value is a [Dictionary] with the following keys: args, default_args, flags, id, name, return: (class_name, hint, hint_string, name, type, usage).
|
||||
Returns the [code]signal[/code] data of [code]class[/code] or its ancestry. The returned value is a [Dictionary] with the following keys: [code]args[/code], [code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/code], [code]return: (class_name, hint, hint_string, name, type, usage)[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_get_signal_list" qualifiers="const">
|
||||
|
@ -110,7 +110,7 @@
|
|||
<argument index="1" name="no_inheritance" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns an array with all the signals of 'class' or its ancestry if 'no_inheritance' is [code]false[/code]. Every element of the array is a [Dictionary] as described in [method class_get_signal].
|
||||
Returns an array with all the signals of [code]class[/code] or its ancestry if [code]no_inheritance[/code] is [code]false[/code]. Every element of the array is a [Dictionary] as described in [method class_get_signal].
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_has_integer_constant" qualifiers="const">
|
||||
|
@ -121,7 +121,7 @@
|
|||
<argument index="1" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether 'class' or its ancestry has an integer constant called 'name' or not.
|
||||
Returns whether [code]class[/code] or its ancestry has an integer constant called [code]name[/code] or not.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_has_method" qualifiers="const">
|
||||
|
@ -134,7 +134,7 @@
|
|||
<argument index="2" name="no_inheritance" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether 'class' (or its ancestry if 'no_inheritance' is false) has a method called 'method' or not.
|
||||
Returns whether [code]class[/code] (or its ancestry if [code]no_inheritance[/code] is false) has a method called [code]method[/code] or not.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_has_signal" qualifiers="const">
|
||||
|
@ -145,7 +145,7 @@
|
|||
<argument index="1" name="signal" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether 'class' or its ancestry has a signal called 'signal' or not.
|
||||
Returns whether [code]class[/code] or its ancestry has a signal called [code]signal[/code] or not.
|
||||
</description>
|
||||
</method>
|
||||
<method name="class_set_property" qualifiers="const">
|
||||
|
@ -158,7 +158,7 @@
|
|||
<argument index="2" name="value" type="Variant">
|
||||
</argument>
|
||||
<description>
|
||||
Sets 'property' value of 'class' to 'value'.
|
||||
Sets [code]property[/code] value of [code]class[/code] to [code]value[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_class_list" qualifiers="const">
|
||||
|
@ -174,7 +174,7 @@
|
|||
<argument index="0" name="class" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the names of all the classes that directly or indirectly inherit from 'class'.
|
||||
Returns the names of all the classes that directly or indirectly inherit from [code]class[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_parent_class" qualifiers="const">
|
||||
|
@ -183,7 +183,7 @@
|
|||
<argument index="0" name="class" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the parent class of 'class'.
|
||||
Returns the parent class of [code]class[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="instance" qualifiers="const">
|
||||
|
@ -192,7 +192,7 @@
|
|||
<argument index="0" name="class" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Creates an instance of 'class'.
|
||||
Creates an instance of [code]class[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_class_enabled" qualifiers="const">
|
||||
|
@ -212,7 +212,7 @@
|
|||
<argument index="1" name="inherits" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Returns whether 'inherits' is an ancestor of 'class' or not.
|
||||
Returns whether [code]inherits[/code] is an ancestor of [code]class[/code] or not.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Editor-only class for defining a collision polygon in 3D space.
|
||||
</brief_description>
|
||||
<description>
|
||||
Allows editing a collision polygon's vertices on a selected plane. Can also set a depth perpendicular to that plane. This class is only available in the editor. It will not appear in the scene tree at runtime. Creates a [Shape] for gameplay. Properties modified during gameplay will have no effect.
|
||||
Allows editing a collision polygon's vertices on a selected plane. Can also set a depth perpendicular to that plane. This class is only available in the editor. It will not appear in the scene tree at run-time. Creates a [Shape] for gameplay. Properties modified during gameplay will have no effect.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -18,7 +18,8 @@
|
|||
If [code]true[/code], no collision will be produced.
|
||||
</member>
|
||||
<member name="polygon" type="PoolVector2Array" setter="set_polygon" getter="get_polygon">
|
||||
Array of vertices which define the polygon. Note that the returned value is a copy of the original. Methods which mutate the size or properties of the return value will not impact the original polygon. To change properties of the polygon, assign it to a temporary variable and make changes before reassigning the [code]polygon[/code] member.
|
||||
Array of vertices which define the polygon.
|
||||
[b]Note:[/b] The returned value is a copy of the original. Methods which mutate the size or properties of the return value will not impact the original polygon. To change properties of the polygon, assign it to a temporary variable and make changes before reassigning the [code]polygon[/code] member.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Color in RGBA format with some support for ARGB format.
|
||||
</brief_description>
|
||||
<description>
|
||||
A color is represented by red, green, and blue [code](r, g, b)[/code] components. Additionally, [code]a[/code] represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some properties (such as [member CanvasItem.modulate]) may accept values > 1.
|
||||
A color is represented by red, green, and blue [code](r, g, b)[/code] components. Additionally, [code]a[/code] represents the alpha component, often used for transparency. Values are in floating-point and usually range from 0 to 1. Some properties (such as [member CanvasItem.modulate]) may accept values greater than 1.
|
||||
You can also create a color from standardized color names by using [method @GDScript.ColorN].
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -19,9 +19,9 @@
|
|||
Constructs a color from an HTML hexadecimal color string in ARGB or RGB format. See also [method @GDScript.ColorN].
|
||||
[codeblock]
|
||||
# Each of the following creates the same color RGBA(178, 217, 10, 255)
|
||||
var c1 = Color("#ffb2d90a") # ARGB format with '#'
|
||||
var c1 = Color("#ffb2d90a") # ARGB format with "#"
|
||||
var c2 = Color("ffb2d90a") # ARGB format
|
||||
var c3 = Color("#b2d90a") # RGB format with '#'
|
||||
var c3 = Color("#b2d90a") # RGB format with "#"
|
||||
var c4 = Color("b2d90a") # RGB format
|
||||
[/codeblock]
|
||||
</description>
|
||||
|
@ -136,7 +136,7 @@
|
|||
The gray value is calculated as [code](r + g + b) / 3[/code].
|
||||
[codeblock]
|
||||
var c = Color(0.2, 0.45, 0.82)
|
||||
var gray = c.gray() # a value of 0.466667
|
||||
var gray = c.gray() # A value of 0.466667
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -147,7 +147,7 @@
|
|||
Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code].
|
||||
[codeblock]
|
||||
var c = Color(0.3, 0.4, 0.9)
|
||||
var inverted_color = c.inverted() # a color of an RGBA(178, 153, 26, 255)
|
||||
var inverted_color = c.inverted() # A color of an RGBA(178, 153, 26, 255)
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -176,7 +176,7 @@
|
|||
[codeblock]
|
||||
var c1 = Color(1.0, 0.0, 0.0)
|
||||
var c2 = Color(0.0, 1.0, 0.0)
|
||||
var li_c = c1.linear_interpolate(c2, 0.5) # a color of an RGBA(128, 128, 0, 255)
|
||||
var li_c = c1.linear_interpolate(c2, 0.5) # A color of an RGBA(128, 128, 0, 255)
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -234,8 +234,8 @@
|
|||
Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from the hexadecimal string.
|
||||
[codeblock]
|
||||
var c = Color(1, 1, 1, 0.5)
|
||||
var s1 = c.to_html() # Results "7fffffff"
|
||||
var s2 = c.to_html(false) # Results 'ffffff'
|
||||
var s1 = c.to_html() # Returns "7fffffff"
|
||||
var s2 = c.to_html(false) # Returns "ffffff"
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
<argument index="0" name="color" type="Color">
|
||||
</argument>
|
||||
<description>
|
||||
Adds the given color to a list of color presets. The presets are displayed in the color picker and the user will be able to select them. Note: the presets list is only for [i]this[/i] color picker.
|
||||
Adds the given color to a list of color presets. The presets are displayed in the color picker and the user will be able to select them.
|
||||
[b]Note:[/b] the presets list is only for [i]this[/i] color picker.
|
||||
</description>
|
||||
</method>
|
||||
<method name="erase_preset">
|
||||
|
@ -24,7 +25,7 @@
|
|||
<argument index="0" name="color" type="Color">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the given color from the list of color presets of this color picker.
|
||||
Removes the given color from the list of color presets of this color picker.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_presets" qualifiers="const">
|
||||
|
@ -46,7 +47,7 @@
|
|||
If [code]true[/code], shows an alpha channel slider (transparency).
|
||||
</member>
|
||||
<member name="hsv_mode" type="bool" setter="set_hsv_mode" getter="is_hsv_mode">
|
||||
If [code]true[/code], allows to edit color with Hue/Saturation/Value sliders.
|
||||
If [code]true[/code], allows editing the color with Hue/Saturation/Value sliders.
|
||||
[b]Note:[/b] Cannot be enabled if raw mode is on.
|
||||
</member>
|
||||
<member name="presets_enabled" type="bool" setter="set_presets_enabled" getter="are_presets_enabled">
|
||||
|
@ -55,7 +56,7 @@
|
|||
</member>
|
||||
<member name="raw_mode" type="bool" setter="set_raw_mode" getter="is_raw_mode">
|
||||
If [code]true[/code], allows the color R, G, B component values to go beyond 1.0, which can be used for certain special operations that require it (like tinting without darkening or rendering sprites in HDR).
|
||||
[b]Note:[/b] Cannot be enabled if hsv mode is on.
|
||||
[b]Note:[/b] Cannot be enabled if HSV mode is on.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<argument index="0" name="faces" type="PoolVector3Array">
|
||||
</argument>
|
||||
<description>
|
||||
Set the faces (an array of triangles).
|
||||
Sets the faces (an array of triangles).
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Concave polygon 2D shape resource for physics.
|
||||
</brief_description>
|
||||
<description>
|
||||
Concave polygon 2D shape resource for physics. It is made out of segments and is very optimal for complex polygonal concave collisions. It is really not advised to use for [RigidBody2D] nodes. A CollisionPolygon2D in convex decomposition mode (solids) or several convex objects are advised for that instead. Otherwise, a concave polygon 2D shape is better for static collisions.
|
||||
Concave polygon 2D shape resource for physics. It is made out of segments and is optimal for complex polygonal concave collisions. However, it is not advised to use for [RigidBody2D] nodes. A CollisionPolygon2D in convex decomposition mode (solids) or several convex objects are advised for that instead. Otherwise, a concave polygon 2D shape is better for static collisions.
|
||||
The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</brief_description>
|
||||
<description>
|
||||
The joint can rotate the bodies across an axis defined by the local x-axes of the [Joint].
|
||||
The twist axis is initiated as the x-axis of the [Joint].
|
||||
The twist axis is initiated as the X axis of the [Joint].
|
||||
Once the Bodies swing, the twist axis is calculated as the middle of the x-axes of the Joint in the local space of the two Bodies.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
[codeblock]
|
||||
var config = ConfigFile.new()
|
||||
var err = config.load("user://settings.cfg")
|
||||
if err == OK: # if not, something went wrong with the file loading
|
||||
if err == OK: # If not, something went wrong with the file loading
|
||||
# Look for the display/width pair, and default to 1024 if missing
|
||||
var screen_width = config.get_value("display", "width", 1024)
|
||||
# Store a variable if and only if it hasn't been defined yet
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
All User Interface nodes inherit from Control. A control's anchors and margins adapt its position and size relative to its parent.
|
||||
</brief_description>
|
||||
<description>
|
||||
Base class for all User Interface or [i]UI[/i] related nodes. [Control] features a bounding rectangle that defines its extents, an anchor position relative to its parent control or the current viewport, and margins that represent an offset to the anchor. The margins update automatically when the node, any of its parents, or the screen size change.
|
||||
Base class for all UI-related nodes. [Control] features a bounding rectangle that defines its extents, an anchor position relative to its parent control or the current viewport, and margins that represent an offset to the anchor. The margins update automatically when the node, any of its parents, or the screen size change.
|
||||
For more information on Godot's UI system, anchors, margins, and containers, see the related tutorials in the manual. To build flexible UIs, you'll need a mix of UI elements that inherit from [Control] and [Container] nodes.
|
||||
[b]User Interface nodes and input[/b]
|
||||
Godot sends input events to the scene's root node first, by calling [method Node._input]. [method Node._input] forwards the event down the node tree to the nodes under the mouse cursor, or on keyboard focus. To do so, it calls [method MainLoop._input_event]. Call [method accept_event] so no other node receives the event. Once you accepted an input, it becomes handled so [method Node._unhandled_input] will not process it.
|
||||
Only one [Control] node can be in keyboard focus. Only the node in focus will receive keyboard events. To get the focus, call [method grab_focus]. [Control] nodes lose focus when another node grabs it, or if you hide the node in focus.
|
||||
Set [member mouse_filter] to [constant MOUSE_FILTER_IGNORE] to tell a [Control] node to ignore mouse or touch events. You'll need it if you place an icon on top of a button.
|
||||
Sets [member mouse_filter] to [constant MOUSE_FILTER_IGNORE] to tell a [Control] node to ignore mouse or touch events. You'll need it if you place an icon on top of a button.
|
||||
[Theme] resources change the Control's appearance. If you change the [Theme] on a [Control] node, it affects all of its children. To override some of the theme's parameters, call one of the [code]add_*_override[/code] methods, like [method add_font_override]. You can override the theme with the inspector.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
@ -135,9 +135,9 @@
|
|||
extends Control
|
||||
|
||||
func can_drop_data(position, data):
|
||||
# check position if it is relevant to you
|
||||
# otherwise just check data
|
||||
return typeof(data) == TYPE_DICTIONARY and data.has('expected')
|
||||
# Check position if it is relevant to you
|
||||
# Otherwise, just check data
|
||||
return typeof(data) == TYPE_DICTIONARY and data.has("expected")
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -154,10 +154,10 @@
|
|||
extends ColorRect
|
||||
|
||||
func can_drop_data(position, data):
|
||||
return typeof(data) == TYPE_DICTIONARY and data.has('color')
|
||||
return typeof(data) == TYPE_DICTIONARY and data.has("color")
|
||||
|
||||
func drop_data(position, data):
|
||||
color = data['color']
|
||||
color = data["color"]
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
|
@ -221,7 +221,7 @@
|
|||
<argument index="0" name="position" type="Vector2">
|
||||
</argument>
|
||||
<description>
|
||||
Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns null if there is no data to drag. Controls that want to receive drop data should implement [method can_drop_data] and [method drop_data]. [code]position[/code] is local to this control. Drag may be forced with [method force_drag].
|
||||
Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns [code]null[/code] if there is no data to drag. Controls that want to receive drop data should implement [method can_drop_data] and [method drop_data]. [code]position[/code] is local to this control. Drag may be forced with [method force_drag].
|
||||
A preview that will follow the mouse that should represent the data can be set with [method set_drag_preview]. A good time to set the preview is in this method.
|
||||
[codeblock]
|
||||
extends Control
|
||||
|
@ -862,16 +862,16 @@
|
|||
Show the system's forbidden mouse cursor when the user hovers the node. Often a crossed circle.
|
||||
</constant>
|
||||
<constant name="CURSOR_VSIZE" value="9" enum="CursorShape">
|
||||
Show the system's vertical resize mouse cursor when the user hovers the node. A double headed vertical arrow. It tells the user they can resize the window or the panel vertically.
|
||||
Show the system's vertical resize mouse cursor when the user hovers the node. A double-headed vertical arrow. It tells the user they can resize the window or the panel vertically.
|
||||
</constant>
|
||||
<constant name="CURSOR_HSIZE" value="10" enum="CursorShape">
|
||||
Show the system's horizontal resize mouse cursor when the user hovers the node. A double headed horizontal arrow. It tells the user they can resize the window or the panel horizontally.
|
||||
Show the system's horizontal resize mouse cursor when the user hovers the node. A double-headed horizontal arrow. It tells the user they can resize the window or the panel horizontally.
|
||||
</constant>
|
||||
<constant name="CURSOR_BDIAGSIZE" value="11" enum="CursorShape">
|
||||
Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double headed arrow that goes from the bottom left to the top right. It tells the user they can resize the window or the panel both horizontally and vertically.
|
||||
Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double-headed arrow that goes from the bottom left to the top right. It tells the user they can resize the window or the panel both horizontally and vertically.
|
||||
</constant>
|
||||
<constant name="CURSOR_FDIAGSIZE" value="12" enum="CursorShape">
|
||||
Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double headed arrow that goes from the top left to the bottom right, the opposite of [constant CURSOR_BDIAGSIZE]. It tells the user they can resize the window or the panel both horizontally and vertically.
|
||||
Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double-headed arrow that goes from the top left to the bottom right, the opposite of [constant CURSOR_BDIAGSIZE]. It tells the user they can resize the window or the panel both horizontally and vertically.
|
||||
</constant>
|
||||
<constant name="CURSOR_MOVE" value="13" enum="CursorShape">
|
||||
Show the system's move mouse cursor when the user hovers the node. It shows 2 double-headed arrows at a 90 degree angle. It tells the user they can move a UI element freely.
|
||||
|
@ -931,7 +931,7 @@
|
|||
Snap all 4 anchors to a horizontal line that cuts the parent control in half. Use with [method set_anchors_preset].
|
||||
</constant>
|
||||
<constant name="PRESET_WIDE" value="15" enum="LayoutPreset">
|
||||
Snap all 4 anchors to the respective corners of the parent control. Set all 4 margins to 0 after you applied this preset and the [Control] will fit its parent control. This is equivalent to to the "Full Rect" layout option in the editor. Use with [method set_anchors_preset].
|
||||
Snap all 4 anchors to the respective corners of the parent control. Set all 4 margins to 0 after you applied this preset and the [Control] will fit its parent control. This is equivalent to the "Full Rect" layout option in the editor. Use with [method set_anchors_preset].
|
||||
</constant>
|
||||
<constant name="PRESET_MODE_MINSIZE" value="0" enum="LayoutPresetMode">
|
||||
</constant>
|
||||
|
@ -957,13 +957,13 @@
|
|||
Tells the parent [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 [member size_flags_horizontal] and [member size_flags_vertical].
|
||||
</constant>
|
||||
<constant name="MOUSE_FILTER_STOP" value="0" enum="MouseFilter">
|
||||
The control will receive mouse button input events through [method _gui_input] if clicked on. And the control will receive the [signal mouse_entered] and [signal mouse_exited] signals. These events are automatically marked as handled and they will not propagate further to other controls. This also results in blocking signals in other controls.
|
||||
The control will receive mouse button input events through [method _gui_input] if clicked on. And the control will receive the [signal mouse_entered] and [signal mouse_exited] signals. These events are automatically marked as handled, and they will not propagate further to other controls. This also results in blocking signals in other controls.
|
||||
</constant>
|
||||
<constant name="MOUSE_FILTER_PASS" value="1" enum="MouseFilter">
|
||||
The control will receive mouse button input events through [method _gui_input] if clicked on. And the control will receive the [signal mouse_entered] and [signal mouse_exited] signals. If this control does not handle the event, the parent control (if any) will be considered, and so on until there is no more parent control to potentially handle it. This also allows signals to fire in other controls. Even if no control handled it at all, the event will still be handled automatically, so unhandled input will not be fired.
|
||||
</constant>
|
||||
<constant name="MOUSE_FILTER_IGNORE" value="2" enum="MouseFilter">
|
||||
The control will not receive mouse button input events through [method _gui_input]. Also the control will not receive the [signal mouse_entered] nor [signal mouse_exited] signals. This will not block other controls from receiving these events or firing the signals. Ignored events will not be handled automatically.
|
||||
The control will not receive mouse button input events through [method _gui_input]. The control will also not receive the [signal mouse_entered] nor [signal mouse_exited] signals. This will not block other controls from receiving these events or firing the signals. Ignored events will not be handled automatically.
|
||||
</constant>
|
||||
<constant name="GROW_DIRECTION_BEGIN" value="0" enum="GrowDirection">
|
||||
The control will grow to the left or top to make up if its minimum size is changed to be greater than its current size on the respective axis.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="ConvexPolygonShape2D" inherits="Shape2D" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Convex Polygon Shape for 2D physics.
|
||||
Convex polygon shape for 2D physics.
|
||||
</brief_description>
|
||||
<description>
|
||||
Convex Polygon Shape for 2D physics. A convex polygon, whatever its shape, is internally decomposed into as many convex polygons as needed to ensure all collision checks against it are always done on convex polygons (which are faster to check).
|
||||
Convex polygon shape for 2D physics. A convex polygon, whatever its shape, is internally decomposed into as many convex polygons as needed to ensure all collision checks against it are always done on convex polygons (which are faster to check).
|
||||
The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection.
|
||||
</description>
|
||||
<tutorials>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="CubeMap" inherits="Resource" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
A CubeMap is a 6 sided 3D texture.
|
||||
A CubeMap is a 6-sided 3D texture.
|
||||
</brief_description>
|
||||
<description>
|
||||
A 6-sided 3D texture typically used for faking reflections. It can be used to make an object look as if it's reflecting its surroundings. This usually delivers much better performance than other reflection methods.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
Size of the cuboid mesh. Defaults to (2, 2, 2).
|
||||
</member>
|
||||
<member name="subdivide_depth" type="int" setter="set_subdivide_depth" getter="get_subdivide_depth">
|
||||
Number of extra edge loops inserted along the z-axis. Defaults to 0.
|
||||
Number of extra edge loops inserted along the Z axis. Defaults to 0.
|
||||
</member>
|
||||
<member name="subdivide_height" type="int" setter="set_subdivide_height" getter="get_subdivide_height">
|
||||
Number of extra edge loops inserted along the y-axis. Defaults to 0.
|
||||
Number of extra edge loops inserted along the Y axis. Defaults to 0.
|
||||
</member>
|
||||
<member name="subdivide_width" type="int" setter="set_subdivide_width" getter="get_subdivide_width">
|
||||
Number of extra edge loops inserted along the x-axis. Defaults to 0.
|
||||
Number of extra edge loops inserted along the X axis. Defaults to 0.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
A mathematic curve.
|
||||
</brief_description>
|
||||
<description>
|
||||
A curve that can be saved and re-used for other objects. By default it ranges between [code]0[/code] and [code]1[/code] on the y-axis and positions points relative to the [code]0.5[/code] y-position.
|
||||
A curve that can be saved and re-used for other objects. By default, it ranges between [code]0[/code] and [code]1[/code] on the Y axis and positions points relative to the [code]0.5[/code] Y position.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<argument index="0" name="index" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the left [code]TangentMode[/code] for the point at [code]index[/code].
|
||||
Returns the left [enum TangentMode] for the point at [code]index[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_left_tangent" qualifiers="const">
|
||||
|
@ -87,7 +87,7 @@
|
|||
<argument index="0" name="index" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the right [code]TangentMode[/code] for the point at [code]index[/code].
|
||||
Returns the right [enum TangentMode] for the point at [code]index[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_point_right_tangent" qualifiers="const">
|
||||
|
@ -105,7 +105,7 @@
|
|||
<argument index="0" name="offset" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the y value for the point that would exist at x-position [code]offset[/code] along the curve.
|
||||
Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve.
|
||||
</description>
|
||||
</method>
|
||||
<method name="interpolate_baked">
|
||||
|
@ -114,7 +114,7 @@
|
|||
<argument index="0" name="offset" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the y value for the point that would exist at x-position [code]offset[/code] along the curve using the baked cache. Bakes the curve's points if not already baked.
|
||||
Returns the Y value for the point that would exist at the X position [code]offset[/code] along the curve using the baked cache. Bakes the curve's points if not already baked.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_point">
|
||||
|
@ -134,7 +134,7 @@
|
|||
<argument index="1" name="mode" type="int" enum="Curve.TangentMode">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the left [code]TangentMode[/code] for the point at [code]index[/code] to [code]mode[/code].
|
||||
Sets the left [enum TangentMode] for the point at [code]index[/code] to [code]mode[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_left_tangent">
|
||||
|
@ -156,7 +156,7 @@
|
|||
<argument index="1" name="offset" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the offset from [code]0.5[/code]
|
||||
Sets the offset from [code]0.5[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_right_mode">
|
||||
|
@ -167,7 +167,7 @@
|
|||
<argument index="1" name="mode" type="int" enum="Curve.TangentMode">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the right [code]TangentMode[/code] for the point at [code]index[/code] to [code]mode[/code].
|
||||
Sets the right [enum TangentMode] for the point at [code]index[/code] to [code]mode[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_point_right_tangent">
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Curve2D" inherits="Resource" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Describes a Bezier curve in 2D space.
|
||||
Describes a Bézier curve in 2D space.
|
||||
</brief_description>
|
||||
<description>
|
||||
This class describes a Bezier curve in 2D space. It is mainly used to give a shape to a [Path2D], but can be manually sampled for other purposes.
|
||||
It keeps a cache of precalculated points along the curve, to speed further calculations up.
|
||||
This class describes a Bézier curve in 2D space. It is mainly used to give a shape to a [Path2D], but can be manually sampled for other purposes.
|
||||
It keeps a cache of precalculated points along the curve, to speed up further calculations.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<argument index="3" name="at_position" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a point to a curve, at [code]position[/code], with control points [code]in[/code] and [code]out[/code].
|
||||
Adds a point to a curve at [code]position[/code], with control points [code]in[/code] and [code]out[/code].
|
||||
If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position <0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Curve3D" inherits="Resource" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Describes a Bezier curve in 3D space.
|
||||
Describes a Bézier curve in 3D space.
|
||||
</brief_description>
|
||||
<description>
|
||||
This class describes a Bezier curve in 3D space. It is mainly used to give a shape to a [Path], but can be manually sampled for other purposes.
|
||||
It keeps a cache of precalculated points along the curve, to speed further calculations up.
|
||||
This class describes a Bézier curve in 3D space. It is mainly used to give a shape to a [Path], but can be manually sampled for other purposes.
|
||||
It keeps a cache of precalculated points along the curve, to speed up further calculations.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -22,7 +22,7 @@
|
|||
<argument index="3" name="at_position" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a point to a curve, at [code]position[/code], with control points [code]in[/code] and [code]out[/code].
|
||||
Adds a point to a curve at [code]position[/code], with control points [code]in[/code] and [code]out[/code].
|
||||
If [code]at_position[/code] is given, the point is inserted before the point number [code]at_position[/code], moving that point (and every point after) after the inserted point. If [code]at_position[/code] is not given, or is an illegal value ([code]at_position <0[/code] or [code]at_position >= [method get_point_count][/code]), the point will be appended at the end of the point list.
|
||||
</description>
|
||||
</method>
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="damping" type="float" setter="set_damping" getter="get_damping">
|
||||
The spring joint's damping ratio. A value between [code]0[/code] and [code]1[/code]. When the two bodies move into different directions the system tries to align them to the spring axis again. A high [code]damping[/code] value forces the attached bodies to align faster. Default value: [code]1[/code]
|
||||
The spring joint's damping ratio. A value between [code]0[/code] and [code]1[/code]. When the two bodies move into different directions the system tries to align them to the spring axis again. A high [code]damping[/code] value forces the attached bodies to align faster. Default value: [code]1[/code].
|
||||
</member>
|
||||
<member name="length" type="float" setter="set_length" getter="get_length">
|
||||
The spring joint's maximum length. The two attached bodies cannot stretch it past this value. Default value: [code]50[/code]
|
||||
The spring joint's maximum length. The two attached bodies cannot stretch it past this value. Default value: [code]50[/code].
|
||||
</member>
|
||||
<member name="rest_length" type="float" setter="set_rest_length" getter="get_rest_length">
|
||||
When the bodies attached to the spring joint move they stretch or squash it. The joint always tries to resize towards this length. Default value: [code]0[/code]
|
||||
When the bodies attached to the spring joint move they stretch or squash it. The joint always tries to resize towards this length. Default value: [code]0[/code].
|
||||
</member>
|
||||
<member name="stiffness" type="float" setter="set_stiffness" getter="get_stiffness">
|
||||
The higher the value, the less the bodies attached to the joint will deform it. The joint applies an opposing force to the bodies, the product of the stiffness multiplied by the size difference from its resting length. Default value: [code]20[/code]
|
||||
The higher the value, the less the bodies attached to the joint will deform it. The joint applies an opposing force to the bodies, the product of the stiffness multiplied by the size difference from its resting length. Default value: [code]20[/code].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<argument index="0" name="key" type="Variant">
|
||||
</argument>
|
||||
<description>
|
||||
Erase a dictionary key/value pair by key. Returns [code]true[/code] if the given key was present in the dictionary, [code]false[/code] otherwise. Do not erase elements while iterating over the dictionary.
|
||||
Erase a dictionary key/value pair by key. Returns [code]true[/code] if the given key was present in the dictionary, [code]false[/code] otherwise. Does not erase elements while iterating over the dictionary.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get">
|
||||
|
@ -58,7 +58,7 @@
|
|||
<argument index="1" name="default" type="Variant" default="Null">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the current value for the specified key in the [Dictionary]. If the key does not exist, the method returns the value of the optional default argument, or Null if it is omitted.
|
||||
Returns the current value for the specified key in the [Dictionary]. If the key does not exist, the method returns the value of the optional default argument, or [code]null[/code] if it is omitted.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Directional light from a distance, as from the Sun.
|
||||
</brief_description>
|
||||
<description>
|
||||
A directional light is a type of [Light] node that models an infinite number of parallel rays covering the entire scene. It is used for lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldspace location of the DirectionalLight transform (origin) is ignored. Only the basis is used do determine light direction.
|
||||
A directional light is a type of [Light] node that models an infinite number of parallel rays covering the entire scene. It is used for lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldspace location of the DirectionalLight transform (origin) is ignored. Only the basis is used to determine light direction.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/3d/lights_and_shadows.html</link>
|
||||
|
@ -13,10 +13,10 @@
|
|||
</methods>
|
||||
<members>
|
||||
<member name="directional_shadow_bias_split_scale" type="float" setter="set_param" getter="get_param">
|
||||
Amount of extra bias for shadow splits that are far away. If self shadowing occurs only on the splits far away, this value can fix them.
|
||||
Amount of extra bias for shadow splits that are far away. If self-shadowing occurs only on the splits far away, increasing this value can fix them.
|
||||
</member>
|
||||
<member name="directional_shadow_blend_splits" type="bool" setter="set_blend_splits" getter="is_blend_splits_enabled">
|
||||
If [code]true[/code], shadow detail is sacrificed in exchange for smoother transitions between splits. Default value:[code]false[/code].
|
||||
If [code]true[/code], shadow detail is sacrificed in exchange for smoother transitions between splits. Default value: [code]false[/code].
|
||||
</member>
|
||||
<member name="directional_shadow_depth_range" type="int" setter="set_shadow_depth_range" getter="get_shadow_depth_range" enum="DirectionalLight.ShadowDepthRange">
|
||||
Optimizes shadow rendering for detail versus movement. See [enum ShadowDepthRange].
|
||||
|
@ -31,10 +31,10 @@
|
|||
Can be used to fix special cases of self shadowing when objects are perpendicular to the light.
|
||||
</member>
|
||||
<member name="directional_shadow_split_1" type="float" setter="set_param" getter="get_param">
|
||||
The distance from camera to shadow split 1. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is one of the [code]SHADOW_PARALLEL_*_SPLITS[/code] constants.
|
||||
The distance from camera to shadow split 1. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_2_SPLITS[/code] or [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
</member>
|
||||
<member name="directional_shadow_split_2" type="float" setter="set_param" getter="get_param">
|
||||
The distance from shadow split 1 to split 2. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_3_SPLITS[/code] or [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
The distance from shadow split 1 to split 2. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_2_SPLITS[/code] or [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
</member>
|
||||
<member name="directional_shadow_split_3" type="float" setter="set_param" getter="get_param">
|
||||
The distance from shadow split 2 to split 3. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
<argument index="0" name="todir" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Change the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] (OK or ERR_*).
|
||||
Changes the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code] or [code]ERR_*[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="copy">
|
||||
|
@ -44,8 +44,8 @@
|
|||
<argument index="1" name="to" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Copy the [i]from[/i] file to the [i]to[/i] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten.
|
||||
Returns one of the error code constants defined in [@GlobalScope] (OK, FAILED or ERR_*).
|
||||
Copies the [code]from[/code] file to the [code]to[/code] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten.
|
||||
Returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code], [code]FAILED[/code] or [code]ERR_*[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="current_is_dir" qualifiers="const">
|
||||
|
@ -93,14 +93,14 @@
|
|||
<argument index="0" name="idx" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
On Windows, return the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not existed, the method returns an empty String.
|
||||
On Windows, returns the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not existed, the method returns an empty String.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_drive_count">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
On Windows, return the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0.
|
||||
On Windows, returns the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_next">
|
||||
|
@ -115,7 +115,7 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
On Unix desktop systems, return the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1.
|
||||
On UNIX desktop systems, returns the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1.
|
||||
</description>
|
||||
</method>
|
||||
<method name="list_dir_begin">
|
||||
|
@ -126,7 +126,7 @@
|
|||
<argument index="1" name="skip_hidden" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Initialize the stream used to list all files and directories using the [method get_next] function, closing the current opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end].
|
||||
Initializes the stream used to list all files and directories using the [method get_next] function, closing the current opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end].
|
||||
If you pass [code]skip_navigational[/code], then [code].[/code] and [code]..[/code] would be filtered out.
|
||||
If you pass [code]skip_hidden[/code], then hidden files would be filtered out.
|
||||
</description>
|
||||
|
@ -135,7 +135,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Close the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] or not does not matter).
|
||||
Closes the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] or not does not matter).
|
||||
</description>
|
||||
</method>
|
||||
<method name="make_dir">
|
||||
|
@ -144,8 +144,8 @@
|
|||
<argument index="0" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Create a directory. The argument can be relative to the current directory, or an absolute path. The target directory should be placed in an already existing directory (to create the full path recursively, see [method make_dir_recursive]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] (OK, FAILED or ERR_*).
|
||||
Creates a directory. The argument can be relative to the current directory, or an absolute path. The target directory should be placed in an already existing directory (to create the full path recursively, see [method make_dir_recursive]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code], [code]FAILED[/code] or [code]ERR_*[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="make_dir_recursive">
|
||||
|
@ -154,8 +154,8 @@
|
|||
<argument index="0" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Create a target directory and all necessary intermediate directories in its path, by calling [method make_dir] recursively. The argument can be relative to the current directory, or an absolute path.
|
||||
Returns one of the error code constants defined in [@GlobalScope] (OK, FAILED or ERR_*).
|
||||
Creates a target directory and all necessary intermediate directories in its path, by calling [method make_dir] recursively. The argument can be relative to the current directory, or an absolute path.
|
||||
Returns one of the error code constants defined in [@GlobalScope] ([code]0K[/code], [code]FAILED[/code] or [code]ERR_*[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="open">
|
||||
|
@ -164,8 +164,8 @@
|
|||
<argument index="0" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Open an existing directory of the filesystem. The [i]path[/i] argument can be within the project tree ([code]res://folder[/code]), the user directory ([code]user://folder[/code]) or an absolute path of the user filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\tmp\folder[/code]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] (OK or ERR_*).
|
||||
Opens an existing directory of the filesystem. The [code]path[/code] argument can be within the project tree ([code]res://folder[/code]), the user directory ([code]user://folder[/code]) or an absolute path of the user filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\tmp\folder[/code]).
|
||||
The method returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code] or [code]ERR_*[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove">
|
||||
|
@ -174,8 +174,8 @@
|
|||
<argument index="0" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Delete the target file or an empty directory. The argument can be relative to the current directory, or an absolute path. If the target directory is not empty, the operation will fail.
|
||||
Returns one of the error code constants defined in [@GlobalScope] (OK or FAILED).
|
||||
Deletes the target file or an empty directory. The argument can be relative to the current directory, or an absolute path. If the target directory is not empty, the operation will fail.
|
||||
Returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code] or [code]FAILED[/code]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="rename">
|
||||
|
@ -186,8 +186,8 @@
|
|||
<argument index="1" name="to" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Rename (move) the [i]from[/i] file to the [i]to[/i] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten.
|
||||
Returns one of the error code constants defined in [@GlobalScope] (OK or FAILED).
|
||||
Renames (move) the [code]from[/code] file to the [code]to[/code] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten.
|
||||
Returns one of the error code constants defined in [@GlobalScope] ([code]OK[/code] or [code]FAILED[/code]).
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</members>
|
||||
<constants>
|
||||
<constant name="HINTING_NONE" value="0" enum="Hinting">
|
||||
Disable font hinting (smoother but less crisp).
|
||||
Disables font hinting (smoother but less crisp).
|
||||
</constant>
|
||||
<constant name="HINTING_LIGHT" value="1" enum="Hinting">
|
||||
Use the light font hinting mode.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</argument>
|
||||
<description>
|
||||
Adds a comma-delimited file extension filter option to the [EditorFileDialog] with an optional semi-colon-delimited label.
|
||||
Example: "*.tscn, *.scn; Scenes", results in filter text "Scenes (*.tscn, *.scn)".
|
||||
For example, [code]"*.tscn, *.scn; Scenes"[/code] results in filter text "Scenes (*.tscn, *.scn)".
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_filters">
|
||||
|
@ -59,7 +59,7 @@
|
|||
The view format in which the [EditorFileDialog] displays resources to the user.
|
||||
</member>
|
||||
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="EditorFileDialog.Mode">
|
||||
The purpose of the [EditorFileDialog]. Changes allowed behaviors.
|
||||
The purpose of the [EditorFileDialog], which defines the allowed behaviors.
|
||||
</member>
|
||||
<member name="show_hidden_files" type="bool" setter="set_show_hidden_files" getter="is_showing_hidden_files">
|
||||
If [code]true[/code], hidden files and directories will be visible in the [EditorFileDialog].
|
||||
|
|
|
@ -15,14 +15,14 @@
|
|||
<argument index="0" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Get the type of the file, given the full path.
|
||||
Gets the type of the file, given the full path.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_filesystem">
|
||||
<return type="EditorFileSystemDirectory">
|
||||
</return>
|
||||
<description>
|
||||
Get the root directory object.
|
||||
Gets the root directory object.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_filesystem_path">
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
<return type="EditorFileSystemDirectory">
|
||||
</return>
|
||||
<description>
|
||||
Returns the parent directory for this directory or null if called on a directory at [code]res://[/code] or [code]user://[/code].
|
||||
Returns the parent directory for this directory or [code]null[/code] if called on a directory at [code]res://[/code] or [code]user://[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_path" qualifiers="const">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</brief_description>
|
||||
<description>
|
||||
EditorImportPlugins provide a way to extend the editor's resource import functionality. Use them to import resources from custom files or to provide alternatives to the editor's existing importers. Register your [EditorPlugin] with [method EditorPlugin.add_import_plugin].
|
||||
EditorImportPlugins work by associating with specific file extensions and a resource type. See [method get_recognized_extensions] and [method get_resource_type]). They may optionally specify some import presets that affect the import process. EditorImportPlugins are responsible for creating the resources and saving them in the [code].import[/code] directory.
|
||||
EditorImportPlugins work by associating with specific file extensions and a resource type. See [method get_recognized_extensions] and [method get_resource_type]. They may optionally specify some import presets that affect the import process. EditorImportPlugins are responsible for creating the resources and saving them in the [code].import[/code] directory.
|
||||
Below is an example EditorImportPlugin that imports a [Mesh] from a file with the extension ".special" or ".spec":
|
||||
[codeblock]
|
||||
tool
|
||||
|
@ -41,7 +41,7 @@
|
|||
return FAILED
|
||||
|
||||
var mesh = Mesh.new()
|
||||
# Fill the Mesh with data read in 'file', left as exercise to the reader
|
||||
# Fill the Mesh with data read in "file", left as an exercise to the reader
|
||||
|
||||
var filename = save_path + "." + get_save_extension()
|
||||
ResourceSaver.save(filename, mesh)
|
||||
|
@ -58,21 +58,21 @@
|
|||
<argument index="0" name="preset" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the options and default values for the preset at this index. Returns an Array of Dictionaries with the following keys: [code]name[/code], [code]default_value[/code], [code]property_hint[/code] (optional), [code]hint_string[/code] (optional), [code]usage[/code] (optional).
|
||||
Gets the options and default values for the preset at this index. Returns an Array of Dictionaries with the following keys: [code]name[/code], [code]default_value[/code], [code]property_hint[/code] (optional), [code]hint_string[/code] (optional), [code]usage[/code] (optional).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_import_order" qualifiers="virtual">
|
||||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Get the order of this importer to be run when importing resources. Higher values will be called later. Use this to ensure the importer runs after the dependencies are already imported.
|
||||
Gets the order of this importer to be run when importing resources. Higher values will be called later. Use this to ensure the importer runs after the dependencies are already imported.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_importer_name" qualifiers="virtual">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get the unique name of the importer.
|
||||
Gets the unique name of the importer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_option_visibility" qualifiers="virtual">
|
||||
|
@ -89,7 +89,7 @@
|
|||
<return type="int">
|
||||
</return>
|
||||
<description>
|
||||
Get the number of initial presets defined by the plugin. Use [method get_import_options] to get the default options for the preset and [method get_preset_name] to get the name of the preset.
|
||||
Gets the number of initial presets defined by the plugin. Use [method get_import_options] to get the default options for the preset and [method get_preset_name] to get the name of the preset.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_preset_name" qualifiers="virtual">
|
||||
|
@ -98,42 +98,42 @@
|
|||
<argument index="0" name="preset" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Get the name of the options preset at this index.
|
||||
Gets the name of the options preset at this index.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_priority" qualifiers="virtual">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Get the priority of this plugin for the recognized extension. Higher priority plugins will be preferred. Default value is 1.0.
|
||||
Gets the priority of this plugin for the recognized extension. Higher priority plugins will be preferred. Default value is 1.0.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_recognized_extensions" qualifiers="virtual">
|
||||
<return type="Array">
|
||||
</return>
|
||||
<description>
|
||||
Get the list of file extensions to associate with this loader (case insensitive). e.g. [code]["obj"][/code].
|
||||
Gets the list of file extensions to associate with this loader (case-insensitive). e.g. [code]["obj"][/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_resource_type" qualifiers="virtual">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get the Godot resource type associated with this loader. e.g. [code]"Mesh"[/code] or [code]"Animation"[/code].
|
||||
Gets the Godot resource type associated with this loader. e.g. [code]"Mesh"[/code] or [code]"Animation"[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_save_extension" qualifiers="virtual">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get the extension used to save this resource in the [code].import[/code] directory.
|
||||
Gets the extension used to save this resource in the [code].import[/code] directory.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_visible_name" qualifiers="virtual">
|
||||
<return type="String">
|
||||
</return>
|
||||
<description>
|
||||
Get the name to display in the import window.
|
||||
Gets the name to display in the import window.
|
||||
</description>
|
||||
</method>
|
||||
<method name="import" qualifiers="virtual">
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<argument index="0" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Add a custom control, not necessarily a property editor.
|
||||
Adds a custom control, not necessarily a property editor.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_property_editor">
|
||||
|
@ -32,7 +32,7 @@
|
|||
<argument index="1" name="editor" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Add a property editor, this must inherit [EditorProperty].
|
||||
Adds a property editor, this must inherit [EditorProperty].
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_property_editor_for_multiple_properties">
|
||||
|
@ -45,7 +45,7 @@
|
|||
<argument index="2" name="editor" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Add am editor that allows modifying multiple properties, this must inherit [EditorProperty].
|
||||
Adds an editor that allows modifying multiple properties, this must inherit [EditorProperty].
|
||||
</description>
|
||||
</method>
|
||||
<method name="can_handle" qualifiers="virtual">
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
<return type="int" enum="Error">
|
||||
</return>
|
||||
<description>
|
||||
Saves the scene. Returns either OK or ERR_CANT_CREATE. See [@GlobalScope] constants.
|
||||
Saves the scene. Returns either [code]OK[/code] or [code]ERR_CANT_CREATE[/code] (see [@GlobalScope] constants).
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_scene_as">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Used by the editor to extend its functionality.
|
||||
</brief_description>
|
||||
<description>
|
||||
Plugins are used by the editor to extend functionality. The most common types of plugins are those which edit a given node or resource type, import plugins and export plugins. Also see [EditorScript] to add functions to the editor.
|
||||
Plugins are used by the editor to extend functionality. The most common types of plugins are those which edit a given node or resource type, import plugins and export plugins. See also [EditorScript] to add functions to the editor.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>https://docs.godotengine.org/en/latest/tutorials/plugins/editor/index.html</link>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<argument index="1" name="path" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Add a script at [code]path[/code] to the Autoload list as [code]name[/code].
|
||||
Adds a script at [code]path[/code] to the Autoload list as [code]name[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_control_to_bottom_panel">
|
||||
|
@ -29,7 +29,7 @@
|
|||
<argument index="1" name="title" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Add a control to the bottom panel (together with Output, Debug, Animation, etc). Returns a reference to the button added. It's up to you to hide/show the button when needed. When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_bottom_panel] and free it with [code]queue_free()[/code].
|
||||
Adds a control to the bottom panel (together with Output, Debug, Animation, etc). Returns a reference to the button added. It's up to you to hide/show the button when needed. When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_bottom_panel] and free it with [code]queue_free()[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_control_to_container">
|
||||
|
@ -40,7 +40,7 @@
|
|||
<argument index="1" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Add a custom control to a container (see CONTAINER_* enum). There are many locations where custom controls can be added in the editor UI.
|
||||
Adds a custom control to a container (see [code]CONTAINER_*[/code] enum). There are many locations where custom controls can be added in the editor UI.
|
||||
Please remember that you have to manage the visibility of your custom controls yourself (and likely hide it after adding it).
|
||||
When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_container] and free it with [code]queue_free()[/code].
|
||||
</description>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<argument index="1" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Add the control to a specific dock slot (see DOCK_* enum for options).
|
||||
Adds the control to a specific dock slot (see [code]DOCK_*[/code] enum for options).
|
||||
If the dock is repositioned and as long as the plugin is active, the editor will save the dock position on further sessions.
|
||||
When your plugin is deactivated, make sure to remove your custom control with [method remove_control_from_docks] and free it with [code]queue_free()[/code].
|
||||
</description>
|
||||
|
@ -70,9 +70,9 @@
|
|||
<argument index="3" name="icon" type="Texture">
|
||||
</argument>
|
||||
<description>
|
||||
Add a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed.
|
||||
Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed.
|
||||
When given node or resource is selected, the base type will be instanced (ie, "Spatial", "Control", "Resource"), then the script will be loaded and set to this object.
|
||||
You can use the virtual method [method handles] to check if your custom object is being edited by checking the script or using 'is' keyword.
|
||||
You can use the virtual method [method handles] to check if your custom object is being edited by checking the script or using the [code]is[/code] keyword.
|
||||
During run-time, this will be a simple object with a script so this function does not need to be called then.
|
||||
</description>
|
||||
</method>
|
||||
|
@ -128,7 +128,7 @@
|
|||
<argument index="3" name="ud" type="Variant" default="null">
|
||||
</argument>
|
||||
<description>
|
||||
Add a custom menu to 'Project > Tools' as [code]name[/code] that calls [code]callback[/code] on an instance of [code]handler[/code] with a parameter [code]ud[/code] when user activates it.
|
||||
Adds a custom menu to [b]Project > Tools[/b] as [code]name[/code] that calls [code]callback[/code] on an instance of [code]handler[/code] with a parameter [code]ud[/code] when user activates it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="add_tool_submenu_item">
|
||||
|
@ -234,7 +234,7 @@
|
|||
<return type="PoolStringArray">
|
||||
</return>
|
||||
<description>
|
||||
This is for editors that edit script based objects. You can return a list of breakpoints in the format (script:line), for example: res://path_to_script.gd:25
|
||||
This is for editors that edit script-based objects. You can return a list of breakpoints in the format ([code]script:line[/code]), for example: [code]res://path_to_script.gd:25[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_editor_interface">
|
||||
|
@ -260,21 +260,22 @@
|
|||
<return type="ScriptCreateDialog">
|
||||
</return>
|
||||
<description>
|
||||
Gets the Editor's dialogue used for making scripts. Note that users can configure it before use.
|
||||
Gets the Editor's dialogue used for making scripts.
|
||||
[b]Note:[/b] Users can configure it before use.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_state" qualifiers="virtual">
|
||||
<return type="Dictionary">
|
||||
</return>
|
||||
<description>
|
||||
Get the state of your plugin editor. This is used when saving the scene (so state is kept when opening it again) and for switching tabs (so state can be restored when the tab returns).
|
||||
Gets the state of your plugin editor. This is used when saving the scene (so state is kept when opening it again) and for switching tabs (so state can be restored when the tab returns).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_undo_redo">
|
||||
<return type="UndoRedo">
|
||||
</return>
|
||||
<description>
|
||||
Get the undo/redo object. Most actions in the editor can be undoable, so use this object to make sure this happens when it's worth it.
|
||||
Gets the undo/redo object. Most actions in the editor can be undoable, so use this object to make sure this happens when it's worth it.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_window_layout" qualifiers="virtual">
|
||||
|
@ -283,7 +284,7 @@
|
|||
<argument index="0" name="layout" type="ConfigFile">
|
||||
</argument>
|
||||
<description>
|
||||
Get the GUI layout of the plugin. This is used to save the project's editor layout when [method queue_save_layout] is called or the editor layout was changed(For example changing the position of a dock).
|
||||
Gets the GUI layout of the plugin. This is used to save the project's editor layout when [method queue_save_layout] is called or the editor layout was changed(For example changing the position of a dock).
|
||||
</description>
|
||||
</method>
|
||||
<method name="handles" qualifiers="virtual">
|
||||
|
@ -299,7 +300,7 @@
|
|||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspaces selector together with '2D', '3D', and 'Script').
|
||||
Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and [b]AssetLib[/b]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="hide_bottom_panel">
|
||||
|
@ -339,7 +340,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Remove an Autoload [code]name[/code] from the list.
|
||||
Removes an Autoload [code]name[/code] from the list.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_control_from_bottom_panel">
|
||||
|
@ -348,7 +349,7 @@
|
|||
<argument index="0" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the control from the bottom panel. You have to manually [code]queue_free()[/code] the control.
|
||||
Removes the control from the bottom panel. You have to manually [code]queue_free()[/code] the control.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_control_from_container">
|
||||
|
@ -359,7 +360,7 @@
|
|||
<argument index="1" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the control from the specified container. You have to manually [code]queue_free()[/code] the control.
|
||||
Removes the control from the specified container. You have to manually [code]queue_free()[/code] the control.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_control_from_docks">
|
||||
|
@ -368,7 +369,7 @@
|
|||
<argument index="0" name="control" type="Control">
|
||||
</argument>
|
||||
<description>
|
||||
Remove the control from the dock. You have to manually [code]queue_free()[/code] the control.
|
||||
Removes the control from the dock. You have to manually [code]queue_free()[/code] the control.
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_custom_type">
|
||||
|
@ -377,7 +378,7 @@
|
|||
<argument index="0" name="type" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Remove a custom type added by [method add_custom_type]
|
||||
Removes a custom type added by [method add_custom_type].
|
||||
</description>
|
||||
</method>
|
||||
<method name="remove_export_plugin">
|
||||
|
@ -426,7 +427,7 @@
|
|||
<argument index="0" name="name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Removes a menu [code]name[/code] from 'Project > Tools'.
|
||||
Removes a menu [code]name[/code] from [b]Project > Tools[/b].
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_external_data" qualifiers="virtual">
|
||||
|
@ -480,7 +481,7 @@
|
|||
<argument index="0" name="screen_name" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when user changes the workspace (2D, 3D, Script, AssetLib). Also works with custom screens defined by plugins.
|
||||
Emitted when user changes the workspace ([b]2D[/b], [b]3D[/b], [b]Script[/b], [b]AssetLib[/b]). Also works with custom screens defined by plugins.
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="resource_saved">
|
||||
|
@ -493,7 +494,7 @@
|
|||
<argument index="0" name="scene_root" type="Node">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when the scene is changed in the editor. The argument will return the root node of the scene that has just become active. If this scene is new and empty, the argument will be null.
|
||||
Emitted when the scene is changed in the editor. The argument will return the root node of the scene that has just become active. If this scene is new and empty, the argument will be [code]null[/code].
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="scene_closed">
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue