Auto-Reference Cheat Sheet
This document provides a quick overview of the available functionality. Not all types, attributes or settings are included here. Refer to the documentation for more comprehensive information.
Primary Attributes
Add one of these to a serializable field to retrieve references:
GetGetInChildrenGetInParentGetInSiblingsFindInSceneFindInAssetsFindInParent
Filters
Add one more of these to filter references:
ExactTypeTypeConstraintContainsContainsInChildren-
ContainsInParent -
IgnoreSelf IgnoreInactive-
IgnoreDisabled -
Layer TagName-
FilterBy -
IgnoreNested -
Unique -
SortByID SortByDistanceSortByNameSort-
SortBy -
Reverse -
Take TakeLastTakeWhile
Note: Filters are not applied in the order they're given in the code, due to how C# works. They're applied roughly in the order given above.
Please refer to this section in the documentation for more information.
Useful utilities
- Various sync operations: Tools ▸ Auto-Reference
- Open Auto-Reference Window: Tools ▸ Auto-Reference ▸ Auto-ReferenceWindow
- Access Project Settings ▸ Auto-Reference to control automatic syncing.
- Access Preferences ▸ Auto-Reference to control appearance and logging settings.
Other Useful Types
AutoReferenceEditor
Inherit this for custom editors. See moreOnAfterSync
Provide a method name for an after-sync callback. See moreISyncObserver
Implement this interface to receive sync notifications on custom non-Unity classes or structs. See more