0
Completed

how do i trigger event via code?

Khela Kore 5 years ago updated by jackielo 4 years ago 2

Hi,

I found no examplel on how to activation of the shader effect by using c# code. Can you give me a simple example of how to use the shaders using code?

For example, say I got a magic scroll. Now my normal sword is stronger and I want to show the sword is glowing now. How can I do this via programming using your tool? Thanks!

Answer

Answer
Under review

Sorry for the inconvience,

I think the easiest way to do it is that you have 2 sword under same parent, and use GameObject.SetActive() to hide the normal sword and activate the one with Shader Weaver effects.

Also, are you able to make a discord server to support better? You know discord is much easier to manage and better than this support forum you have

Answer
Under review

Sorry for the inconvience,

I think the easiest way to do it is that you have 2 sword under same parent, and use GameObject.SetActive() to hide the normal sword and activate the one with Shader Weaver effects.