• 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
1
Question by AdamTheDash · Oct 20, 2016 at 07:56 PM · export problem

Help with Unity exporting

Hello, I am currently trying to create Minesweeper in Unity.
I have everything working inside the editor (effects, clicking squares, etc.) and the game is playable. However when I export the game using File > Build and Run nothing happens when I click tiles.
Here are my build settings: build settings

And here is what it looks like (exported on left, in editor on right):

I am fairly new to Unity and I haven't been able to find a solution online anywhere. I can post my code too if it is needed. Thanks

Comment
Add comment · Show 2
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 FlyingHighUp · Oct 20, 2016 at 09:41 PM 1
Share

Have you got platform specific code somewhere? Perhaps code surrounded in #if Unity_Editor?

avatar image AdamTheDash FlyingHighUp · Oct 20, 2016 at 10:05 PM 0
Share

Hi, the only thing in my code either "unity" or "editor" is at the top I have "using UnityEngine;"

2 Replies

· Add your reply
  • Sort: 
avatar image
-1
Best Answer

Answer by AdamTheDash · Oct 21, 2016 at 02:23 PM

I have found the solution to my problem:
The issue was using collider.tag == "Tile" when I should have been using collider.CompareTag("Tile")
I am using Unity 5.4.1f1 if it is a version issue.
Additionally, the tags in the editor were not saved. Initially I had defined my tag by clicking the gameObject > Tag > Add Tag...
Defining the tag using Edit > Project Settings > Tags and Layers saved them properly when building the game. Exporting the game as Developer Build is very useful for debugging. Thanks for the help :)

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 Naphier · Oct 21, 2016 at 02:26 AM

Something's going wrong. When building, check "development build" this will pop up a console in the exe's window with any errors. There's also a output_log.txt file in the data folder for the build. Check them for errors and let us know what you see. After that we may be able to help you pinpoint the issue.

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 AdamTheDash · Oct 21, 2016 at 01:56 PM 0
Share

I did not know about the developer console. Using it helped me to solve my problem. Thanks :)

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.

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.

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

How to setup Android project with Dynamic delivery module containing Unity? 1 Answer

Unity as a Simulation Visualization 0 Answers

Issue Exporting Addressable Asset 0 Answers

How to export a GameObject without UnityEditor? 0 Answers

Exportation to unity 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