I'm having some trouble figuring out the correct syntax for calling a generic C# function from Lua with NLua.
I'm trying to call the following C# XNA function from Lua
GameWorld.Instance.Content.Load<Texture2D>("player");
But I'm having some syntax trouble with the generic <T>
part. My current lua call looks like this, which is clearly not correct, since I'm getting a LuaScriptException.
GameWorld.Instance.Content:Load<Texture2D>("player")