mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add Callable call_deferred() C# example
This commit is contained in:
@@ -98,10 +98,18 @@
|
|||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Calls the method represented by this [Callable] in deferred mode, i.e. at the end of the current frame. Arguments can be passed and should match the method's signature.
|
Calls the method represented by this [Callable] in deferred mode, i.e. at the end of the current frame. Arguments can be passed and should match the method's signature.
|
||||||
[codeblock]
|
[codeblocks]
|
||||||
|
[gdscript]
|
||||||
func _ready():
|
func _ready():
|
||||||
grab_focus.call_deferred()
|
grab_focus.call_deferred()
|
||||||
[/codeblock]
|
[/gdscript]
|
||||||
|
[csharp]
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
Callable.From(GrabFocus).CallDeferred();
|
||||||
|
}
|
||||||
|
[/csharp]
|
||||||
|
[/codeblocks]
|
||||||
See also [method Object.call_deferred].
|
See also [method Object.call_deferred].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
|||||||
Reference in New Issue
Block a user