• 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

KdRWaylander commented

Select level script from a public property

Apr 3, '15 addcomponent·public variable

0 Replies

0 Votes

avatar image

Maniacbob published

Add Script from a List to Instantiated GameObject

Nov 27, '16 in Help Room

0 Replies

0 Votes

avatar image

unimechanic converted comment to answer

5.0.0b9 Addcomponent cause a crash

Nov 6, '14 crash·namespace·addcomponent

1 Reply

-1 Votes

avatar image

AyAMrau answered

What is happening when you use greater and lass than signs with AddComponent?

Sep 7, '14 gameobject·meshfilter·addcomponent

1 Reply

0 Votes

avatar image

NbthMnk commented

using addcomponent for buffs, using variable for class

Sep 13, '14 addcomponent

1 Reply

1 Votes

avatar image

momoguru published

Problem with AddComponet(SCRIPT) on a Instantiated PREFAB

Mar 9, '14 instantiate·prefab·addcomponent

0 Replies

0 Votes

avatar image

ufengle answered

Strange AddComponent behaviour?

Sep 14, '17 addcomponent

1 Reply

0 Votes

avatar image

streeetwalker edited

Instantiate object through a coroutine problem

Apr 16, '20 in Help Room

1 Reply

0 Votes

avatar image

Long2904 commented

How to add audio source to gameobject with PlayOnAwake turn on through script?

Apr 30, '20 audio·audiosource·audioclip·addcomponent·awake

1 Reply

0 Votes

avatar image

reyonman edited

AddComponent() creating two colliders?

Jun 4, '14 editor·meshcollider·duplicate·addcomponent

0 Replies

0 Votes

avatar image

gdennis asked

Object reference not set when GUIContent.image

Jan 18, '15 gameobject·texture2d·addcomponent·guicontent

0 Replies

0 Votes

avatar image

Feathered asked

Why "AddComponent" behaves differently in "Play" and "Edit" modes?

Dec 18, '20 editor·addcomponent

0 Replies

0 Votes

avatar image

aswanevelder answered

How can I add external-assets(C#)

Dec 18, '21 addcomponent·external assets

1 Reply

1 Votes

avatar image

prodintec asked

Problem with throwable script in sphere

Mar 29, '17 in Help Room

0 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

juicyz published

how can i add another scripts functionality to a button on another script?

Aug 26, '16 c#·button·getcomponent·addcomponent

2 Replies

0 Votes

avatar image

Skatola commented

how to access to a component previously removed and readded

Apr 29, '17 in Help Room

0 Replies

0 Votes

avatar image

Anxo edited

gameObject.AddComponent(presetComponent) ?? I would like to add a component thats already created.

Dec 3, '15 in Help Room

1 Reply

0 Votes

avatar image

ZhavShaw published

Compilation error, Unity 5

Nov 9, '15 unity 5·ai·api·addcomponent

0 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

juanluiscarpinteiro commented

First Person Controller Creation and destruction on runtime

Jul 5, '16 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

andrew-lukasik edited

How do I get a CS script in assets to be a stored monobehaviour variable

Jul 21, '20 instantiate·monobehaviour·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

Dark_Templar commented

AddComponentMenu strange behaviour

Aug 27, '15 editor·addcomponent

1 Reply

0 Votes

avatar image

isteffy edited

GameObject receives Sprite Renderer from other GameObject

May 3, '16 in Help Room

0 Replies

0 Votes

avatar image

streeetwalker answered

,I can't find my .cs file in "Add Component"

Sep 16, '20 in Help Room

1 Reply

0 Votes

avatar image

Larry-Dietz commented

AddComponent isn't working

Jan 11, '20 in Help Room

1 Reply

0 Votes

avatar image

1nelg published

how do you to resolve this unity message

Aug 1, '14 clone·addcomponent

0 Replies

0 Votes

avatar image

puchingeralexander asked

Access Top and Right Variables from RectTransform

Jun 17, '19 in Help Room

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