I simply added a Range to protect the Period to go below 1. It works! But I have no idea if it is a bulletproof “protection”
Gonna watch the full video now and see
I simply added a Range to protect the Period to go below 1. It works! But I have no idea if it is a bulletproof “protection”
Gonna watch the full video now and see
Hi Damien,
Perhaps not bullet proof but does at least carry some Kevlar.
As a serialized private member variable you have reduced its accessbility to the Inspector, which is then limited by Range, and also to within the class itself through it being private. Other things in that class could still change its value and to a value that is not protected by your Range attribute though.
Also, it’s best to copy/paste your code into the forum and apply the code formatting characters before and after it, it greatly aids readability over the screenshots. Screenshots are great however for error messages and details from with in the Unity editor.
Hope this helps
See also;
Hi Rod
Thank for your feedback, definetly make sense to me now.
I thought about the Solution offered as well, but there was no way I would come up with the Solution presented in the video lol
Anyway, thanks again!
You’re very welcome Damien