浏览代码

Apply on array

/main
sebastienlagarde 7 年前
当前提交
6b5a7931
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 13
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

13
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


using System.Collections.Generic;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Rendering;
using UnityEngine.Experimental.Rendering;
using System;

static public void SetupDrawMode()
{
SceneView sceneView = EditorWindow.GetWindow<SceneView>();
sceneView.onValidateCameraMode += RejectDrawMode;
ArrayList sceneViewArray = SceneView.sceneViews;
foreach (SceneView sceneView in sceneViewArray)
sceneView.onValidateCameraMode += RejectDrawMode;
SceneView sceneView = EditorWindow.GetWindow<SceneView>();
sceneView.onValidateCameraMode -= RejectDrawMode;
ArrayList sceneViewArray = SceneView.sceneViews;
foreach (SceneView sceneView in sceneViewArray)
sceneView.onValidateCameraMode -= RejectDrawMode;
}
}
#endif

正在加载...
取消
保存