Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Adding a parent to prefab heirarchy

Discussion in 'Prefabs' started by OtakuD, Sep 12, 2018.

  1. OtakuD

    OtakuD

    Joined:
    Apr 24, 2014
    Posts:
    48
    Hi there, love the new prefabs but I was wondering if there was some way to make a prefab inherit from a predefined base prefab. So let's say I already have a prefab with a component on, and another with that component plus an extra component, is there some way to create a link between these two prefabs without having to start making variants from the base again from scratch? Thanks
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,856
    Sorry, this is not possible. The reason is a bit complex and relates to how IDs for objects in variants are generated in deterministic ways, so we wouldn't be able to do this without changing IDs of objects in the variant, which would break all references to it.
     
    OtakuD likes this.