Browse Source

Docs - Fixed input action C# issue

The `SetAction` and `SetPressed` are internal methods and can't be invoked directly outside of that assembly. However, the `Action` and `Pressed` property setters invoke them instead.

(cherry picked from commit 14e03b981f2049f5ba97541880023d18423c4486)
Srđan Jokić 1 year ago
parent
commit
dc04c89210
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/inputs/inputevent.rst

+ 2 - 2
tutorials/inputs/inputevent.rst

@@ -234,8 +234,8 @@ The Input singleton has a method for this:
 
 
     var ev = new InputEventAction();
     var ev = new InputEventAction();
     // Set as ui_left, pressed.
     // Set as ui_left, pressed.
-    ev.SetAction("ui_left");
-    ev.SetPressed(true);
+    ev.Action = "ui_left";
+    ev.Pressed = true;
     // Feedback.
     // Feedback.
     Input.ParseInputEvent(ev);
     Input.ParseInputEvent(ev);