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 Smellyjosh · Aug 07, 2013 at 06:23 AM · gameobjectmodel

Script not applying to imported Blender Model

Go easy on me, I have only been working in unity for a couple weeks now.

I have it where when a game object has a script I made applied to it, the object can be attacked then destroyed. This works. So for example I can make a sphere, apply the script, my character hits it, and the sphere disappears.

When I import say, a blender model of a snake I made, The script no longer works and I can not destroy the snake.

I do get the error "The hull has more than 255 polygons" or whatever from unity when i import my snake, is this causing the problem? How do I fix this So I can attack my model and it disappears?

Thank you!

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Mozaih · Aug 07, 2013 at 09:34 AM

I dont think the blend file is the problem but why dont you try to export it as a Wavefront model(obj)

File>Export>Wavefront

Comment
Add comment · Show 1 · 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 Smellyjosh · Aug 10, 2013 at 01:49 AM 0
Share

I tried to export as wavefront, It still didn't work.

I know when I import my blender model in unity (its a snake), Unity can not create any colliders for it becuase it has to many polygons. So doesn't that mean there is nothing for my character to hit in the first place?

$$anonymous$$aybe I need set up a basic collider like maybe a sphere to put around the snake? but then how would the script work? I would still want my snake to disappear when hit but the script says destroy.gameobject and im not sure how to make this work for the snake.

like I said I can destroy gameobjects with my script, but when I import a model it works different, can someone help?

avatar image
0

Answer by meat5000 · Aug 10, 2013 at 01:53 AM

Export from Blender as .FBX Autodesk. I love Blender and this way works for me.

Dont use mesh colliders but instead use primitive colliders. 10k triangles is fine for a model. 255 is a joke.

Destroy.gameObject will destroy whatever object that particular script is attached to.

Hope this helps.

Comment
Add comment · Show 1 · 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 meat5000 ♦ · Aug 10, 2013 at 11:29 AM 0
Share

You are welcome to DropBox your Blend file if you want me to try it myself. Also, post your script, let's 'ave a look.

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

16 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

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How to Change Parenting while in game? C# 1 Answer

About Destructible 3d objects 1 Answer

Help with my first fbx model in Unity via Script! 0 Answers

How to form copies of yourself that follow you when you walk? (2D Platformer) 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