Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

how to add component with parametres

Discussion in 'Scripting' started by cenker, Mar 3, 2016.

  1. cenker

    cenker

    Joined:
    Oct 26, 2012
    Posts:
    45
    I must use gameobject.addcomponent but how with parametres in constructor
     
  2. cenker

    cenker

    Joined:
    Oct 26, 2012
    Posts:
    45