Search Unity

Question Automatically add a script to a prefab object

Discussion in 'Editor & General Support' started by afurioso, Jun 4, 2022.

  1. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    Hello everyone, I want to know how to automatically add a script to a prefab object in the prefab folder.

    Does anyone know?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    Automation is generally done through editor scripting.
     
  3. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    Yes, i want to add a script to a prefab located in prefab folder through another script loaded since the scene started