Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Detecting when a prefab is added to the scene?

Discussion in 'Editor & General Support' started by CoolJosh3k, Jul 29, 2020.

  1. CoolJosh3k


    Dec 3, 2016
    For adding a handy feature to my editor, I need to know 2 things:

    • When a prefab is added from the project to the scene.
    • Reference to that object.
    Which should I write in my code to check these things?

    My plan is to update the placed object to snap to a specific position vector.