Skip to content

Commit dde2ecd

Browse files
authored
Merge pull request #11180 from AtelierFerrofell/master
Update running_code_in_the_editor.rst to fix misplaced method defs
2 parents 4dea1cb + a6defa7 commit dde2ecd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tutorials/plugins/running_code_in_the_editor.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,13 @@ not be called.
309309
OnResourceSet();
310310
}
311311
}
312-
}
313312

314-
// This will only be called when you create, delete, or paste a resource.
315-
// You will not get an update when tweaking properties of it.
316-
private void OnResourceSet()
317-
{
318-
GD.Print("My resource was set!");
313+
// This will only be called when you create, delete, or paste a resource.
314+
// You will not get an update when tweaking properties of it.
315+
private void OnResourceSet()
316+
{
317+
GD.Print("My resource was set!");
318+
}
319319
}
320320

321321
To get around this problem you first have to make your resource a tool and make it
@@ -399,11 +399,11 @@ You then want to connect the signal when a new resource is set:
399399
}
400400
}
401401
}
402-
}
403402

404-
private void OnResourceChanged()
405-
{
406-
GD.Print("My resource just changed!");
403+
private void OnResourceChanged()
404+
{
405+
GD.Print("My resource just changed!");
406+
}
407407
}
408408

409409
Lastly, remember to disconnect the signal as the old resource being used and changed somewhere else

0 commit comments

Comments
 (0)