View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.1
- Last updated
- First released
- Unity version
- 2022.3.46 or later
- Package size
- 198 KB
- Files
- 6
- Favorites
- 5
- Views in the past week
- 5
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Auto Get Component
No more GetComponent calls or tedious inspector assignments - simply add the [Get] attribute, and it will automatically binds your components for you. Set it and forget it!
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 8
Auto Get Component screenshot 1
About this asset
AutoGetComponent is the ultimate runtime component binding solution for Unity. No more manual GetComponent calls or tedious drag-and-drop setups! Just decorate your fields with the [Get] attribute, optionally choose your binding strategy (from the same object, its children, or even climbing the parent hierarchy), and let our asset do the rest.
Whether you’re prototyping fast or building a full-scale project, AutoGetComponent takes the hassle out of component binding .So you can focus on creating great gameplay. Perfect for indie developers and teams alike, this asset is an affordable and time-saving tool available on the Unity Asset Store.
From the publisher's Asset Store listing.
Technical details
- Simple to Use: Just add [Get] to any field that needs a component reference. It’s as easy as that!
- Multi-Scene and Dynamic Support: Automatically works in every scene and even on newly instantiated prefabs (with the AutoGetComponentComponentsOnInstantiate component).
- Performance-Optimized: Uses caching to reduce reflection overhead, ensuring smooth gameplay even in complex scenes.
- Optional Log Messages: Easily enable or disable error messages for missing components, giving you full control over your debugging output.
- Flexible Binding Options: Choose from several binding sources:
- FromSameObject: Get the component on the same GameObject.
- FromSameObjectThenChildren: First look on the same object, then among its children.
- FromParentThenAncestors: Search upward through the parent hierarchy.
- FromSameObjectThenParentThenAncestors: Try the same GameObject first, then the parents.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.46f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.