Home

Awesome

Social Tweet

Unity Discussions Topic.

About

The package is a set of C# utility code stuff for projects based on Unity Engine.
It works with Unity 2019.4 and newer.

Usage

For using the library as a unity package add the next line to dependencies in \Packages\manifest.json:

"com.oleghcp.unitytools": "https://github.com/oleghcp/UnityTools.git",

Also it can be downloaded manually from github and placed into the assets folder.

Mind that it uses assembly definitions.

Code Overview

Runtime Code

Editor Code

Editor Stuff Overview

Preferences

Base Menu

Menu ItemDescription
Tools/OlegHcp/Addressables/Analysis ResultsConverts analysis results from bundle-duplicates to duplicate-bundles.
Tools/OlegHcp/Assets/Create Scriptable Object AssetAllows to create assets based on ScriptableObject without CreateAssetMenuAttribute.
Tools/OlegHcp/Assets/Find Asset By GuidAsset searching by guid.
Tools/OlegHcp/Assets/Meshes/Creates simple mesh assets using mesh generating.
Tools/OlegHcp/CaptureScreen/Creates screenshots and saves them to a file.
Tools/OlegHcp/Code/Generate Layer Set ClassAllows to generate static class with layer and mask constants.
Tools/OlegHcp/Files/Convert Code Files to UTF8Converts project code files to UTF8 including shaders.
Tools/OlegHcp/Files/Convert Text Files to UTF8Converts all text files to UTF8 including code files.
Tools/OlegHcp/Files/Find Huge FilesSearches files by given size.
Tools/OlegHcp/Folders/Open Project FolderOpens folder where the project is located.
Tools/OlegHcp/Folders/Open Persistent Data FolderOpens folder which is located at Application.persistentDataPath.
Tools/OlegHcp/Folders/Remove Empty FoldersRemoves empty folders within Assets folder.
Tools/OlegHcp/Misc/Generate GUIDGenerates new GUID and outputs it to the console.
Tools/OlegHcp/Misc/Create csc.rspCreates csc.rsp file with precreated compiler arguments.

Custom Transform Editor

Has quick reset buttons and can be switched between local and world view.
Has indicators of tool handles if they are switched to center and global value. Transform parameters can be copied to the clipboard as json string.

Custom MeshRenderer Editor

Custom AnimationClip Editor

Asset Context Menu

License

This package is released under the MIT license.


I hope my humble package becomes a useful tool for your game development work and makes it more convenient.