Explorar o código

Fixed incorrect C# code sample in viewports.rst

LurkerAbove hai 5 días
pai
achega
dc161765e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/rendering/viewports.rst

+ 1 - 1
tutorials/rendering/viewports.rst

@@ -181,7 +181,7 @@ it using (for example):
  .. code-tab:: csharp
 
     // 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.
 
 Viewport Container