소스 검색

Add Callable call_deferred() C# example

31 1 년 전
부모
커밋
0a9715d6b5
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      doc/classes/Callable.xml

+ 10 - 2
doc/classes/Callable.xml

@@ -98,10 +98,18 @@
 			<return type="void" />
 			<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.
-				[codeblock]
+				[codeblocks]
+				[gdscript]
 				func _ready():
 				    grab_focus.call_deferred()
-				[/codeblock]
+				[/gdscript]
+				[csharp]
+				public override void _Ready()
+				{
+				    Callable.From(GrabFocus).CallDeferred();
+				}
+				[/csharp]
+				[/codeblocks]
 				See also [method Object.call_deferred].
 			</description>
 		</method>