• 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 fjalla · Jun 26, 2014 at 03:53 PM · buildmaterialnullreferenceexceptionnormalmapdetonator

Trouble with Detonator

Hiya.

I'm banging my head against the wall right now. Been at this for several hours.

You see, I have the Detonator package imported. Many of you probably know about it. It's quite awesome.

Except that I can't get it to work.

I imported Detonator into my project, but there were transparency issues with the smoke. I searched the web, and found out it can be easily fixed just by pressing "Ignore" when Unity wants to turn some textures into normal maps, the smoke texture between them. It states that some Material uses them as normal maps and they have to be set as normal maps.

I tried to Instantiate the Detonator-Base prefab.

And hooray. It worked. In the editor. In the build, whether it's Linux or Windows, 32 bit or 64 bit, it gives a

 NullReferenceException
   at (wrapper managed-to-native) UnityEngine.Material:Internal_CreateWithShader (UnityEngine.Material,UnityEngine.Shader)
   at UnityEngine.Material..ctor (UnityEngine.Shader shader) [0x00006] in /BuildAgent/work/aeedb04a1292f85a/artifacts/LinuxStandalonePlayerGenerated/ShaderBindings.cs:149 
   at Detonator.DefaultSmokeAMaterial () [0x00016] in C:\users\krabica\Moje dokumenty\Tunnelers-Unified\Assets\Detonator\System\Detonator.cs:389 
   at Detonator.FillDefaultMaterials () [0x00046] in C:\users\krabica\Moje dokumenty\Tunnelers-Unified\Assets\Detonator\System\Detonator.cs:265 
   at Detonator.Awake () [0x00000] in C:\users\krabica\Moje dokumenty\Tunnelers-Unified\Assets\Detonator\System\Detonator.cs:171

When I build the project with just the test map, it works perfectly.

Please help. Please.

Thanks.

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 graham20 · Jul 04, 2014 at 01:33 PM

Have you checked that all your materials are assigned on the prefab you're using?

If you do, it might be related to this issue:

http://forum.unity3d.com/threads/detonator-explosion-framework-isnt-working-in-build.246347/

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 Joe-Censored · Jan 27, 2017 at 09:37 PM

I know this is old, but it ranks high in google results. I resolved this issue by moving the "Detonator Explosion Framework" folder into the Resources folder.

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.

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

23 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

Related Questions

Distribute terrain in zones 3 Answers

Error in Build but not in Editor - output_log.txt debug problem 1 Answer

Android is rendering dark materials as white 0 Answers

Material/Shader issue 0 Answers

Why do my Assets work in Editor and nowhere else? 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