Native Class RED4ext Example using Visual Studio
Quick native class example. Redscript shows how to declare header & use it.
Build instructions
Steps
- Download and install Visual Studio 2019 Community Edition or a higher version.
- Clone this repository.
- Clone the dependencies (
git submodule update --init --recursive
). - Open the solution (RED4ext.Example.VisualStudio.sln).
- Build the project (the artifacts are located in
build/{debug|release}
directory).
Notes:
- The plugin has to be a 64-bit library. That means all required libraries have to be compiled in 64-bit and the compiler has to support 64-bit.
- Make sure you have the latest SDK by updating it using the following commands:
cd deps/red4ext.sdk
git pull
/git fetch
git checkout master
- You can also generate the projects from command line, see the build.yml in .github/workflows/build.yml.