|
|
|
|
|
|
using UnityEditor.Build; |
|
|
|
using UnityEditor.Build.Reporting; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Experimental.Rendering; |
|
|
|
using UnityEngine.Experimental.Rendering.HDPipeline; |
|
|
|
|
|
|
|
class HDRPCustomBuildProcessor : IPreprocessBuildWithReport |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
// Don't execute the preprocess if we are not HDRenderPipeline
|
|
|
|
HDRenderPipeline hdrp = RenderPipelineManager.currentPipeline as HDRenderPipeline; |
|
|
|
if (hdrp == null) |
|
|
|
return; |
|
|
|
|
|
|
|
// Note: If you add new platform in this function, think about adding support in IsSupportedPlatform() function in HDRenderPipeline.cs
|
|
|
|
|
|
|
|
// If platform is supported all good
|
|
|
|