No prefab inheritance. Considering just setting up my entities in code.

I have three prefabs: Player, Enemy, and Ally. Currently they share 90% functionality. The problem is when I make a change to one, I usually have to go into the other two and change them as well. This could become a major pain when my project grows.

At this point I’m considering setting up my entities in code. It is just a solo hobby project so I don’t have to cater to designers, but I was wondering how everyone tackles this problem in their own projects.

The user base has been asking for prefab inheritance since day 1. It’s actually currently under development, though there’s no timeframe for when it’ll be delivered.

We’ve been dealing with this either by just doing the hard work and updating all of the prefabs, or by having the things instantiated on Awake instead of being pre-attached to the prefab.

Okay, that’s what I’ll do then. Because I’m a programmer, setting up objects in Awake will be fine, but I pity the designers having to deal with these under featured prefabs. I really love Unity, but it’s prefabs are certainly lacking. I had to rig up a script to work around the lack of nested prefabs as well.