GetComponentAttribute
A class in Alta.Attributes, the global namespace.
Field attribute that fills the field with a component from the same object when the prefab is applied, probably in the editor (the caller isn't in this build). Base for the other GetComponent attributes.
- Listed in Other Alta assemblies
- Inherits or implements
PrefabApplyAttribute - Derived types
GetComponentIfEmptyAttribute,GetComponentInChildrenAttribute,GetComponentInParentAttribute,GetComponentInPrefabRootAttribute
Constructors
| Member | What it is |
|---|---|
GetComponentAttribute() | Creates a GetComponentAttribute from type. |
GetComponentAttribute(Type type) | Creates a GetComponentAttribute from type. |
Fields
Properties
| Member | What it is |
|---|---|
Type Type { get; set; } | Component type to look for. Defaults to the field's type. |
bool WarnOnNull { get; set; } | Log an error when no component is found. |