Update C# signal documentation and remove bind array
- Updates C# signal documentation and code examples to the new API in 4.0 - Replace all `nameof` usages with the exposed `StringName`
This commit is contained in:
@@ -48,10 +48,10 @@
|
||||
{
|
||||
var node = GetNode<Node2D>("MyNode2D");
|
||||
UndoRedo.CreateAction("Move the node");
|
||||
UndoRedo.AddDoMethod(this, nameof(DoSomething));
|
||||
UndoRedo.AddUndoMethod(this, nameof(UndoSomething));
|
||||
UndoRedo.AddDoProperty(node, "position", new Vector2(100, 100));
|
||||
UndoRedo.AddUndoProperty(node, "position", node.Position);
|
||||
UndoRedo.AddDoMethod(this, MethodName.DoSomething);
|
||||
UndoRedo.AddUndoMethod(this, MethodName.UndoSomething);
|
||||
UndoRedo.AddDoProperty(node, Node2D.PropertyName.Position, new Vector2(100, 100));
|
||||
UndoRedo.AddUndoProperty(node, Node2D.PropertyName.Position, node.Position);
|
||||
UndoRedo.CommitAction();
|
||||
}
|
||||
[/csharp]
|
||||
|
||||
Reference in New Issue
Block a user