What is the correct way to use Chaos

What should I do for build and run ChaosDestructionDemo?
My steps are

  1. download the unreal engine from github, branch 4.25.0-release

  2. follow the guide, modify UE4Editor.Target.cs and build UE4 with Chaos, Chaos Destruction Overview | Unreal Engine Documentation

  3. download ChaosDestructionDemo project and generate sln file with 4.25 engine

  4. build and run, the problem happened with below

    LogInit: Display: Running incorrect executable for target. Launching Unreal Projects/ChaosDestructionDemo/Binaries/Win64/ChaosDestructionDemoEditor.exe…
    LogCore: Engine exit requested (reason: EngineExit() was called)
    LogExit: Preparing to exit.

My UE4Editor.Target.cs looks like below

public UE4EditorTarget( TargetInfo Target ) : base(Target)
	{
		Type = TargetType.Editor;
		BuildEnvironment = TargetBuildEnvironment.Unique;
		bBuildAllModules = true;
		ExtraModuleNames.Add("UE4Game");
		bCompileChaos = true;
		bUseChaos = true;
		bOverrideBuildEnvironment = true;
	}

I also tried to change BuildEnvironment = TargetBuildEnvironment.Shard, but this will make ChaosDestructionDemo as a zombie process.

There’s a bug in the /master branch that leads to this error.

This pull request fixes it: https://github.com/EpicGames/UnrealEngine/pull/7102/files

见您第四步 是生成 和 运行,
试试 重新生成 和 运行