Tag: Optimization
All the articles with the tag "Optimization".
1 << -1 Isn't an Error, It's Layer 31
A 2022 post on scanning the surroundings with OverlapSphere. Fetching the layer by name is the right move, but the value then gets shifted by hand. When NameToLayer returns -1, that expression points at layer 31 instead of throwing.
Unload(false) Doesn't Unload the Instances
Notes from the Unite Seoul 2025 optimization session. I cross-checked some twenty items against the docs one by one. Most hold up; five don't. The most dangerous is AssetBundle.Unload, whose two parameter cases are swapped.
Create an asmdef and Assembly-CSharp Goes Dark
I clipped the assembly definition files doc and it's the 2017.4 edition. Its account of one-directional dependency is right, but it never says the reverse direction is forbidden. That's the actual reason behind the 'all scripts or none' recommendation.
The Lite Version Doesn't Show Up in the Shader List
The introduction page of lilToon's official docs. It recommends converting a material rather than assigning the Lite version directly, and gives 'more intuitive' as the reason. The actual reason is that the shader's name starts with Hidden/, so it never appears in the material dropdown at all.