Special offer to upgrade to Hierarchy Plus with $4 and Multispector with $6.
1 Like
Can you update it for 2019.3 beta?
I’m using Universal Render Pipline and the outlines don’t show up
I hope it will be updated for URP
The reason it doesn’t work is that OnRenderImage is not supported in URP.
I found a simple way to show the outlines again:
Add these codes in SceneViewOutline.cs:
private void OnEnable()
{
RenderPipelineManager.endCameraRendering += BlitOutline;
}
private void OnDisable()
{
RenderPipelineManager.endCameraRendering -= BlitOutline;
}
private void BlitOutline(ScriptableRenderContext context, Camera camera)
{
RenderTexture source = RenderTexture.active;
OnRenderImage(source, camera.targetTexture); // call the function manually
}
I hope it will be helpful for you.
2 Likes
@aquariusgx
Thank you very much!
I was very much missing this tool and with that fix its perfect again!
1 Like
In 2022 I have a new error in URP
A call to Blit with source and dest set to the same RenderTexture may result in undefined behaviour.
UnityEngine.Graphics:Blit (UnityEngine.Texture,UnityEngine.RenderTexture,UnityEngine.Material,int)
SceneViewHighlighter.SceneViewOutline:OnRenderImage (UnityEngine.RenderTexture,UnityEngine.RenderTexture) (at Assets/SceneViewHighlighterURP/SceneViewOutline.cs:102)
SceneViewHighlighter.SceneViewOutline:BlitOutline (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera) (at Assets/SceneViewHighlighterURP/SceneViewOutline.cs:63)
UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)
Is anyone able to fix this ?
1 Like
private void BlitOutline(ScriptableRenderContext context, Camera camera)
{
var source = RenderTexture.active;
if(source == null) return;
var tempRT = RenderTexture.GetTemporary(source.descriptor);
OnRenderImage(source, tempRT); // call the function manually
Graphics.Blit(tempRT, camera.targetTexture);
RenderTexture.ReleaseTemporary(tempRT);
}
This should work
1 Like
Thanks to the code provided by the two gentlemen above, it perfectly solved the problem. Before finding this, I was disappointed because I thought this plugin originally did not display the outline of the sprite. Now this plugin perfectly solves the problem of having too many sprite layers to choose from. I can’t even find a plugin with similar functionality in Unity. I have no knowledge of editor extension related code, so I am very grateful for their code.
1 Like