You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
691 B

using UnityEngine.Rendering;
namespace UnityEditor.Rendering
{
class STPResourceStripper : IRenderPipelineGraphicsSettingsStripper<STP.RuntimeResources>
{
public bool active => true;
public bool CanRemoveSettings(STP.RuntimeResources resources)
{
bool isStpUsed = false;
foreach (var asset in CoreBuildData.instance.renderPipelineAssets)
{
if (asset is ISTPEnabledRenderPipeline stpEnabledAsset)
isStpUsed |= stpEnabledAsset.isStpUsed;
}
// We can strip STP's resources if it's not used by any pipeline assets
return !isStpUsed;
}
}
}