• 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

Components

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Bunny83 commented

Copy a component at runtime

Apr 30, '21 components·runtime-generation

9 Replies

15 Votes

avatar image

IssataySC answered

How to add a Script to a GameObject during Runtime [2016]

Jun 1, '22 c#·gameobject·script.·runtime·components

3 Replies

7 Votes

avatar image

darkAbacus247 edited

Check if Object is of Type Component

Jan 26, '21 editor·objects·components·types

2 Replies

5 Votes

avatar image

Ziplock9000 commented

Need a persistent unique id for gameobjects

Feb 16, '22 gameobjects·components·persistence·unique-identifiers

11 Replies

8 Votes

avatar image

eovento answered

Cannot enabled / disable a script component?

Apr 8, '19 inspector·components·cross

2 Replies

14 Votes

avatar image

Pyunityer8002 commented

How can I AddComponent() now?

Aug 1, '20 in Help Room

3 Replies

3 Votes

avatar image

jankymidget edited

Using interfaces in C# Wiki

Jul 22, '17 c#·interface·components·architecture·communication

4 Replies

2 Votes

avatar image

LaDungDev commented

Copy all components from a GameObject and paste to another GameObject

May 21, '18 components

5 Replies

2 Votes

avatar image

saucerman commented

Displaying tooltips hint for variables in inspector

Jan 18, '17 inspector·components

2 Replies

3 Votes

avatar image

Graham-Dunnett commented

Can a script enable components?

Jul 16, '15 javascript·enable·components

2 Replies

0 Votes

avatar image

Wisteso commented

[Editor]How can I get components in non-instantiated prefab?

Oct 17, '14 editor·prefab·components

1 Reply

7 Votes

avatar image

HalversonS commented

Why are components' script field grayed out?

Jun 15, '16 components

2 Replies

6 Votes

avatar image

ierecumi_unity answered

How to get and change RectTransform position (Left, Right, Top, Bottom) values through the script? (theres a screenshot)

Oct 21, '21 in Help Room

2 Replies

0 Votes

avatar image

GameVortex commented

How do you find a component type attached to a game object in the project view?

Nov 23, '13 project·components

1 Reply

0 Votes

avatar image

burnout156 commented

Components losing all references in inspector

Jun 19, '20 in Help Room

3 Replies

4 Votes

avatar image

Berenger commented

Does a large number of components will affect performance ?

Mar 17, '12 gameobject·performance·webplayer·children·components

2 Replies

1 Votes

avatar image

Bunny83 commented

Check If GameObject Has Render Component

May 24, '12 renderer·components·attach·getcomponents

2 Replies

0 Votes

avatar image

steven3Dim commented

Destroying Components from Editor Script Throwing MissingReferenceException Closed

Jun 22, '17 editor·exception·components

1 Reply

4 Votes

avatar image

MorganFavre commented

Trying to access components of a prefab

May 8, '16 in Help Room

1 Reply

0 Votes

avatar image

pavlito edited

Accesing components on multiple objects in scene

Dec 14, '15 objects·multiple·access·components

3 Replies

0 Votes

avatar image

ZorbaTHut published

Default Values for Components

Oct 4, '15 components

3 Replies

0 Votes

avatar image

Hellium edited

Disable Component of all child GameObjects

Jun 29, '15 disable·child object·components

2 Replies

0 Votes

avatar image

Bonfire-Boy answered

How Can I enable and then disable a light in unity after a certain time?

Aug 31, '16 lighting·time·delay·components

1 Reply

0 Votes

avatar image

Bunny83 commented

Adding custom data to built in components

Oct 13, '11 components·metadata

2 Replies

1 Votes

avatar image

Chronos-L edited

Get a GameObject from a component

Mar 16, '13 arrays·gameobjects·components

1 Reply

0 Votes

avatar image

aeroson edited

copy all components from one character to another Closed

Aug 18, '15 character·components·copy

1 Reply

0 Votes

avatar image

CraptainRob commented

Using multiple components or using single one as manager?

Sep 23, '12 components·pattern

1 Reply

0 Votes

avatar image

Julien-Lynge answered

Check for empty gameobject in script?

Apr 27, '12 c#·gameobject·components

1 Reply

3 Votes

avatar image

Mortup commented

How to make sure custom init methods are called? Closed

Nov 10, '17 component·components·initialization·constructors

1 Reply

0 Votes

avatar image

Wolfrik_Creations commented

Destroy all scripts on object.

Jun 15, '16 destroy·component·components

3 Replies

0 Votes

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

Followers

avatar image

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.

相关主题

c# component gameobject inspector scripting problem editor gameobjects instantiate script. prefab javascript prefabs scripting beginner unity 5 architecture destroy array inheritance enabled objects dots animation variables animator collider


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