Search Unity

Question Public Variables Stored in Prefab are Lost When Moved to Another Project

Discussion in 'Prefabs' started by SecretGardener, Aug 3, 2021.

  1. SecretGardener

    SecretGardener

    Joined:
    Feb 23, 2021
    Posts:
    29
    I hope I can describe this clear enough:confused:

    So I have these public variables in my script


    In my prefab, I added an empty object and set up the script like so


    After I copy my asset folder (including these script, prefab and meta files) to another project, I can still see these settings in prefab, but it disappear when I drag n drop it in the scene:


    Is this normal?
     
  2. SecretGardener

    SecretGardener

    Joined:
    Feb 23, 2021
    Posts:
    29
    After some recopying for a couple of time, the problem is fixed.
    Still, I have no idea why the setting of the script will be changed after dragging prefab into the scene