Long day of diving into Unity editor scripting. Not as productive as I would have liked, but finally getting somewhere by the end.
It’s been so long since I’ve had a whole day where I just focused on coding.
While I don’t particularly enjoy programming, it felt great to get back into that mindset again.
The mix of constant frustration and the joy/relief when you finally get something working.
So basically, I’m trying to write a tool that will let me make these lines easily:
At the moment, each line is made up a bunch of segments that I place individually, and it is a massive pain in the butt.
I’m going to be making a lot of these lines, so it’s best I main the process as painless as possible.
Lots of weird things about editor scripts in Unity, like the scene view not updating until I click on the inspector (uggghhh!)
I managed to get the blue lines to follow my cursor around in the scene view:
Eventually, I got a asset from the asset store that does mesh painting. It’s not exactly what I need, but it has a feature that would be really useful.
I’m starting to go through the code to extract to relevant stuff I need, and then will build the tool from there.