• 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

Findobjectoftype

Cancel

Cancel

Unanswered Questions

  • All Questions
avatar image

XoetziX commented

FindObjectOfType returns destroyed object (leading to MissingReferenceException)

Apr 11, '21 destroy object·findobjectoftype

0 Replies

0 Votes

avatar image

jackkoonie edited

Having issues getting player to damage multiple enemies

Dec 1, '20 c#·instantiation·findobjectoftype

0 Replies

0 Votes

avatar image

unity_9rZ2tQdXui6bvw published

I have prefabs that should be referencing different GameObjects, but they all refer to the same one.

Oct 2, '20 in Help Room

0 Replies

0 Votes

avatar image

Rafones12 published

Donkey Kong keg eject

May 14, '20 in Help Room

0 Replies

0 Votes

avatar image

rmail2006 asked

How can I gather a list of GameObjects from List of Types

May 3, '20 in Help Room

0 Replies

0 Votes

avatar image

Vega4Life commented

Help with finding object and transform values

Jul 18, '19 in Help Room

0 Replies

0 Votes

avatar image

tcz8 edited

Why is FindObjectOfType() called during Camera.Render? It's not in my code.

Oct 26, '18 scripting problem·profiler·api·findobjectoftype·camera.render

0 Replies

0 Votes

avatar image

possmonaut asked

Help Creating Explosion Knockback

Dec 4, '17 in Help Room

0 Replies

0 Votes

avatar image

PersianKiller commented

How use FindObjectOfType with Collider2D

Sep 15, '17 in Help Room

0 Replies

0 Votes

avatar image

JedBeryll edited

Whats the difference between GetComponent and (Player)FindObjectOfType() ?

Jun 18, '16 in Help Room

0 Replies

0 Votes

avatar image

ekglag2 published

When I call my script2 in script1 it makes script2 global? It stops me from accessing script2's methods at all.

Dec 2, '15 in Help Room

0 Replies

0 Votes

avatar image

slek120 commented

error CS0246: The type or namespace name `Spawn_Spots' could not be found. Are you missing a using directive or an assembly reference?

Apr 5, '14 findobjectoftype

0 Replies

0 Votes

avatar image

Luvs2Dummy published

Order of object instantiation scripting issues

Feb 17, '14 instantiate·getcomponent·order-of-execution·findobjectoftype

0 Replies

0 Votes

avatar image

Eric5h5 commented

FindObjectOfType vs. GetComponent

Feb 1, '13 findgameobjectwithtag·findobjectoftype

0 Replies

0 Votes

avatar image

Jessy asked

Will FindObjectsOfType always return the same array for a static Hierarchy?

Oct 10, '10 findobjectoftype

0 Replies

0 Votes

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# scripting problem getcomponent gameobject script. reference unity 5 type methods scene tetris findobjectsoftype array transform gameobject.find findgameobjectwithtag accessing from any script find profiler component button dontdestroyonload classes cards parent


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