Game Dev Digest — Issue #94 - Patterns, Math, and VFX
Tags: gamedev, unity3d, csharp, news
Published: 2021-05-14 12:25:07

---
title:  Game Dev Digest — Issue #94 - Patterns, Math, and VFX
published: true
date: 2021-05-14 12:25:07 UTC
tags: gamedev,unity,csharp,news
canonical_url: https://gamedevdigest.com/digests/issue-94-patterns-math-and-vfx.html
series: Game Dev Digest - The Newsletter About Unity Game Dev
---

### Issue #94 - Patterns, Math, and VFX

*This article was originally published on [GameDevDigest.com](https://gamedevdigest.com/digests/issue-94-patterns-math-and-vfx.html)*

![Issue #94 - Patterns, Math, and VFX](https://gamedevdigest.com/assets/social-posts/issue-94.png)

Dig into this week's issue with some programming patterns, 3D math techniques, VFX tutorials and ton more. Enjoy!

---

[**Model View Controller Pattern for in-game UI**](https://bronsonzgeb.com/index.php/2021/05/08/model-view-controller-pattern-for-in-game-ui/)  - This article describes an approach to structuring UI in Unity. This approach is based on the Model View Controller (MVC) pattern, but it’s slightly adapted for Unity. This isn’t the only way to structure your UI, but it has worked well for all my previous Unity games.
[_Bronson Zgeb_](https://bronsonzgeb.com/index.php/2021/05/08/model-view-controller-pattern-for-in-game-ui/)

[**Pooling WaitForSeconds in Unity**](https://pauliom.medium.com/pooling-waitforseconds-in-unity-1ca32c1a9f52)  - Pooling does not have to be confined to visual elements. Another classic optimization for Unity is the WaitForSeconds yield instruction. _[For a great alternative, check out [More Effective Coroutines [FREE]](https://assetstore.unity.com/packages/tools/animation/more-effective-coroutines-free-54975?aid=1011l8NVc)]_
[_Paul Marsh_](https://pauliom.medium.com/pooling-waitforseconds-in-unity-1ca32c1a9f52)

[**Creating a Discord bug-hunting leaderboard**](https://www.sidequestninja.com/blog/creating-a-discord-bug-hunting-leaderboard/)  - Setting up a pipeline from in-game bug reporting to a Discord bot via a Postgres database.
[_sidequestninja.com_](https://www.sidequestninja.com/blog/creating-a-discord-bug-hunting-leaderboard/)

[**Climbing ladders mechanic in Unity 2D platformer games**](https://pavcreations.com/climbing-ladders-mechanic-in-unity-2d-platformer-games/)  - Climbing ladders is quite popular in 2D platformers. This mechanic allows players to easily move their characters above and below different parts of the levels without the need to jump or fall. It introduces another layer of complexity to game environments. In this tutorial we are going to look into how we can create ladders and give our characters the ability to climb them.
[_pavcreations.com_](https://pavcreations.com/climbing-ladders-mechanic-in-unity-2d-platformer-games/)

[**Making Hearts Fly With Unity VFX Graph**](https://www.raywenderlich.com/20964535-making-hearts-fly-with-unity-vfx-graph)  - Learn how to use Unity’s VFX Graph to make stunning visual effects, like a flock of flying butterflies! The VFX Graph uses simple, node-based visual logic.
[_raywenderlich.com_](https://www.raywenderlich.com/20964535-making-hearts-fly-with-unity-vfx-graph)

[**Snow in Unity - Under 60 Sec**](https://www.patreon.com/posts/51008483)  - Hey guys! So in this tutorial, you'll see a technique I use for making interactive snow. This is really useful for showing a trail behind a car or even footsteps. Of course, all under60sec. Let me know what you think!
[_Daniel Santalla_](https://www.patreon.com/posts/51008483)

[**Tutorial: Cross Products**](https://www.patreon.com/posts/51065814)  - Today we're going to learn about cross products!
[_Team Dogpit_](https://www.patreon.com/posts/51065814)

[**Math: line intersections**](https://kelvinvanhoorn.wordpress.com/2021/05/11/math-line-intersections/)  - Lately a lot of my shaders have used a bit of raymarching, where I primarily rely on finding the intersections between a line (ray) and a shape. In this post I will go over the general approach for calculating these intersections and provide a list of HLSL implementations. The shapes discussed here will include planes, quadric surfaces (e.g. a sphere) and some useful combinations of them.
[_Kelvin van Hoorn_](https://kelvinvanhoorn.wordpress.com/2021/05/11/math-line-intersections/)

[**Per-triangle occlusion on the GPU in 1ms with Unity**](https://www.alexisbacot.com/blog/per-triangle-occlusion-on-the-gpu-in-1ms-with-unity)  - This is a post about 3D rendering techniques, it requires intermediate knowledge of 3D real-time engines. _[Source available on [github](https://github.com/AlexisBacot/UnityOcclusionPerTriangleGPU)]_
[_alexisbacot.com_](https://www.alexisbacot.com/blog/per-triangle-occlusion-on-the-gpu-in-1ms-with-unity)

[**Put a Little Shake On It**](https://claudiograssi.medium.com/unity2d-devlog-09-put-a-little-shake-on-it-d5752314447d)  - Creating Camera Shake can be achieved in a few different ways. I decided to use animation to control the change in my camera’s Orthographic Size. This approach will allow me to create an animation clip that I can play every time my player takes damage. The process to achieve this result was quite simple.
[_claudiograssi.medium.com_](https://claudiograssi.medium.com/unity2d-devlog-09-put-a-little-shake-on-it-d5752314447d)

[**Unity Arcade High Score Table**](https://pauliom.medium.com/unity-arcade-high-score-table-cdd75144c674)  - Xevious, like many arcade games, has a very basic high score table. The user has a fixed amount of time to enter their initials. The mechanism for it is to use the joystick to move the characters up and down the alphabet. Once you have the correct letter you press fire and it moves the virtual insertion point on by one.
[_Paul Marsh_](https://pauliom.medium.com/unity-arcade-high-score-table-cdd75144c674)

[**How to run jobs using ComponentDataFromEntity in parallel**](https://coffeebraingames.wordpress.com/2021/05/09/how-to-run-jobs-using-componentdatafromentity-in-parallel/)  - ComponentDataFromEntity is one of the most commonly used API in Unity’s Entities package (ECS). The main drawback is that once you use it in a job, you can’t run it in parallel as is. The Unity runtime won’t even allow you. It will just throw an error. You can still make it run in parallel but there are rules and I’m going to show you how in this post.
[_Coffee Brain Games_](https://coffeebraingames.wordpress.com/2021/05/09/how-to-run-jobs-using-componentdatafromentity-in-parallel/)

[**Show us your game developing skills and may the stream be with you!**](https://instreamly.com/may-the-stream-be-with-you/)  - We’re calling every small and mid-size game developer! Show off your games and win a 5,000 EUR worth product placement campaign with us. It doesn’t matter how popular your game is - the most important thing is the fun and creative side!
[_inSTREAMLY_](https://instreamly.com/may-the-stream-be-with-you/)

[**Unity 2021.2.0 Alpha 17**](https://unity3d.com/unity/alpha/2021.2.0a17)  - Unity 2021.2.0 Alpha 17 has been released.
[_Unity_](https://unity3d.com/unity/alpha/2021.2.0a17)

## Videos

[![Dissolving Ground Trail Effect in Unity using Shader Graph](https://gamedevdigest.com/assets/images/77bfe3d621de96fe9a1e5906b33699da.png)](https://www.youtube.com/watch?v=hXg9MxIMolE)
[**Dissolving Ground Trail Effect in Unity using Shader Graph**](https://www.youtube.com/watch?v=hXg9MxIMolE)  - An overview of a dissolving effect along a trail of particles, using particle system and shader graph
[_AE Tuts_](https://www.youtube.com/watch?v=hXg9MxIMolE)

[**Basics of Mipmaps in Unity Part 1! Import Settings and Custom Mipmaps! | Game Dev Tutorial**](https://www.youtube.com/watch?v=Vq5T4hu8NWM)  - Mipmaps are scaled down versions of textures Unity generates and draws when a texture takes up a small area on the screen. This saves memory and looks better to boot! In this video, I go over Unity's mipmap generation settings and show how to create custom mipmaps. I also quickly demonstrate a cool trick Nintendo used to make Mario Sunshine's water!
[_Ned Makes Games_](https://www.youtube.com/watch?v=Vq5T4hu8NWM)

[**How To Create Unique Space Effects Using Incompatible Materials - Mini Unity Tutorial**](https://www.youtube.com/watch?v=wsmwETdVX-A)  - In this Mini Unity Tutorial we learn how to create cool space effects which could be used for various things.
[_Jimmy Vegas_](https://www.youtube.com/watch?v=wsmwETdVX-A)

[**Creating a RADIAL PROGRESS BAR (Unity UI Tutorial)**](https://www.youtube.com/watch?v=5xWDKJj1UGY)  - Today we'll create a Unity UI circle or radial indicator to show the progress of our button press! I'll show you how to design the UI, write the C# code and put it altogether.
[_SpeedTutor_](https://www.youtube.com/watch?v=5xWDKJj1UGY)

[**How to Edit a Game Trailer - 3 Part Outline**](https://www.youtube.com/watch?v=DTljU5xGOYw)  - How to edit a game trailer at the most fundamental level? Use this high level outline.
[_Derek Lieu_](https://www.youtube.com/watch?v=DTljU5xGOYw)

## Assets

[![Mega Bundle Sale! Mega Bundles to chart your course](https://gamedevdigest.com/assets/images/37904b60-5479-cb6d-aed5-57c2e88a598c.jpg)](https://assetstore.unity.com/mega-bundles/chart-your-course?aid=1011l8NVc)
[**Mega Bundle Sale! Mega Bundles to chart your course**](https://assetstore.unity.com/mega-bundles/chart-your-course?aid=1011l8NVc)  - Save up to 95% on level-design assets to chart your course, create vast environments, and stylize your storytelling.

$14.99 Bundle - save up to 76%
This bundle contains: [Loading Screen Studio](https://assetstore.unity.com/packages/tools/gui/loading-screen-studio-169978?aid=1011l8NVc), [Swarm Of Bats](https://assetstore.unity.com/packages/vfx/particles/swarm-of-bats-46570?aid=1011l8NVc), [Umbra Boundary Builder](https://assetstore.unity.com/packages/tools/level-design/umbra-boundary-builder-68134?aid=1011l8NVc), and [Runtime Transform Gizmos](https://assetstore.unity.com/packages/tools/modeling/runtime-transform-gizmos-125537?aid=1011l8NVc).

$29.99 Bundle - save up to 83%
This bundle contains everything from the $14.99 bundle, plus [Dungeon Maker](https://assetstore.unity.com/packages/tools/level-design/dungeon-maker-184902?aid=1011l8NVc), [Fog Volume 3](https://assetstore.unity.com/packages/tools/particles-effects/fog-volume-3-81802?aid=1011l8NVc), [Jujube Map Editor | 3D Level Designer](https://assetstore.unity.com/packages/tools/game-toolkits/jujube-map-editor-3d-level-designer-176992?aid=1011l8NVc), [VertPaint](https://assetstore.unity.com/packages/tools/painting/vertpaint-100282?aid=1011l8NVc), and [Simple Waypoint System](https://assetstore.unity.com/packages/tools/animation/simple-waypoint-system-2506?aid=1011l8NVc).

$39.99 Bundle - save up to 95%
This bundle contains everything from the $14.99 and $29.99 bundles, plus [Grabbit - Editor Physics Transforms](https://assetstore.unity.com/packages/tools/utilities/grabbit-editor-physics-transforms-182328?aid=1011l8NVc), [TerraWorld - Automated Level Designer](https://assetstore.unity.com/packages/tools/terrain/terraworld-automated-level-designer-156561?aid=1011l8NVc), [Mesh Deformation Full Collection](https://assetstore.unity.com/packages/tools/modeling/mesh-deformation-full-collection-47061?aid=1011l8NVc), [Asset Usage Finder](https://assetstore.unity.com/packages/tools/utilities/asset-usage-finder-59997?aid=1011l8NVc), [Medieval Village Environment](https://assetstore.unity.com/packages/3d/environments/fantasy/medieval-village-environment-121867?aid=1011l8NVc), [Impostors - Runtime Optimization](https://assetstore.unity.com/packages/tools/utilities/impostors-runtime-optimization-188562?aid=1011l8NVc), [Advanced Terrain Grass](https://assetstore.unity.com/packages/tools/terrain/advanced-terrain-grass-100014?aid=1011l8NVc), [Fullscreen Editor](https://assetstore.unity.com/packages/tools/utilities/fullscreen-editor-69534?aid=1011l8NVc), [Mantis LOD Editor - Professional Edition](https://assetstore.unity.com/packages/tools/modeling/mantis-lod-editor-professional-edition-37086?aid=1011l8NVc), [Sci-Fi Effects](https://assetstore.unity.com/packages/vfx/particles/sci-fi-effects-20416?aid=1011l8NVc), [Technie Collider Creator](https://assetstore.unity.com/packages/tools/level-design/technie-collider-creator-62628?aid=1011l8NVc), [TileWorldCreator](https://assetstore.unity.com/packages/tools/level-design/tileworldcreator-29055?aid=1011l8NVc), [uContext Pro](https://assetstore.unity.com/packages/tools/level-design/ucontext-pro-141831?aid=1011l8NVc), [Task Atlas](https://assetstore.unity.com/packages/tools/utilities/task-atlas-185959?aid=1011l8NVc), and [DreamOS - Complete OS UI](https://assetstore.unity.com/packages/tools/gui/dreamos-complete-os-ui-188483?aid=1011l8NVc).
[_Unity_](https://assetstore.unity.com/mega-bundles/chart-your-course?aid=1011l8NVc)

[**AbcConsole**](https://github.com/kyubuns/AbcConsole)  - Mobile-friendly debug console! It is simple, but has all the necessary elements. Check and copy logs generated on the actual machine. You can define your own debug methods, and enter and execute them. You only need to enter a few characters of the method name, and you can comfortably use AUTOCOMPLETE to enter the name!!
[_kyubuns_](https://github.com/kyubuns/AbcConsole) *Open Source*

[**AutomaticDynamicBone**](https://github.com/OneYoungMean/Automatic-DynamicBone/wiki/English-version-manual)  - A plugin that can automatically generate hair and skirts with physical bone.
[_OneYoungMean_](https://github.com/OneYoungMean/Automatic-DynamicBone/wiki/English-version-manual) *Open Source*

[**Unity SerializeReferenceExtensions**](https://github.com/mackysoft/Unity-SerializeReferenceExtensions)  - Provide popup to specify the type of the field serialized by the [SerializeReference] attribute in the inspector.
[_mackysoft_](https://github.com/mackysoft/Unity-SerializeReferenceExtensions) *Open Source*

[**Unity Layout Element Extended**](https://github.com/QuantumCalzone/UnityLayoutElementExtended)  - An extension of Unity's LayoutElement script that enables more flexible adaptation. With this you can now match another RecTransform's dimensions (width, height, or both) and now set maximum preferred values.
[_QuantumCalzone_](https://github.com/QuantumCalzone/UnityLayoutElementExtended) *Open Source*

[**Particle System Color Changer [FREE]**](https://assetstore.unity.com/packages/vfx/particles/particle-system-color-changer-195040?aid=1011l8NVc)  - If you have ever used Unity's Particle System then you know the pain of going into all child particle systems to change their start color to a new one! The end of this pain came! Use Particle System Color Changer to change the color of all children with only 1 single click!
[_The Developer_](https://assetstore.unity.com/packages/vfx/particles/particle-system-color-changer-195040?aid=1011l8NVc) **Affiliate**

[**Material Maker**](https://rodzilla.itch.io/material-maker)  - Material Maker is a procedural materials authoring and 3D model painting tool, based on the Godot Engine. Materials and brushes are defined as graphs where nodes create or transform textures, and can be exported for the Godot, Unity and Unreal game engines. _[Read about their new update on [GameFromScratch](https://gamefromscratch.com/material-maker-0-95-now-with-3d-painting-tools/)]_
[_Material Maker_](https://rodzilla.itch.io/material-maker)

[**Tag Processros**](https://github.com/paulio/cbcstudio/tree/main/Editor/TagProcessors)  - Auto compile-time support for Unity Animation Parameters. _[Read about it on [Paul Marsh's blog](https://pauliom.medium.com/auto-compile-time-support-for-unity-animation-parameters-e5edd0a6016e)]_
[_Paul Marsh_](https://github.com/paulio/cbcstudio/tree/main/Editor/TagProcessors) *Open Source*

[**HUMBLE SOFTWARE BUNDLE: ROYALTY-FREE RPG GAME DEVELOPMENT ASSETS**](https://www.humblebundle.com/software/royalty-free-rpg-game-dev-assets-software?partner=unity3dreport)  - Creating an RPG but don’t have a deft hand at art assets? Not everyone can be an artist or visual designer. Not to worry, thanks to GameDev Market and the RPG Game Dev bundle you’ll gain access to thousands of assets like Omega Modern Graphics Pack, RPG Game 1700+ Icons, Medieval Fantasy Characters, and Customisable Pixel Art Character Kit to help add some spark to your creations! Plus, your purchase helps support Child’s Play, AbleGamers, and our May Charity of the Month, Active Minds!

$436 WORTH OF AWESOME STUFF
PAY $1 OR MORE
[_Humble Bundle_](https://www.humblebundle.com/software/royalty-free-rpg-game-dev-assets-software?partner=unity3dreport) **Affiliate**

## Spotlight

[![Farewell North](https://gamedevdigest.com/assets/images/dcbb510882488cc7856800e162b59f00.png)](https://farewell-north.com/)
[**Farewell North**](https://farewell-north.com/)  - Restore color to an island lost to time.

Restore color to a dark and desolate archipelago in Farewell North, an open world adventure where you play as a collie traveling a chain of foreboding islands alongside your human companion. Explore at your own pace to restore color, while uncovering a unique story about saying farewell.
[_Farewell North_](https://farewell-north.com/)



---

You can subscribe to the free weekly newsletter on [GameDevDigest.com](https://gamedevdigest.com)

This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article.