Let's say I make a projectile prefab. The prefab gets instantiated in code. It has all kinds of components attached to it with all kinds of tweaked values. Now I want to have another prefab with all the same things, but I just need to change one measly value, such as speed. Is there any way to do this without just creating a duplicate of the original prefab? (which would suck because my new prefab would not get changes made to the original).
Example: Create a prefab called Bullet A, with a script with properties **Speed** and **Damage**. Now I want an additional type of bullet (prefab Bullet B) that I can fire, to be just like Bullet A, but with just **Damage** changed. *AND* I want it so if I change **Speed** in Bullet A, that change will also appear in Bullet B because Bullet B does not explicitly overwrite **Speed**.
↧