Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    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

    CoolJosh3k

    Joined:
    Dec 3, 2016
    Posts:
    145
    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.