Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 5a71e71

Browse files
author
Michieal
authored
Dot net doc update (#176)
1 parent 5aa92de commit 5a71e71

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

DOTNET.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ the specific location (`-s <source>`) and we are forcing (`-f`) the restore. Thi
5656
nuget packages.
5757

5858
Once you have done this, you will need to rebuild your project. You can do so either through your IDE or inside of the
59-
Godot Editor.
59+
Godot Editor. I highly recommend keeping this section handy, as you will need to use these for each new project
60+
that you create. If you can, it's advisable to change the nuget sources so that the local source is first in the
61+
list. This will make life easier. And then, with new projects, run the clear command, then restore the project in
62+
your IDE, or simply build the project in Godot. (Godot will perform a restore in the build process.) By having the
63+
local sources first in the list, this will ensure that they are put in, and that your project will work.
64+
65+
A note on the LuaAPI specific nuget packages: They are included in the Mono (DotNet) builds from the `Releases` tab on
66+
the Github page.
6067

6168
Getting Started Example (In C#)
6269
-------
@@ -139,6 +146,11 @@ public partial class Node2D : Godot.Node2D {
139146
return;
140147
}
141148

149+
// To use LuaFunctionRefs we need to change the system to use it. We do this by changing
150+
// the .UseCallables flag to 'false'. (If your LuaFunctionRef variable is null, you didn't
151+
// set this flag.
152+
lua.UseCallables = false;
153+
142154
// We create a LuaFunctionRef as our reference to the Lua code's function,
143155
// then we use .As<LuaFunctionRef>() to cast it as a LuaFunctionRef.
144156
LuaFunctionRef get_message = val.As<LuaFunctionRef>();

0 commit comments

Comments
 (0)