05-26-2020, 09:20 PM
Hi,
Indeed, I could reproduce the issue. It seems that when you instantiate CurvyController from code, its members that are events are not set to a non null value. This is not the case for controllers instantiated through the Unity editor. I will take a look at this very soon, and will keep you updated. Until then, if events are not something you use, you can either comment the lines that throw the error, or add a ? before the Invoke call, like this:
someEvent?.Invoke(someEventArguments);
Indeed, I could reproduce the issue. It seems that when you instantiate CurvyController from code, its members that are events are not set to a non null value. This is not the case for controllers instantiated through the Unity editor. I will take a look at this very soon, and will keep you updated. Until then, if events are not something you use, you can either comment the lines that throw the error, or add a ? before the Invoke call, like this:
someEvent?.Invoke(someEventArguments);
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.