Browsing articles from "June, 2019"
Jun
19
2019

Continue Coroutine after gameObject was disabled

So, customer wanted final changes few hours before deadline, to add hide/show feature (just regular disable-enable gameobject) for some animated UI elements. (Effects were using coroutine to set values and colors). To my horror, after you disable and then enable gameobject, the coroutine is dead! […]

Jun
10
2019

EditorScript: HDR Outline for WorldSpace UI Panel using LineRenderer

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 *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 […]

Jun
8
2019

Set Quad Scale to Match VideoPlayer Aspect Ratio

Needed quick videoplayer quad mesh resizer, to match video size, so here’s a small editor helper script:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs It checks video width and height, and then scales transform Y axis to match aspect ratio.

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.