View on Asset Store (opens in new tab)
Package details
- Latest version
- 0.1.3
- Last updated
- First released
- Unity version
- 6000.0.28 or later
- Package size
- 741 KB
- Files
- 137
- Favorites
- 50
- Views in the past week
- 9
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Super Behaviour
SuperBehaviour provides several Unity improvements like automatic transform caching and an improved inspector drawer called SuperEditor (improved rendering for fields and is able to draw properties)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
Super Behaviour screenshot 1
About this asset
The "Super Utility Package" enhances the Unity engine with missing functionalities. It includes:
- "SuperBehaviour" replaces MonoBehaviour, providing benefits like cached transforms and script icons.
- "SuperEditor" manages inspector windows for SuperBehaviours.
- New Inspector Attributes for [SerializeField] offer features like readonly mode, layer and tag dropdowns, and HDR colors.
- New Inspector Attributes for Properties allow customized inspector displays, headers, tooltips, sliders, text areas, and more.
- New Condition Attributes control field and property visibility and editability based on specific conditions.
- "SingletonBehaviour" provides simple and performant singleton implementation
- "LazySingletonBehaviour" implements lazy singleon
- "SuperRectTransform" allows easy acces to the RectTransform properties and behaves like in the inspector
This package improves Unity development by providing a comprehensive toolset for increased efficiency and enhanced inspector functionality.
Documentation:
https://superbehaviour.lom.li/
Recommendation:
Use the SuperBehaviour Visual Studio Code Extension for better Syntax highlighting and emmet abreviations with this package.
https://marketplace.visualstudio.com/items?itemName=lom.superbehaviour
From the publisher's Asset Store listing.
Technical details
SuperBehaviour
Completely replaces MonoBahaveyour (inherits from it) and provides the following benefits:
- this.transform is now cached by default
- Scripts automatically get icons based on their name
SingletonBehaviour
Inherit from this class to get a clean, threadsafe and with LazySingletonBehaviour optional "lazy" singleton implementation.
- Inherits from Super Behaviour
SuperEditor
Use this instead of the Editor to handle all inspector windows of SuperBehaviours.
New Inspector Attributes for [SerializeField]'s
- [ReadOnly] shows the field in the inspector in readonly mode
- [Layer] displays a Layer dropdown when used with a int
- [Tag] displays a Tag dropdown when used with a string
- [Tabs] displays Tabs when used with a Enum
- [HDRColor] displays the color as HDR color
- [Label] allows to define a custom property name in the inspector
- [Button] allows to render a button calling a method of the same class
New Inspector Attributes for Properties (get and get/set)
- [SerializeProperty] property gets drawn in the inspector (Does NOT save to filesystem)
- [PropertyHeader("Label")] shows a header lable over the property
- [PropertyTooltip("Tooltip")] shows a tooltip when hovering over the label
- [PropertyRange(0, 10)] shows a range slider from number values
- [PropertyTextArea] shows a string as textare
- [PropertyLayer] displays a Layer dropdown when used with an int
- [PropertyTag] displays a Tag dropdown when using with a string
- [PropertyHDRColor] displays the color as HDR color
New Condition Attributes for Fields and Properties
- [ShowIf("otherFieldName")] hides the field if the other field is false, EmptyString or null
- [EditableIf("m_BoolTest")] displays the field readonly if the other field is false, EmptyString or null
For more information visit:
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.28f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.