Utility/DemoRecording.cs

Static helper that provides default MovieRecorderOptions for the demo/movie recorder. It adds two filters: one to exclude entities whose tags include "viewmodel", and one to exclude prefab instances whose source path starts with "prefabs/surface/".

Reflection

using Sandbox.MovieMaker;

namespace Sandbox;

internal static class DemoRecording
{
	[DefaultMovieRecorderOptions]
	public static MovieRecorderOptions BuildMovieRecorderOptions( MovieRecorderOptions options )
	{
		return options
			.WithFilter( x => !x.Tags.Has( "viewmodel" ) )
			.WithFilter( x => x.PrefabInstanceSource?.StartsWith( "prefabs/surface/" ) is not true );
	}
}