|
|
|
|
|
|
var sceneCamera = Camera.main; |
|
|
|
var camObject = sceneCamera.gameObject; |
|
|
|
|
|
|
|
GraphicsSettings.SetRenderPipeline(m_Instance); |
|
|
|
GraphicsSettings.renderPipeline = m_Instance; |
|
|
|
s_Callback = renderCallback; |
|
|
|
Transform t = camObject.transform; |
|
|
|
|
|
|
|
|
|
|
SceneView.lastActiveSceneView.LookAtDirect(t.position + t.forward * camDist, t.rotation, size); |
|
|
|
|
|
|
|
sceneCamera.Render(); |
|
|
|
GraphicsSettings.SetRenderPipeline(null); |
|
|
|
GraphicsSettings.renderPipeline = null; |
|
|
|
} |
|
|
|
} |