Tool / Unity
An Engineer's Toolbox (1): Utility.cs Convenience Helpers

Game projects always collect small repeated operations: instantiating objects, loading resources, formatting values, and cleaning up transforms. I usually put these helpers in one utility class and expose them as static methods, so other scripts can call them without dragging extra state around.
Other articles in this series
- An Engineer’s Toolbox (1): Utility.cs Convenience Helpers
- An Engineer’s Toolbox (2): Singleton and Debug Filtering
- An Engineer’s Toolbox (3): Unity Editor Tools
- An Engineer’s Toolbox (4): Recommended Free Unity Plugins
Classification
- system
- Safety
- UGUI
- GameObject
- Transform
- Sprite
- Time
- Format
- Resource reading
- other
Utility class (Utility.cs)
- Source code
- Call pattern:
Utility.[Category].[Method]
Utility.GameObjectRelate.ClearChildren(gameObject.transform);
Postscript
This is not meant to be a perfect utility library. These helpers grow through production work, one repetitive annoyance at a time. If you have useful snippets, share them and I can fold them into the toolset.
I also recommend the old Unity Wiki. It contains scripts, shaders, particle examples, small tools, and plenty of rough but useful material.
Attribution
Please credit ARKAI Studio and link back to this article when quoting or reposting.