This package allows you to auto-wire components in the Unity Editor using smart attributes. It supports all MonoBehaviour and Component types, including interfaces, and provides determinate results to prevent issues with serialized references. The tool is fast and won't slow down your editor or generate excessive garbage. All references are fully serialized at edit time, making them available at runtime.
The package includes various attributes for different search methods:
- Self: Looks for the reference on the same game object as the attributed component.
- Parent: Looks for the reference on the parent hierarchy of the attributed component's game object.
- SelfOrParent: Looks for the reference on the parent hierarchy of the attributed component's game object.
- Child: Looks for the reference on the child hierarchy of the attributed component's game object.
- SelfOrChild: Looks for the reference on the child hierarchy of the attributed component's game object.
- Scene: Looks for the reference anywhere in the scene.
- Anywhere: Validates the reference isn't null, but relies on manual assignment.
The package also includes an extension for Odin Validator.
The package is designed to be fast and efficient, with no impact on editor performance or garbage generation. It provides determinate results and supports all MonoBehaviour and Component types, including interfaces. The attributes are fully serialized at edit time, making them available at runtime.




