File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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
321321To 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
409409Lastly, remember to disconnect the signal as the old resource being used and changed somewhere else
You can’t perform that action at this time.
0 commit comments