• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Fixes in upcoming releases of Unity Answers

Using a good tone of voice when replying to posts

Requests for new tags/topics

How to use the META space

How to use the Moderator space

Questions in topic: addcomponent

  • Unanswered Questions
  • Recommended Questions
Once you sign in you will be able to subscribe for any updates here
avatar image

BuckyBall edited

How to add Canvas Scaler and Graphic Raycaster to Canvas in code

Feb 25, '19 in Help Room

1 Reply

0 Votes

avatar image

InternalDissension commented

Is it possible to catch a can't add script error in the editor? Closed

Feb 21, '19 exception·addcomponent·catch

1 Reply

0 Votes

avatar image

cs120319992 edited

Is there a way to add a component to a rigidbody gameobject?

Jan 18, '19 rigidbody·addcomponent

2 Replies

0 Votes

avatar image

Ady_M edited

GetComponent vs AddComponent Closed

Jan 12, '19 gameobject·instantiate·getcomponent·addcomponent

3 Replies

0 Votes

avatar image

Justinger edited

Anyway to add method to other gameobject?

Sep 26, '18 delay·addcomponent

2 Replies

0 Votes

avatar image

JDelekto answered

Any way to use addcomponent to add scripts stored in an array?

Jun 24, '18 component·addcomponent

1 Reply

0 Votes

avatar image

Vicarian commented

How to add sphere to other gameObject during runtime?

Jun 21, '18 c#·unity 5·addcomponent

1 Reply

0 Votes

avatar image

mechanicarts commented

Script component gets attached multiple times

Jun 3, '18 addcomponent

1 Reply

0 Votes

avatar image

Clevereen commented

How to add component to a child of gameobject

Apr 22, '18 gameobject·scriptingbasics·children·addcomponent

3 Replies

0 Votes

avatar image

hexagonius commented

How to destroy a component created in scripts using AddComponent() ?

Apr 14, '18 c#·destroy·addcomponent

2 Replies

0 Votes

avatar image

TreyH edited

Add a script to a GameObject via script at runtime? Closed

Apr 7, '18 in Help Room

1 Reply

1 Votes

avatar image

Fragmental edited

Unity 5.6 - "The type or namespace name `Rigidbody2d' could not be found. Are you missing an assembly reference?" when using AddComponent

Mar 19, '18 in Help Room

1 Reply

0 Votes

avatar image

Garrom edited

add component dynamically from public object

Feb 1, '18 in Help Room

1 Reply

0 Votes

avatar image

XregularC commented

How to copy script to another GameObject

Jan 30, '18 in Help Room

1 Reply

0 Votes

avatar image

Bunny83 commented

GetType is Monoscript, how to implement correctly? store type in variable?

Jan 12, '18 instantiate·object·type·addcomponent·monoscript

1 Reply

0 Votes

avatar image

umut91c answered

Attach a non-MonoBehaviour Class from another Script to an Instantiated Button

Jan 9, '18 in Help Room

1 Reply

0 Votes

avatar image

NewPersona answered

Trying to get type by passing a string

Jan 6, '18 type·addcomponent

1 Reply

0 Votes

avatar image

XAngeled asked

Adding an unkown script dynamically

Dec 30, '17 scripting problem·gameobject·networking·addcomponent

0 Replies

0 Votes

avatar image

jamesnguyen92 commented

You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed.

Oct 25, '17 in Help Room

0 Replies

0 Votes

avatar image

Harinezumi commented

AddComponent with dynamic parameter

Oct 24, '17 c#·addcomponent

3 Replies

1 Votes

avatar image

tormentoarmagedoom edited

Photon Instantiate a prefab and add script on it.

Sep 18, '17 gameobject·instantiate·photon·addcomponent

1 Reply

0 Votes

avatar image

ufengle answered

Strange AddComponent behaviour?

Sep 14, '17 addcomponent

1 Reply

0 Votes

avatar image

WavyRancheros answered

How to add network components to entities at runtime?

Aug 23, '17 in Help Room

1 Reply

0 Votes

avatar image

bonisthegreat answered

Can't add TextMesh to gameObject

Jul 19, '17 gameobject·mesh·textmesh·addcomponent

1 Reply

0 Votes

avatar image

Dave-Carlile answered

Addcomponent is obsolet, what should i do ? Closed

Jul 18, '17 addcomponent

3 Replies

2 Votes

avatar image

labmonkey398 commented

How to add a component of unknown type in the Editor

Jun 26, '17 unityeditor·addcomponent

1 Reply

1 Votes

avatar image

path14 commented

Add all scripts to gameObject from var

May 20, '17 script.·monobehaviour·addcomponent

1 Reply

0 Votes

avatar image

Bunny83 commented

You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent()

May 16, '17 new·addcomponent·warning

1 Reply

0 Votes

avatar image

RobAnthem commented

How do I set default values for inherited variables such that they keep their values when added by script?

May 14, '17 reset·addcomponent·inherited-members

0 Replies

0 Votes

avatar image

lupitul published

how to add An boxCollider to photonView in Script?

May 9, '17 getcomponent·addcomponent

0 Replies

0 Votes

  • ‹
  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow This Topic

Follow This Topic

Follow by RSS

No one has followed this topic yet.

Popular Topics

c# animation android unity 5 camera 2d rotation javascript scripting problem collision ui gui error shader movement gameobject physics rigidbody editor ios texture networking raycast instantiate collider transform terrain mesh prefab input
View all

Recent Badges

  • Supporter   RonJonesTheArtist
  • Teacher   Frostbite23
  • Popular Question   denil98
  • Popular Question   anurooppv
  • Necromancer   Tarrag
  • Good Answer   Tarrag
  • Supporter   jaydnwlsn
  • Notable Question   Ikrambandagi
  • Notable Question   Duncan1971
  • Popular Question   Trevdevs


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges