55
edits
Phanchris5 (talk | contribs) |
Phanchris5 (talk | contribs) |
||
Line 158: | Line 158: | ||
Here are all the nodes I utilized in my project, but I don't know why after Unity was restarted, all of my node connections vanished. A similar bug was also reported by several people on Unity forum. | Here are all the nodes I utilized in my project, but I don't know why after Unity was restarted, all of my node connections vanished. A similar bug was also reported by several people on Unity forum. | ||
[[File:fogworld32.png|400px]] | [[File:fogworld32.png|400px]] | ||
<br> | |||
The model we wish to utilize must then be attached to this shader material, which I did by substituting my previous material for the city buildings. I have multiple materials that use this shader, a Box collider to start the effect, and a script, as you can see in my Inspector window. The simplest way to start the dissolve effect when the character enters the collider is to use a box collider to initiate an event. | The model we wish to utilize must then be attached to this shader material, which I did by substituting my previous material for the city buildings. I have multiple materials that use this shader, a Box collider to start the effect, and a script, as you can see in my Inspector window. The simplest way to start the dissolve effect when the character enters the collider is to use a box collider to initiate an event. | ||
[[File:fogworld33.png|400px]] | [[File:fogworld33.png|400px]] | ||
My friend advised me to use another plugin (DOTween) to launch the script to trigger this effect. | My friend advised me to use another plugin (DOTween) to launch the script to trigger this effect. | ||
[[File:fogworld34.png|400px]] | [[File:fogworld34.png|400px]] | ||
<br> | |||
public class RustCollider : MonoBehaviour | public class RustCollider : MonoBehaviour | ||
{ | { |
edits