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

Cannot add Components to Prefab created through context menu

Discussion in 'Editor & General Support' started by The-Little-Guy, Jul 10, 2017.

  1. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    When I am in the project view and I open the context menu and goto: Create -> Prefab, I can not add components to the perfab. Is this a bug in Unity, or do I need to do something else to add components to it?
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,042
    It is not a bug. When you create a prefab in the project through the menu, it is empty, there is nothing in it. Components can only be added to GameObjects. You will need to add an element from the scene into the empty prefab or create it directly from the scene.
    https://docs.unity3d.com/Manual/Prefabs.html