Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
  • Home /
avatar image
0
Question by Monkiman300 · Oct 18, 2016 at 06:10 AM · unity 5buginspectorcolliders

Collider population and animation events

Hello Unity friends,

I am experiencing quite an unusual bug that has only recently popped up within my current game. To break it down, I have around five scripts that call something like xcollider = GameObject.Find("xobject").GetComponent<Collider>(); in the start and/or awake functions. This method has worked with Unity 5 before and still routinely works with other objects such as scripts. This issue only seems to effect colliders within the Unity Editor.

Oddly enough, over the last week or two, I have had continuous issues with these functions (searches) not firing when the scene starts. The really weird part is, it fires when I first get into Unity, but as soon as I edit a script or an animation the Unity Editor will suddenly "forget" to populate these fields. This occurrence happens on multiple game objects and for several different colliders, all with different scripts and calls.

This breaks down even further when, causing young-age baldness, colliders that ARE found at Start/Awake will randomly stop working when activated by animation events. The trouble is, neither the code nor the animation events have been touched for a few weeks, so nothing changed within them when this error started to occur. The colliders will enable/disable around 60% of the time, but the other 40% will mysteriously not fire at all. This has no correlation to being in contact with other colliders, characters, entities, or other scripts that my team and I can find.

I am wondering if anyone else is experiencing this issue, or if it just happens to be some hidden bug from some other random script in our project that is messing with it. I have poured over thousands of lines of code in the past few days searching for any inconsistencies, but I can't seem to find anything related to this issue.

Any help is appreciated and I am sorry for the longer post.

TLDR; My colliders wont populate in Unity after the first few minutes and/or when changes are made and they sometimes misfire even when initially found in inspector.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

100 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Weird Inspector Layout Behavior: Can't Scroll To the Bottom of Component Fields 8 Answers

Anyone on Unity 5 beta 12 getting this crash? 0 Answers

MovieTexture black on Mac build 1 Answer

Ui extension bug 0 Answers

What are these icons and how do I get rid of them? 1 Answer


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