Added docs for DRAW_ORDER_REVERSE_LIFETIME constant and minor XR log improvement

This commit is contained in:
Anutrix 2023-10-05 22:11:05 +05:30
parent e38686f85b
commit 3c82f4a371
6 changed files with 9 additions and 8 deletions

View File

@ -297,7 +297,7 @@
Particles are drawn in the order emitted. Particles are drawn in the order emitted.
</constant> </constant>
<constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder">
Particles are drawn in order of remaining lifetime. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
</constant> </constant>
<constant name="PARAM_INITIAL_LINEAR_VELOCITY" value="0" enum="Parameter"> <constant name="PARAM_INITIAL_LINEAR_VELOCITY" value="0" enum="Parameter">
Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set initial velocity properties. Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set initial velocity properties.

View File

@ -322,7 +322,7 @@
Particles are drawn in the order emitted. Particles are drawn in the order emitted.
</constant> </constant>
<constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder">
Particles are drawn in order of remaining lifetime. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
</constant> </constant>
<constant name="DRAW_ORDER_VIEW_DEPTH" value="2" enum="DrawOrder"> <constant name="DRAW_ORDER_VIEW_DEPTH" value="2" enum="DrawOrder">
Particles are drawn in order of depth. Particles are drawn in order of depth.

View File

@ -141,9 +141,10 @@
Particles are drawn in the order emitted. Particles are drawn in the order emitted.
</constant> </constant>
<constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder">
Particles are drawn in order of remaining lifetime. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
</constant> </constant>
<constant name="DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="DrawOrder"> <constant name="DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="DrawOrder">
Particles are drawn in reverse order of remaining lifetime. In other words, the particle with the lowest lifetime is drawn at the front.
</constant> </constant>
<constant name="EMIT_FLAG_POSITION" value="1" enum="EmitFlags"> <constant name="EMIT_FLAG_POSITION" value="1" enum="EmitFlags">
Particle starts at the specified position. Particle starts at the specified position.

View File

@ -166,9 +166,10 @@
Particles are drawn in the order emitted. Particles are drawn in the order emitted.
</constant> </constant>
<constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder">
Particles are drawn in order of remaining lifetime. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
</constant> </constant>
<constant name="DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="DrawOrder"> <constant name="DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="DrawOrder">
Particles are drawn in reverse order of remaining lifetime. In other words, the particle with the lowest lifetime is drawn at the front.
</constant> </constant>
<constant name="DRAW_ORDER_VIEW_DEPTH" value="3" enum="DrawOrder"> <constant name="DRAW_ORDER_VIEW_DEPTH" value="3" enum="DrawOrder">
Particles are drawn in order of depth. Particles are drawn in order of depth.

View File

@ -4505,9 +4505,10 @@
Draw particles in the order that they appear in the particles array. Draw particles in the order that they appear in the particles array.
</constant> </constant>
<constant name="PARTICLES_DRAW_ORDER_LIFETIME" value="1" enum="ParticlesDrawOrder"> <constant name="PARTICLES_DRAW_ORDER_LIFETIME" value="1" enum="ParticlesDrawOrder">
Sort particles based on their lifetime. Sort particles based on their lifetime. In other words, the particle with the highest lifetime is drawn at the front.
</constant> </constant>
<constant name="PARTICLES_DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="ParticlesDrawOrder"> <constant name="PARTICLES_DRAW_ORDER_REVERSE_LIFETIME" value="2" enum="ParticlesDrawOrder">
Sort particles based on the inverse of their lifetime. In other words, the particle with the lowest lifetime is drawn at the front.
</constant> </constant>
<constant name="PARTICLES_DRAW_ORDER_VIEW_DEPTH" value="3" enum="ParticlesDrawOrder"> <constant name="PARTICLES_DRAW_ORDER_VIEW_DEPTH" value="3" enum="ParticlesDrawOrder">
Sort particles based on their distance to the camera. Sort particles based on their distance to the camera.

View File

@ -198,9 +198,7 @@ void XRServer::remove_interface(const Ref<XRInterface> &p_interface) {
}; };
ERR_FAIL_COND_MSG(idx == -1, "Interface not found."); ERR_FAIL_COND_MSG(idx == -1, "Interface not found.");
print_verbose("XR: Removed interface \"" + p_interface->get_name() + "\"");
print_verbose("XR: Removed interface" + p_interface->get_name());
emit_signal(SNAME("interface_removed"), p_interface->get_name()); emit_signal(SNAME("interface_removed"), p_interface->get_name());
interfaces.remove_at(idx); interfaces.remove_at(idx);
}; };