I have made an attribute that automatically assigns value to a variable at runtime as such:
[Assign(AssignmentTime.Awake)]
private Rigidbody _rigidBody;
However, compiler gives out a warning, understandably, that this value is never assigned and will always be null. Is there a way to make the attribute disable the warning automatically? I don't really want to write that warning suppression #pragma every time I want to use that attribute.