Jump to content

Need help with explosion mod


Recommended Posts

I want to implement a great explosion effect that I found on the asset store. I've got it working in editor. The way it works is by attaching C# scripts to an empty game object. These scripts generate FX's. One instantiate an animated volumetric explosion. Others instantiate empty game objects that they then apply shaders to that create FX's such as shock waves. Or, they generate a particle systems that make sparks or debris. I'm just having trouble getting it working in KSP. These are my problems:

1. How to export a shader

2. How to export a script that is attached to a game object as a .mu or .prefab if that even works.

3. What exactly is a .mu?

4. how to reference a prefab.

5. How to allow the script a reference to the compiled shader. Currently it gets its reference via this line of code

Shader.Find("Hidden/PyroTechnix/Shockwave")

and use it to make a public Material. Will this still work?

I really appreciate any help with any of these questions.:)

Edited by leviathen
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...