Static helper that configures movie recorder options for the demo recorder. It applies a filter to exclude prefab instances whose source path starts with "prefabs/surface/".
using Sandbox.MovieMaker;
namespace Sandbox;
internal static class DemoRecording
{
[DefaultMovieRecorderOptions]
public static MovieRecorderOptions BuildMovieRecorderOptions( MovieRecorderOptions options )
{
return options
.WithFilter( x => x.PrefabInstanceSource?.StartsWith( "prefabs/surface/" ) is not true );
}
}