/MyBox

MyBox is a set of attributes, tools and extensions for Unity

Primary LanguageC#MIT LicenseMIT

MyBox

MyBox is a set of tools, features and extensions for Unity.
It is MyBox. Now it's yours too ๐Ÿ™Œ

Installation:

You may install MyBox via Unity Package Manager:
Open Packages/manifest.json file in your project folder and put this line along with other dependencies

"com.mybox": "https://github.com/Deadcows/MyBox.git"

Note how the comma lies at the end of every line in dependencies, except of the last line!

To update, use Tools->MyBox->Update window
MyBox will notify on new versions ๐Ÿค—

โ•If you got problems with update process simply remove "lock" section at the end of your Packages/manifest.json file. This will force Unity to redownload all git packages:

...or simply put MyBox folder downloaded from git somewhere under your Assets folder ๐Ÿคจ


Tons of images below ๐Ÿ‘‡

AutoProperty โ€” Assign fields automatically
ButtonMethod โ€” Display button in inspector
ConditionalField โ€” Conditionally display property in inspector, based on some other property value
DefinedValues โ€” Display Dropdown with predefined values
DisplayInspector โ€” Display one inspector inside of another
Foldout โ€” Group your fields in inspector
Tag, Layer, SpriteLayer โ€” Dropdown with Tags, Layers or SpriteLayers
MinMaxRange, RangedFloat and RangedInt โ€” Ranged sliders
MustBeAssigned โ€” Automatically checks if field is assigned (not null / not empty / not default value) on Playmode
PositiveValueOnly โ€” Prohibit values below zero
ReadOnly โ€” Draw property with disabled GUI
RequireTag and RequireLayer โ€” Automatically set Tag and Layer
SearchableEnum โ€” Nice UI for enums with lots of elements
Separator โ€” Draw separator with or without title


AssetPressetPreprocessor โ€” Conditionally apply Presets to your assets on import

TimeTest โ€” Measure performance with simple api
IPrepare โ€” Easy way to replace caching, calculations and asserts from playmode
Features โ€” Cleanup Empty Directories, AutoSave feature, Hotkeys
UnityEvent Inspector โ€” Allows you to fold and reorder event subscribers


Guid Component โ€” Generate unique and persistent IDs
SceneReference Component โ€” Reference scene with Scene asset in inspector
ActivateOnStart Component โ€” Set state of specific GO on game start
AnimationStateReference โ€” Specify AnimationClip on object with Animator
AssetPath and AssetFolderPath โ€” Inspector button to browse for folder or asset under Assets folder
Billboard Component โ€” Force object to always face camera
ColliderGizmo Component โ€” Highlight colliders and triggers in SceneView
FPSCounter Component โ€” Display FPS counter on Playmode
MyDictionary โ€” Serializable Dictionary
MinMaxInt and MinMaxFloat โ€” Asserts that Max => Min with handy inspector drawer
Optional and OptionalMinMax โ€” Optionally assignable values
Reorderable Collections โ€” Reorder your collections in inspector


//TODO: Extensions, Unfinished tools