Search Unity

Prefab won't keep some variables

Discussion in 'Prefabs' started by Tornado77, Dec 28, 2019.

  1. Tornado77

    Tornado77

    Joined:
    Nov 14, 2018
    Posts:
    83
    Hi, I'm trying to make a prefab of a telescope in my game but when I drag the gameobject into a folder to save the prefab it won't keep all the variables, what am I doing wrong?
     
  2. awesomedata

    awesomedata

    Joined:
    Oct 8, 2014
    Posts:
    1,419
    This is a typical issue. The only variables it isn't saving are the scene-based (i.e. Gameobject) references. Also note the bold text -- Did you apply your changes the to the prefab?

    In general, if you change the gameobjects you're referencing in the scene to actual prefabs, you should be able to save them in your prefab as normal (since they are both assets at this point).