• 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

Addcomponent

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Ben Humphreys asked

AddComponent with runtime type checking

Jun 5, '13 c#·type·addcomponent

0 Replies

0 Votes

avatar image

Julien-Lynge answered

C# - passing a Type var to GameObject.AddComponent

May 31, '13 c#·variable·type·addcomponent

1 Reply

0 Votes

avatar image

Loius edited

How to GetComponent from Class that uses Generics

May 2, '13 c#·getcomponent·addcomponent·generics

1 Reply

2 Votes

avatar image

Copywright commented

"Add Component" Button not working

Apr 7, '13 addcomponent

0 Replies

0 Votes

avatar image

whydoidoit commented

Adding same Type to gameObject.AddComponent repeatedly keeps modifying first component.

Apr 1, '13 addcomponent

2 Replies

0 Votes

avatar image

Thuenderman commented

Creating prefab through custom editor window

Apr 12, '14 asset·editorwindow·assetdatabase·addcomponent·custom-editor

1 Reply

1 Votes

avatar image

GallopingGames commented

AddComponent() at runtime - variable not being initialized from Inspector

Mar 13, '13 runtime·addcomponent

1 Reply

2 Votes

avatar image

smirlianos commented

How to add rigidbody with script?

Mar 2, '13 javascript·collision·rigidbody·java·addcomponent

1 Reply

0 Votes

avatar image

djizomdjinn edited

How do I pass a script via inspector reference?

Feb 26, '13 addcomponent

1 Reply

0 Votes

avatar image

fafase commented

How to add a component in a runtime instantiation?

Feb 22, '13 instantiate·runtime·addcomponent

1 Reply

0 Votes

avatar image

phfatmonkey published

Add JS or C# object to GameObject?

Feb 12, '13 gameobject·addcomponent

1 Reply

0 Votes

avatar image

keinabel commented

Why do I have to re-add my Script on every Unity start?

Jan 29, '13 startup·addcomponent·awake

2 Replies

1 Votes

avatar image

whydoidoit answered

Will using AddComponent frequently lower performance?

Jan 22, '13 performance·addcomponent

1 Reply

0 Votes

avatar image

AndyMartin458 commented

AddComponent in script modifying Prefab Assets?

Jan 16, '13 prefab·addcomponent·pool

0 Replies

0 Votes

avatar image

blutderengel commented

How to change position of child component without affecting the position of the parent

Dec 31, '12 camera·instantiate·parent·child·addcomponent

1 Reply

0 Votes

avatar image

DaneC020 published

Using MeshCollider with Quads

Dec 28, '12 collider·meshcollider·addcomponent·quad

1 Reply

0 Votes

avatar image

Seth-Bergman commented

Using AddComponent to add a Sub Class using a String

Nov 16, '12 inheritance·monobehaviour·classes·addcomponent·subclass

4 Replies

0 Votes

avatar image

whydoidoit answered

prefab as AddComponent?

Nov 3, '12 prefab·addcomponent

1 Reply

0 Votes

avatar image

kmeboe commented

Can I use AddComponent to add (this.script) to an object?

Sep 20, '12 c#·gameobject·instantiate·addcomponent·attach

1 Reply

0 Votes

avatar image

Myhijim asked

Attaching Multiple Hinge Joints?

Sep 13, '12 hingejoint·addcomponent

0 Replies

0 Votes

avatar image

Kryptos commented

A Silly simple question about scope

Sep 12, '12 addcomponent·scope

1 Reply

0 Votes

avatar image

Muuskii commented

AddComponent with exposed

Aug 19, '12 variables·parameters·public·addcomponent

1 Reply

0 Votes

avatar image

NeMewSys commented

How can I get my own gameobject?

Aug 19, '12 gameobject·parent·addcomponent·this·self

2 Replies

1 Votes

avatar image

SilverFoxMedia commented

Component not being added with predefined public variables

Aug 1, '12 shader·inspector·addcomponent·public variable·image effect

0 Replies

0 Votes

avatar image

unity.editor answered

Use in AddComponent

Jul 27, '12 addcomponent·generic

2 Replies

0 Votes

avatar image

xpecttrum published

Delete Component at Runtime

May 13, '14 runtime·component·delete·hingejoint·addcomponent

1 Reply

1 Votes

avatar image

BlackMashroom commented

Turning a Light on With Collision Detection

Nov 21, '21 c#·light·oncollisionenter·find·addcomponent

1 Reply

0 Votes

avatar image

hijinxbassist commented

GetComponent of type UnityScript from Boo Script

Jun 4, '12 javascript·getcomponent·addcomponent·boo

1 Reply

0 Votes

avatar image

aldonaletto commented

Array Problem: can't add Component

Jun 1, '12 array·addcomponent

1 Reply

0 Votes

avatar image

ptpaterson commented

Adding a component in the editor with a script

May 20, '12 inspector·addcomponent

0 Replies

0 Votes

  • »
  • ‹
  • 4
  • 5
  • 6
  • 7
  • 8
  • ›

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.

Related Topics

c# gameobject instantiate getcomponent component runtime editor monobehaviour unity 5 prefab type rigidbody destroy scripting problem script. child inheritance classes nullreferenceexception javascript instance class components hingejoint error


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