Use ProfilerMarker to mark up script code blocks
#UnityTips Use ProfilerMarker to mark up script code blocks for the Profiler. The information is then displayed in the CPU Profiler & can be also captured
use ToArray to create a copy
#unitytips If you change the contents of a list while iterating through it you will most likely run into problems. A solution is to use ToArray to create a cop
Create a multiple choice enum
#UnityTips Create a multiple choice enum like the layer mask with the System.Flags attribute. 😎 Note that your values have to start with 2 and have to
git rebase
#UnityTips If you do a git rebase and you decide on a merge strategy then "mine" and "theirs" work counterintuitively. e.g. if you rebase a feature branch onto
Create LODs automatically
#UnityTips If your models are named correctly then unity will automatically create LODs upon importing your FBX.#gamedev #indiedev pic.twitter.com/5ykFhKCa5s —
use LOD-Groups to fade materials
#UnityTips You can use LOD-Groups to fade materials 🤯 Set "Fade Mode" to "Cross Fade" & "Fade Transition Width" to any value higher that 0 Create a
GameUp! Rheinland Pfalz auf der gamescom 2022
Mainz, den 19.08.2022 gamescom 2022: Als Analogie zur Weinstube versammelt sich Rheinland-Pfalz in der Gamesstube auf der größten Besuchermesse für Videospiele
switch the project window to tree view
#UnityTips Sometimes it is beneficial to switch the project window to just a "tree view" with the One Column Layout. 👇#indiedev #gamedev pic.twitter.co
create own packages
#Unitytips You can create your own packages for your projects. You need an entry in your manifest.json which is located in your Packages folder. You also need
Editing the Transform
#UnityTips A nice new feature in the 2021 Cycle is the options we got for editing the transform. L(a,b) results in a linear ramp between a and b R(a,b) results
link icon toggles proportional scaling
#UnityTips The link icon toggles proportional scaling, for adjusting the values proportionately to each other.For example, the object’s scale is (1, 2, 4) and y
an extension to return a random value
#UnityTips This might be of use to the Linq fans! This is an extension to return a random value from a collection.#coding #indiedev #gamedev pic.twitter.com/dB
default foliage preset
#UnityTips If your foliage looks weird in #HDRP maybe you forgot to set the Diffusion Profile in the material. There is a default foliage preset which comes wi
Remove confusing indentations
#UnityTips Remove confusing indentations by getting rid of some nested if/else constructs. Often the else statement is not needed & the code can be optimiz