This is because Configure() gets called in Start(), so that won't have run yet and the rectTransform var won't be set up. A workaround should be to call Configure() manually after instantiating a UI object. This could conceivably affect other UI functions too if they rely on rectTransform.
This is because Configure() gets called in Start(), so that won't have run yet and the rectTransform var won't be set up. A workaround should be to call Configure() manually after instantiating a UI object. This could conceivably affect other UI functions too if they rely on rectTransform.