#unitytips: A selection of tips and tricks from the Unity community to show off to your friends
We are back with another #unitytips review. When we released our first overview Earlier this year, you told us that he helped take your projects to a whole new level, so we came back with more best practices.
Visual effects
Whether you are an artist, designer, tech artist or graphics programmer, you should definitely check out this collection of tips and tricks to improve the graphics and visuals of your game.
Take a look this analysis stylized water effect.
Make objects stand out with this shader graph highlighting effect…
Add puddles to cavities in your environment with this Shader Graph…
When cavities are filled with water, use this trick, to remove water inside other surfaces.
Take advantage of with this simple but effective technique, to add custom shadows to your static objects.
Learn how to draw attention to specific objects in the game using this retro item highlighter…
If you have ever thought about adding clouds to your project, try create procedural clouds using noise…
Add some natural detail to your environment with this fog trick…
Did you know that the Houdini plugin is now available for free? Watch out for procedural tools like this, to green your mesh.
Take advantage of with this tool, to add gradient boxes to your Material Inspector.
Learn more about Shader Graph from of this green programming tutorial… As a bonus, it includes a script to bake particles into a mesh.
Dive into URP and Shader Graph as you explore, how to render these metabolites…
Note that you can also render metabolols at no additional cost by using the Scriptable Renderer function to rendering of optimized metabolols…
Have you ever wondered how to make a caustic effect? This tutorial will tell you how.
Learn how to make a jellyfish fully colored and animated using shaders as shown in this thread…
If you are working with graphics, take a look This Video about the modes of winding and calling of triangles.
Workflow in the editor
These tips are all about making your life easier and improving your workflow when working in the Unity Editor.
First, find out how create your own terrain tools…
An appeal to all level designers: you can hide objects in the scene window (Scene view) and even go into isolation mode, which is very useful when working with certain parts of the scene.
Some more for level designers: see how the scene window in Unity supports vertex snapping…
Here’s a great tip to control multiple particle systems at the same time.
If you’ve never used the attribute before
RequireComponent
, this advice can help you get started with it.
You can directly import Blender files, without exporting them first to FBX. Unity will silently start Blender in the background and import these files for you, but you must make sure that everyone on your team has the same version of Blender installed before opening the project.
More about Blender: here is a first class guide for exporting to FBX via Blender with correct axes. It’s not officially #unitytips, but it could very well be.
You can conveniently create AnimationCurves in the Inspector and use them in your scripts as follows way…
Here’s a quick a way to unpin the preview window.
If you are working with OpenXR you will appreciate this is a workflow improvement…
Unity has an easy to use screen recording tool, allowing you to create gifs or game videos. It’s called Unity Recorder and is available in the Package Manager.
Use this shortcut to automatically generate material with your shader in the Shader Graph.
Gameplay
Here are some tips for creating gameplay in Unity, from coding and workflow to visuals and more.
Learn the basics of creating a multi-movement character controller in this video… Then look video, dedicated to the built-in character controller.
More about character controllers – you can learn how build a rig from the first person…
Here you can discover the recently released free decal system for the built-in renderer.
Here’s another free library for Unity, this time, it’s all about destruction.
Read this handy leadership on using the UI Toolkit and UI Builder.
Programming
Finally, we have some good tips for programmers. If you are writing, or at least working with code to some degree, you don’t want to miss this:
This cool trick allows you to use custom shaders in the editor’s user interface.
You can even use the editor’s Jobs to perform complex calculations in the background, as in this fur tool…
If you are still using the old input system but want to switch to the new one, follow this approach…
Did you know that debug logs can be colored? Find out how…
This advice shows how to navigate between materials with a single function call.
Take a look this thread, if you want to master linear interpolation (who wouldn’t?).
Take advantage of by this trick, to test your game at any frame rate.
The development of editor tools is extremely important. Subscribe to this Twitter thread, to see how it’s done.
Here how can you make nested coroutines that run one coroutine when another ends.
Another tip for coroutines: you can automatically transform
Start
,OnTriggerEnter
andOnCollisionEnter
in coroutines.
If you ever wanted to serialize a dictionary use this code…
In this Twitter thread contains a useful breakdown of the order of execution in Unity.
BUT behold significant improvement for Visual Studio users: code completion for compilation symbols.
In this handy guide explains how to create custom GUI scripts that work well with the Event System.
Here a neat Unity pattern for defining optional parameters, which is more efficient than checking for
null
, and even comes with a beautifulPropertyDrawer
…
Ever wondered what resources are included in your Unity builds? In this advice describes how to check the log to control the build size.
This nifty trick can help you access internal APIs
UnityEditor
without the help of reflection.
Want to connect Debug.Log messages to your game console? This method will serve to pass Debug.Log messages anywhere.
If you find these tips helpful and can’t wait to try them out in your game, let us know in the comments. To find out more, you can search by hashtag #UnityTips on Twitter or even get involved by sharing your tips and best practices every Tuesday. Subscribe to @ Unity3d, to get a weekly #UnityTips reminder on Tuesdays.
Can you learn how to make a classic puzzle platformer like Braid, Trine or Limbo on Unity on a 2-day intensive? Yes, and it’s easier than it sounds! In two days, we will create a full-fledged level of the game, come up with several reusable puzzles, get acquainted with the input system in Unity and fight against numerous enemies for the reward.
The students are expected to have basic programming skills (understanding what a variable, method, class, etc.) is, the teacher tries to make scripts as simple as possible. • CHECK IN •
The translation of the material was prepared on the eve of the start of the course “Unity Game Developer. Basic”