Add this line to your Packages/manifest.json dependencies array;
"com.kingenderbrine.prefabchildreference": "https://github.com/KingEnderBrine/PrefabChildReference.git",
First, create Prefab Child Reference thourh Assets/Create menu
Then open prefab that has GameObject
that you want, select your Prefab Child Reference asset, add new element to References
array, then just drag and drop GameObject
to Referenced Object
field and hit Apply
.
That's it, now you can use your Prefab Child Reference as you would use any prefab. Any changes to the original prefab would automatically be applied to Prefab Child Reference