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 Velketor · Jul 15, 2012 at 09:16 PM · collisionplatformpublish

Publish Error

When I play my game in the Unity editor, I collide with enemies and lose health.

However...

When I publish my game, I no longer lose health when colliding with enemies. It's happening on all platforms. Any thoughts? I'm stumped.

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
Best Answer

Answer by Velketor · Jul 15, 2012 at 11:46 PM

i figured it out. for some reason it only works if i have it pass through 3 colliders instead of 1. thank you for all of your help. i guess more colliders offers more chances for it to actually give me points.

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
1

Answer by ScroodgeM · Jul 15, 2012 at 09:49 PM

"lose health" event follows by lots of other internal events. such as some move, some checks, some collisions, some checks again and subtracting health - it's a simple model. so first of all insert debug information to every stage of this events chain, publish game again and check debug log for broken stage. after you got this info it is will be much more easy to find answer for your question.

Comment
Add comment · Show 3 · 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 Velketor · Jul 15, 2012 at 09:54 PM 0
Share

thank you for the reply. however, the script is working perfect in Unity and then when I publish it no longer functions so I don't think my code is wrong. Something is happening during publish. $$anonymous$$an this sucks!

avatar image ScroodgeM · Jul 15, 2012 at 10:00 PM 0
Share

if something happening during publish you got an error or warning about it in editor. if nothing happening - then you must debug internal work of your components already in publish. don't panic, it can be a little setting that broke your script. just debug all chain - from script test for work to health subtracting.

avatar image Velketor · Jul 15, 2012 at 10:03 PM 0
Share

i will do my best and see if I can figure it out. i'm obviously missing something. back to debugging! thank you for the help

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Rotating Platform Collision Issue 1 Answer

[IL2CPP][UWP] Strange Error: "IOException: Win32 IO returned 234" 5 Answers

Collision on the bottom? 1 Answer

Moving Platform issue 1 Answer

Mesh Collider + Character Collider + moving Platforms 0 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