What I am planning to do is to create lua scripts, executed by MoonSharp, which will handle my screen area, with them being able to control not only the canvas but also the camera and world etc.
However, I do not know how to go about this; I know from reading that you can initialize variables within moonsharp by passing the class and type to the object, but I don’t know how I would go about initializing new classes or modifying the canvas from the script, since I would need to pass in GameObject etc, which I can’t current fathom.
If anyone could help me that’d be great - I’d only need some small sample code that does something similar to what I want, then I could build off of that; I’m currently stuck since I don’t know how to proceed with my plan.
My reason for doing this is that I would like to build my entire ui using lua and run the scripts, allowing users to create their own custom scripts within the game, customising and creating their own ui etc.