Jun
10
2019

EditorScript: HDR Outline for WorldSpace UI Panel using LineRenderer

Left: Regular Outline with bad edges
Right: LineRenderer with HDR color (to make it work with >1.0 bloom)

Needed hdr outline for ui panel, so here’s small editor helper script to assign linerenderer points around UI panel:
https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/ContextMenu/CreateOutlineForPanelEditor.cs

right click over image component to access this editor script. Note: You need to add LineRenderer component for this image panel first.

*Note: i’m using UI always on top shader for the panel (it fixes the linerenderer z-fight issue, but also needed it for this project to display UI elements always on top) https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/UI/UI_Always_On_Top.shader


1 Comment + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.