Auto-Wire Components in Unity

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.

Auto-Wire Components in Unity - Asset Store

πŸ€– Chat with AI

AI is typing

Suggested Posts

Powerful In-Game Console for Unity

Powerful In-Game Console for Unity Thumbnail

Generate High-Quality Icons from 3D Models in Unity

Generate High-Quality Icons from 3D Models in Unity Thumbnail

Auto-Recompile for Unity

Auto-Recompile for Unity Thumbnail

The Language Lab: All-in-One Localization Solution

The Language Lab: All-in-One Localization Solution Thumbnail

Easy-to-Use Currency System for Unity

Easy-to-Use Currency System for Unity Thumbnail

Effortless Multi-Selection in Unity

Effortless Multi-Selection in Unity Thumbnail