Search Unity

Missing unity event functions ?

Discussion in 'Prefabs' started by mtGameDev, May 5, 2019.

  1. mtGameDev

    mtGameDev

    Joined:
    Oct 19, 2012
    Posts:
    89
    there is a serious problem after nested prefab feature added in unity3d.
    when i create a prefab, all of functions in Unity Event variable are missing.
    i want to know whats the way to solve this problem ?

    i know to keep them, i should call functions from an object that there is in prefab (child of parent).
    but many times, i need to call functions from other objects that aren't related to my prefab like Main Camera or Lights or other objects ...

    So i want to know what i should to do with this problem ?

    thanks for help.
     

    Attached Files:

  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Unity Event data does not seem to become missing here when making a Prefab.

    However, if you are referencing objects that are not part of the Prefab itself, they can't be saved into the Prefab and will have to stay overrides on the Prefab instance in the scene, same as with all other object references.