Flax Engine is a high quality modern 3D game engine written in C++ and C#. From stunning graphics to powerful scripts, it's designed for fast workflow with many ready-to-use features waiting for you right now. To learn more see the website (www.flaxengine.com).
This repository contains full source code of the Flax Engine (excluding NDA-protected platforms support). Anyone is welcome to contribute or use the modified source in Flax-based games.
Follow the instructions below to compile and run the engine from source.
Flax.sln
and set solution configuration to Editor.Development and solution platform to Win64sudo apt install dotnet-sdk-8.0
sudo apt install vulkan-sdk
sudo pacman -S spirv-tools vulkan-headers vulkan-tools vulkan-validation-layers
sudo apt-get install git git-lfs
sudo pacman -S git git-lfs
git-lfs install
sudo apt-get install libx11-dev libxcursor-dev libxinerama-dev zlib1g-dev
sudo pacman -S base-devel libx11 libxcursor libxinerama zlib
sudo apt-get install clang lldb lld
sudo pacman -S clang lldb lld
./GenerateProjectFiles.sh
Flax|Editor.Linux.Development|x64
)GenerateProjectFiles.command
Editor.Mac.Development
)Could not execute because the specified command or file was not found.
Restart PC - ensure DotNet is added to PATH for command line tools execution.
Microsoft.NET.TargetFrameworkInference.targets(141,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 8.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 8.0
Use Visual Studio 2022, older versions are not supported by .NET SDK 8.
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Install the Vulkan SDK then set an environment variable to provide the path to the SDK prior to running GenerateProjectFiles.bat: set VULKAN_SDK=%sdk_path%
.
The NuGetSdkResolver did not resolve this SDK
Install .NET SDK
, NuGet package manager
and NuGet targets and build tasks
in Visual Studio components.
Using Flax source code is strictly governed by the Flax Engine End User License Agreement. If you don't agree to those terms, as amended from time to time, you are not permitted to access or use Flax Engine.
We welcome any contributions to Flax Engine development through pull requests on GitHub. Most of our active development is in the master branch, so we prefer to take pull requests there (particularly for new features). We try to make sure that all new code adheres to the Flax coding standards. All contributions are governed by the terms of the EULA.
PVS-Studio - static analyzer for C, C++, C#, and Java code.