Search Unity

2D Side Scroller prefab gui not showing when recreate

Discussion in 'Immediate Mode GUI (IMGUI)' started by unitychristy2, Jan 16, 2014.

  1. unitychristy2

    unitychristy2

    Joined:
    Sep 8, 2013
    Posts:
    38
    Hi I am at the end of a project :D:
    everything I am about to talk about is in Assetts/Import Package/Standard Assetts (Mobile)

    and need to get this mobile default prefab - "2d side scroller" into a different scene.

    If you delete the prefab from the default scene then add the prefab again the Gui elements that are a part of the prefab disappear.
    (The GUI elements are two dotted areas for the controls)

    It looks to me like a bug or can someone explain the voodoo which is catching me out.

    many thanks.
     
  2. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    I guess that might be due to the initialization.

    Check out if there are any of the flowing methods used:

    Code (csharp):
    1. Awake()
    2. Start()
    3. OnEnable()
    Then learn about a difference between those methods.

    Cannot conclude nothing more without the actual code.