Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Adding a parent to prefab heirarchy

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

  1. OtakuD

    OtakuD

    Joined:
    Apr 24, 2014
    Posts:
    49
    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,892
    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.