After digging around Unity for a while I took another shot in the dark, but SP API acts very differently from normal game coding.
Trying to make floating text parts that can be customized. I have referred to a few mods' source codes and removed all potential sources of error, but still get a NullReferenceException error. Unity editor shows no errors.
If anyone has experience^^