Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 MeinLeben · Apr 10, 2013 at 08:25 AM · iosxcodemissingcapsulecollider

iOS: Missing CapsuleCollider when creating PrimitiveType.Cylinder

Unity version: 3.5.6f4 Platform: iOS (iPad) Architecture: Armv7

When I run my application I am not able to create a GameObject through the following code:

 GameObject.CreatePrimitive( PrimitiveType.Cylinder );

The application crashes directly and I get the following output in xCode:

Can't add component because class 'CapsuleCollider' doesn't exist!

Keeps happening in my project even if I create a new scene and only assign a script with the previous code in the Awake function. Issue keeps recurring also when completely removing and rebuilding the xcode project.

When I create an empty gameobject and add the following code in my Awake function it also crashes:

 gameObject.AddComponent( "CapsuleCollider" );

When I look in the RegisterMonoModules.cpp file I notice that all my default components are available (BoxCollider, MeshCollider etc) but I am missing a reference to CapsuleCollider!

The only work around for me now is to add a CapsuleCollider component (through AddComponent() or by drag and drop) and disable or destroy it. This will create the direct reference...but...shouldn't (and isn't ) this component always be available???

And it looks like Unity is creating the CapsuleCollider in GameObject.CreatePrimitive() by using AddComponent( string ) instead of AddComponent()...why, wouldn't the second option be better???

If I create a complete new project everything works fine.

I have no clue why CapsuleCollider isn't registered in RegisterMonoModules.cpp in my current project... anyone have an idea..it's driving me nuts...

Comment
Add comment · Show 4
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
avatar image Fattie · Apr 10, 2013 at 08:26 AM 0
Share

are you using unity 4.0 ?

avatar image MeinLeben · Apr 10, 2013 at 10:04 AM 0
Share

no, we are using Unity version: 3.5.6f4

avatar image daveratters · May 22, 2013 at 12:14 PM 0
Share

I'm having this exact same problem on iOS - what exactly did you do to get around it?

avatar image MeinLeben · May 22, 2013 at 12:59 PM 0
Share

We just added a capsule collider to a gameobject and deleted it through a script at startup in a Awake function...it;s a very nasty hack, but it worked :)

Hopes it helps you!

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by daveratters · May 22, 2013 at 01:42 PM

I just fixed it here too - in our case I just added a CapsuleCollider as a component where the script lived in the editor. Before I added the component it worked fine on everything - Windows + Mac in editor, as a player etc. but not on iOS on our iPad. Annoying...

Comment
Add comment · Share
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
avatar image
0

Answer by iloveimy · Jun 23, 2017 at 06:44 AM

I have the same program. Cancel "Strip Engine Code" will find. it work to me.

Comment
Add comment · Share
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

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

13 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

Related Questions

Missing files in Xcode 0 Answers

Missing Enable Modules in Xcode 1 Answer

iAd Interstitial Will Not Display 0 Answers

Admob iOS integration with Xcode Version 6.3 1 Answer

"Culture name neutral is not supported" when using Parse.Unity.dll 2 Answers


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