• 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

Feathered asked

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

Dec 18, '20 editor·addcomponent

0 Replies

0 Votes

avatar image

CaseyHofland edited

How to get a component from an object and add it to another? (Copy components at runtime)

Sep 29, '20 c#·gameobject·getcomponent·component·addcomponent

10 Replies

9 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

GeniusGamerYT commented

How can I put a new script on the main camera?

Aug 17, '20 in Help Room

2 Replies

0 Votes

avatar image

Pyunityer8002 commented

How can I AddComponent() now?

Aug 1, '20 in Help Room

3 Replies

3 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

Bunny83 commented

Assign a variable of type "type" on the inspector or best work around

Jun 29, '20 scriptableobject·type·addcomponent·skills

2 Replies

1 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

streeetwalker edited

Instantiate object through a coroutine problem

Apr 16, '20 in Help Room

1 Reply

0 Votes

avatar image

mattssheep4 answered

Load a list of scripts from folder Wiki

Mar 28, '20 instantiate·resources·addcomponent·resources.loadall

1 Reply

0 Votes

avatar image

ericlclancy published

Dynamically adding Javascript to an Instantiated object using AddComponent,Using AddComponent to add a JS Monoscript Causes "NullReferenceException

Mar 14, '20 in Help Room

0 Replies

0 Votes

avatar image

ShawnFeatherly answered

Passing arguments into a constructor via AddComponent

Feb 27, '20 instance·addcomponent·arguments·constructors

3 Replies

2 Votes

avatar image

cin31877 answered

Addcompont and Change It's Value After Delete another Same Parent type inheritanced Component ,Addcomponent after DeleteAnother Same MotherType Component And Change It's Value

Feb 1, '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

atomodelfinal commented

Can't add sprite to instantiated GameObject

Jan 9, '20 instantiate·getcomponent·spriterenderer·addcomponent

2 Replies

0 Votes

avatar image

GameDBharat asked

When i try to add Collider2D or Rigidbody2D through code to prefab gameObject after stopping game the added component remain added to the prefab obejct.

Nov 28, '19 gameobject·rigidbody2d·collider2d·addcomponent

0 Replies

0 Votes

avatar image

HarvesteR answered

Adding a component to an object over UNET?

Aug 14, '19 networking·components·addcomponent·command

2 Replies

1 Votes

avatar image

puchingeralexander asked

Access Top and Right Variables from RectTransform

Jun 17, '19 in Help Room

0 Replies

0 Votes

avatar image

Hellium answered

How do I change when my RigidBody 2D initializes? C# Question/Noob,How do I change when rigidbody initializes?

May 25, '19 in Help Room

1 Reply

0 Votes

avatar image

WarmedxMints answered

Inconsistent Accessibility: Parameter type is less accessible than method

Mar 4, '19 enum·access·addcomponent·constructor·inconsistent

1 Reply

1 Votes

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

jj_unity328 commented

AddComponent passing variable before Start/Awake

Jul 26, '18 gameobject·variable·start·addcomponent·awake

4 Replies

5 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

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# gameobject instantiate getcomponent component runtime editor monobehaviour unity 5 destroy type prefab rigidbody script. classes inheritance scripting problem instance class child nullreferenceexception javascript collider meshcollider string
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges