Link to the Random number generation tutorial in RandomNumberGenerator
This was done in `master` already, but not in `3.x`.
(cherry picked from commit 93f4f9e076
)
This commit is contained in:
parent
321a4bfcd8
commit
5e3ed7e014
@ -151,7 +151,7 @@
|
||||
else:
|
||||
simulate_physics()
|
||||
[/codeblock]
|
||||
See [url=https://docs.godotengine.org/en/stable/tutorials/misc/running_code_in_the_editor.html]Running code in the editor[/url] in the documentation for more information.
|
||||
See [url=https://docs.godotengine.org/en/3.3/tutorials/misc/running_code_in_the_editor.html]Running code in the editor[/url] in the documentation for more information.
|
||||
[b]Note:[/b] To detect whether the script is run from an editor [i]build[/i] (e.g. when pressing [code]F5[/code]), use [method OS.has_feature] with the [code]"editor"[/code] argument instead. [code]OS.has_feature("editor")[/code] will evaluate to [code]true[/code] both when the code is running in the editor and when running the project from the editor, but it will evaluate to [code]false[/code] when the code is run from an exported project.
|
||||
</member>
|
||||
<member name="iterations_per_second" type="int" setter="set_iterations_per_second" getter="get_iterations_per_second" default="60">
|
||||
|
@ -16,6 +16,7 @@
|
||||
[b]Note:[/b] The default values of [member seed] and [member state] properties are pseudo-random, and changes when calling [method randomize]. The [code]0[/code] value documented here is a placeholder, and not the actual default seed.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link title="Random number generation">https://docs.godotengine.org/en/3.3/tutorials/math/random_number_generation.html</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="randf">
|
||||
|
Loading…
Reference in New Issue
Block a user