AddComponentAutomatically add a component to the current target if the target does not have this component. (This will not assign the component added)
Recommended to use it with GetComponent!
-
Type compType = nullThe component type to add. If null, it'll use the field type.
-
string groupBy = ""For error message grouping.
-
AllowMultiple: Yes
using SaintsField; [AddComponent, GetComponent] public Dummy dummy; [AddComponent(typeof(BoxCollider)), GetComponent] public GameObject thisObj;
