浏览代码

Fixed incorrect C# code sample in viewports.rst

LurkerAbove 6 天之前
父节点
当前提交
dc161765e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tutorials/rendering/viewports.rst

+ 1 - 1
tutorials/rendering/viewports.rst

@@ -181,7 +181,7 @@ it using (for example):
  .. code-tab:: csharp
  .. code-tab:: csharp
 
 
     // Wait until the frame has finished before getting the texture.
     // Wait until the frame has finished before getting the texture.
-    await RenderingServer.Singleton.ToSignal(RenderingServer.SignalName.FramePostDraw);
+    await ToSignal(RenderingServer.Singleton, RenderingServer.SignalName.FramePostDraw);
     // You can get the image after this.
     // You can get the image after this.
 
 
 Viewport Container
 Viewport Container